Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
thermometer.c
Go to the documentation of this file.
1class Thermometer extends ItemBase
2{
3 float GetTemperatureValue(PlayerBase player)
4 {
5 float value;
6 if (player && player.IsSyncedModifierActive(eModifierSyncIDs.MODIFIER_SYNC_FEVER))
7 {
8 value = Math.RandomFloatInclusive(PlayerConstants.HIGH_TEMPERATURE_L, PlayerConstants.HIGH_TEMPERATURE_H);
9 }
10 else
11 {
12 value = Math.RandomFloatInclusive(PlayerConstants.NORMAL_TEMPERATURE_L, PlayerConstants.NORMAL_TEMPERATURE_H);
13 }
14 value = Math.Round(value * 10) / 10;
15 return value;
16 }
17
18 override void SetActions()
19 {
20 super.SetActions();
21
24 }
25}
void AddAction(typename actionName)
void SetActions()
Definition enmath.c:7
eModifierSyncIDs