DayZ 1.24
Loading...
Searching...
No Matches
HemolyticReactionMdfr Class Reference
Inheritance diagram for HemolyticReactionMdfr:
[legend]
Collaboration diagram for HemolyticReactionMdfr:
[legend]

Private Member Functions

override void Init ()
 
override bool ActivateCondition (PlayerBase player)
 
override void OnActivate (PlayerBase player)
 
override void OnDeactivate (PlayerBase player)
 
override void OnReconnect (PlayerBase player)
 
override bool DeactivateCondition (PlayerBase player)
 
override void OnTick (PlayerBase player, float deltaT)
 
float CalculateRunTime ()
 

Private Attributes

float m_RunningTime
 

Detailed Description

Definition at line 1 of file HemolyticReaction.c.

Member Function Documentation

◆ ActivateCondition()

override bool HemolyticReactionMdfr::ActivateCondition ( PlayerBase player)
inlineprivate

Definition at line 16 of file HemolyticReaction.c.

17 {
18 return false;
19 }

◆ CalculateRunTime()

float HemolyticReactionMdfr::CalculateRunTime ( )
inlineprivate

◆ DeactivateCondition()

override bool HemolyticReactionMdfr::DeactivateCondition ( PlayerBase player)
inlineprivate

Definition at line 36 of file HemolyticReaction.c.

37 {
39
41 return true;
42 else
43 return false;
44 }
float GetAttachedTime()

References GetAttachedTime(), and m_RunningTime.

◆ Init()

override void HemolyticReactionMdfr::Init ( )
inlineprivate

Definition at line 5 of file HemolyticReaction.c.

6 {
8 m_ID = eModifiers.MDF_HEMOLYTIC_REACTION;
11 m_IsPersistent = true;
13
15 }
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 DisableActivateCheck()
float m_TickIntervalActive
float m_TickIntervalInactive
bool m_IsPersistent
const int DEFAULT_TICK_TIME_INACTIVE
const int DEFAULT_TICK_TIME_ACTIVE
eModifiers
Definition eModifiers.c:2

References CalculateRunTime(), DEFAULT_TICK_TIME_ACTIVE, DEFAULT_TICK_TIME_INACTIVE, DisableActivateCheck(), m_ID, m_IsPersistent, m_RunningTime, m_TickIntervalActive, m_TickIntervalInactive, and m_TrackActivatedTime.

◆ OnActivate()

override void HemolyticReactionMdfr::OnActivate ( PlayerBase player)
inlineprivate

Definition at line 21 of file HemolyticReaction.c.

22 {
23 player.IncreaseDiseaseCount();
24 }

◆ OnDeactivate()

override void HemolyticReactionMdfr::OnDeactivate ( PlayerBase player)
inlineprivate

Definition at line 26 of file HemolyticReaction.c.

27 {
28 player.DecreaseDiseaseCount();
29 }

◆ OnReconnect()

override void HemolyticReactionMdfr::OnReconnect ( PlayerBase player)
inlineprivate

Definition at line 31 of file HemolyticReaction.c.

32 {
34 }
class HumanMovementState OnActivate()
HumanCommandScript fully scriptable command.
Definition human.c:1167

References OnActivate().

◆ OnTick()

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

Definition at line 46 of file HemolyticReaction.c.

47 {
49 }
static const float HEMOLYTIC_BLOOD_DRAIN_PER_SEC

References PlayerConstants::HEMOLYTIC_BLOOD_DRAIN_PER_SEC.

Member Data Documentation

◆ m_RunningTime

float HemolyticReactionMdfr::m_RunningTime
private

Definition at line 3 of file HemolyticReaction.c.

Referenced by DeactivateCondition(), and Init().


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