DayZ 1.24
Loading...
Searching...
No Matches
ModifierBase Class Reference

Inherited by AntibioticsMdfr [private], AreaExposureMdfr [private], BleedingCheckMdfr [private], BlindedMdfr [private], BloodRegenMdfr [private], BoneRegenMdfr [private], BrainDiseaseMdfr [private], BrokenArmsMdfr [private], BrokenLegsMdfr [private], BurningMdfr [private], CharcoalMdfr [private], CholeraMdfr [private], CommonColdMdfr [private], ContaminationStage1Mdfr [private], ContaminationStage2Mdfr [private], ContaminationStage3Mdfr [private], DisinfectionMdfr [private], DrowningMdfr [private], EpinephrineMdfr [private], FatigueMdfr [private], FeverMdfr [private], FliesMdfr [private], HealthMdfr [private], HealthRegenMdfr [private], HeartAttackMdfr [private], HeatBufferMdfr [private], HeatComfortMdfr [private], HemolyticReactionMdfr [private], HungerMdfr [private], ImmuneSystemMdfr [private], ImmunityBoost [private], InfluenzaMdfr [private], MaskMdfr [private], MorphineMdfr [private], PainKillersMdfr [private], PoisoningMdfr [private], SalineMdfr [private], SalmonellaMdfr [private], ShockDamageMdfr [private], ShockMdfr [private], StomachMdfr [private], StuffedStomachMdfr [private], TestDiseaseMdfr [private], TestingMdfr [private], ThirstMdfr [private], ToxicityMdfr [private], TremorMdfr [private], UnconsciousnessMdfr [private], VomitStuffedMdfr [private], WetMdfr [private], WoundInfectStage1Mdfr [private], WoundInfectStage2Mdfr [private], and WoundInfectionMdfr [private].

Private Member Functions

override void Init ()
 
override bool ActivateCondition (PlayerBase player)
 
override bool DeactivateCondition (PlayerBase player)
 
override void OnReconnect (PlayerBase player)
 
override string GetDebugText ()
 
override string GetDebugTextSimple ()
 
override void OnTick (PlayerBase player, float deltaT)
 

Detailed Description

Definition at line 3 of file BreathVapourMdfr.c.

Member Function Documentation

◆ ActivateCondition()

override bool ModifierBase::ActivateCondition ( PlayerBase player)
inlineprivate

Definition at line 15 of file BreathVapourMdfr.c.

16 {
17 return true;
18 }

Referenced by Tick().

◆ DeactivateCondition()

override bool ModifierBase::DeactivateCondition ( PlayerBase player)
inlineprivate

Definition at line 20 of file BreathVapourMdfr.c.

21 {
22 return false;
23 }

Referenced by Tick().

◆ GetDebugText()

override string ModifierBase::GetDebugText ( )
inlineprivate

Definition at line 30 of file BreathVapourMdfr.c.

31 {
32 //return m_Player.GetStatHeatComfort().Get().ToString();
33 }

◆ GetDebugTextSimple()

override string ModifierBase::GetDebugTextSimple ( )
inlineprivate

Definition at line 35 of file BreathVapourMdfr.c.

36 {
37 //return m_Player.GetStatHeatComfort().Get().ToString();
38 }

◆ Init()

override void ModifierBase::Init ( )
inlineprivate

Definition at line 5 of file BreathVapourMdfr.c.

6 {
8 m_ID = eModifiers.MDF_BREATH_VAPOUR;
12
13 }
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
bool m_TrackActivatedTime
void DisableDeactivateCheck()
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_INACTIVE
eModifiers
Definition eModifiers.c:2

References DEFAULT_TICK_TIME_INACTIVE, DisableDeactivateCheck(), m_ID, m_TickIntervalActive, m_TickIntervalInactive, and m_TrackActivatedTime.

Referenced by InitBase().

◆ OnReconnect()

override void ModifierBase::OnReconnect ( PlayerBase player)
inlineprivate

Definition at line 25 of file BreathVapourMdfr.c.

26 {
27
28 }

Referenced by Activate().

◆ OnTick()

override void ModifierBase::OnTick ( PlayerBase player,
float deltaT )
inlineprivate

Definition at line 41 of file BreathVapourMdfr.c.

42 {
43 if (!player.m_Environment.IsTemperatureSet())
44 return;
45 float air_temperature = player.m_Environment.GetTemperature();
46 int level = 0;//default
48 {
50 value = Math.Clamp(value, 0, 1);
52 }
55 if (level != player.m_BreathVapour)
56 {
57 player.m_BreathVapour = level;
58 player.SetSynchDirty();
59 }
60 }
const int BREATH_VAPOUR_LEVEL_MAX
Definition EnMath.c:7
static const float BREATH_VAPOUR_THRESHOLD_LOW
static const float BREATH_VAPOUR_THRESHOLD_HIGH
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto float Round(float f)
Returns mathematical round of value.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...

References BREATH_VAPOUR_LEVEL_MAX, PlayerConstants::BREATH_VAPOUR_THRESHOLD_HIGH, PlayerConstants::BREATH_VAPOUR_THRESHOLD_LOW, Math::Clamp(), Math::InverseLerp(), Math::Lerp(), and Math::Round().

Referenced by Tick().


The documentation for this class was generated from the following file: