Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
staminamodifierdata.c
Go to the documentation of this file.
1//supplemental data struct for 'StaminaModifier' class
3{
4 bool m_InUse = false;
5 int m_Type;
6
7 void SMDataBase()
8 {
9 Init();
10 }
11
13 void Init();
14
15 int GetType() { return m_Type; }
16
17 bool IsInUse() { return m_InUse; }
18 void SetInUse(bool val) { m_InUse = val; }
19}
20
21class SMDataExponential : SMDataBase
22{
29
39}
40
41class SMDataHoldBreath : SMDataExponential
42{
43
44}
float m_Duration
static float GetHoldBreathStaminaModifier()
void Init()
Used to set values for the type.
void SetInUse(bool val)
override Widget Init()
Definition dayzgame.c:127
const float STAMINA_DRAIN_HOLD_BREATH_START
Definition constants.c:677
const float STAMINA_DRAIN_HOLD_BREATH_DURATION
Definition constants.c:687
const float STAMINA_DRAIN_HOLD_BREATH_EXPONENT
Definition constants.c:688
const float STAMINA_REGEN_COOLDOWN_DEPLETION
Definition constants.c:710
float m_StartTimeAdjustment
float m_Multiplier
float m_Cooldown
float m_Exponent
class SMDataBase m_BaseValue