Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
staminamodifierdata.c
Go to the documentation of this file.
1 //supplemental data struct for 'StaminaModifier' class
2 class SMDataBase
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 
21 class SMDataExponential : SMDataBase
22 {
23  float m_BaseValue;
24  float m_Exponent;
25  float m_Multiplier;
26  float m_Cooldown;
28  float m_Duration;
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 
41 class SMDataHoldBreath : SMDataExponential
42 {
43 
44 }
m_StartTimeAdjustment
float m_StartTimeAdjustment
Definition: staminamodifierdata.c:27
m_BaseValue
class SMDataBase m_BaseValue
m_Type
eBleedingSourceType m_Type
Definition: bleedingsource.c:25
m_Multiplier
float m_Multiplier
Definition: staminamodifierdata.c:25
Init
override void Init()
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside o...
Definition: staminamodifierdata.c:30
SMDataBase
Definition: staminamodifierdata.c:2
SMDataHoldBreath
Definition: staminamodifierdata.c:41
m_Cooldown
float m_Cooldown
Definition: staminamodifierdata.c:26
m_Duration
float m_Duration
Definition: staminamodifierdata.c:28
m_Exponent
float m_Exponent
Definition: staminamodifierdata.c:24
CfgGameplayHandler
Definition: cfggameplayhandler.c:1
GameConstants
Definition: constants.c:612
m_InUse
m_InUse