Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
thermometer.c
Go to the documentation of this file.
1class Thermometer extends ItemBase
2{
4 {
5 float value;
6 if (player && player.IsSyncedModifierActive(eModifierSyncIDs.MODIFIER_SYNC_FEVER))
7 {
9 }
10 else
11 {
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)
float GetTemperatureValue(PlayerBase player)
Definition thermometer.c:3
override void SetActions()
Definition thermometer.c:18
Definition enmath.c:7
static const float HIGH_TEMPERATURE_L
static const float HIGH_TEMPERATURE_H
static const float NORMAL_TEMPERATURE_H
static const float NORMAL_TEMPERATURE_L
static proto float Round(float f)
Returns mathematical round of value.
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
Definition enmath.c:106
eModifierSyncIDs