Dayz Explorer 1.28.160049
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
30 override void Init()
31 {
32 m_BaseValue = GameConstants.STAMINA_DRAIN_HOLD_BREATH_START;
33 m_Exponent = GameConstants.STAMINA_DRAIN_HOLD_BREATH_EXPONENT;
34 m_Multiplier = CfgGameplayHandler.GetHoldBreathStaminaModifier();
35 m_Cooldown = GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION;
36 m_StartTimeAdjustment = PlayerSwayConstants.SWAY_TIME_IN + PlayerSwayConstants.SWAY_TIME_STABLE;
37 m_Duration = GameConstants.STAMINA_DRAIN_HOLD_BREATH_DURATION;
38 }
39}
40
41class SMDataHoldBreath : SMDataExponential
42{
43
44}
eBleedingSourceType m_Type
float m_Duration
override Widget Init()
Definition dayzgame.c:127
m_InUse
float m_StartTimeAdjustment
float m_Multiplier
float m_Cooldown
float m_Exponent
class SMDataBase m_BaseValue