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

Private Member Functions

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

Private Attributes

const int LIFETIME = 100
 
PluginTransmissionAgents m_PluginTransmissionAgents = PluginTransmissionAgents.Cast(GetPlugin(PluginTransmissionAgents))
 
float m_WoundAgentInvasibility
 

Detailed Description

Definition at line 1 of file DisinfectMdfr.c.

Member Function Documentation

◆ ActivateCondition()

override bool DisinfectionMdfr::ActivateCondition ( PlayerBase player)
inlineprivate

Definition at line 18 of file DisinfectMdfr.c.

19 {
20 return false;
21 }

◆ DeactivateCondition()

override bool DisinfectionMdfr::DeactivateCondition ( PlayerBase player)
inlineprivate

Definition at line 54 of file DisinfectMdfr.c.

55 {
57
59 return true;
60 else
61 return false;
62 }
float GetAttachedTime()
const int LIFETIME

References GetAttachedTime(), and LIFETIME.

◆ GetDebugText()

override string DisinfectionMdfr::GetDebugText ( )
inlineprivate

Definition at line 28 of file DisinfectMdfr.c.

29 {
30 return (LIFETIME - GetAttachedTime()).ToString();
31 }

References GetAttachedTime(), and LIFETIME.

◆ GetDebugTextSimple()

override string DisinfectionMdfr::GetDebugTextSimple ( )
inlineprivate

Definition at line 33 of file DisinfectMdfr.c.

34 {
35 return (LIFETIME - GetAttachedTime()).ToString();
36 }

References GetAttachedTime(), and LIFETIME.

◆ Init()

override void DisinfectionMdfr::Init ( )
inlineprivate

Definition at line 7 of file DisinfectMdfr.c.

8 {
10 m_IsPersistent = true;
11 m_ID = eModifiers.MDF_DISINFECTION;
14 //m_WoundAgentInvasibility = m_PluginTransmissionAgents.GetAgentInvasibility(eAgents.WOUND_AGENT);
16 }
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 DEFAULT_TICK_TIME_ACTIVE, DEFAULT_TICK_TIME_INACTIVE, DisableActivateCheck(), m_ID, m_IsPersistent, m_TickIntervalActive, m_TickIntervalInactive, and m_TrackActivatedTime.

◆ OnActivate()

override void DisinfectionMdfr::OnActivate ( PlayerBase player)
inlineprivate

Definition at line 39 of file DisinfectMdfr.c.

40 {
41 player.IncreaseHealingsCount();
42
43 }

◆ OnDeactivate()

override void DisinfectionMdfr::OnDeactivate ( PlayerBase player)
inlineprivate

Definition at line 45 of file DisinfectMdfr.c.

46 {
47 player.DecreaseHealingsCount();
48
49 if (player.GetModifiersManager().IsModifierActive(eModifiers.MDF_WOUND_INFECTION1))
50 player.m_AgentPool.AddAgent(eAgents.WOUND_AGENT, -10000);
51
52 }
eAgents
Definition EAgents.c:3

◆ OnReconnect()

override void DisinfectionMdfr::OnReconnect ( PlayerBase player)
inlineprivate

Definition at line 23 of file DisinfectMdfr.c.

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

References OnActivate().

◆ OnTick()

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

Definition at line 64 of file DisinfectMdfr.c.

65 {
66 if (player.GetModifiersManager().IsModifierActive(eModifiers.MDF_WOUND_INFECTION2))
67 player.m_AgentPool.AddAgent(eAgents.WOUND_AGENT, -m_PluginTransmissionAgents.GetAgentInvasibility(eAgents.WOUND_AGENT) * deltaT);
68 else
69 player.m_AgentPool.AddAgent(eAgents.WOUND_AGENT, -m_PluginTransmissionAgents.GetAgentInvasibility(eAgents.WOUND_AGENT) * 2 * deltaT);
70 }
PluginTransmissionAgents m_PluginTransmissionAgents

References m_PluginTransmissionAgents.

Member Data Documentation

◆ LIFETIME

const int DisinfectionMdfr::LIFETIME = 100
private

Definition at line 3 of file DisinfectMdfr.c.

Referenced by DeactivateCondition(), GetDebugText(), and GetDebugTextSimple().

◆ m_PluginTransmissionAgents

PluginTransmissionAgents DisinfectionMdfr::m_PluginTransmissionAgents = PluginTransmissionAgents.Cast(GetPlugin(PluginTransmissionAgents))
private

Definition at line 5 of file DisinfectMdfr.c.

Referenced by OnTick().

◆ m_WoundAgentInvasibility

float DisinfectionMdfr::m_WoundAgentInvasibility
private

Definition at line 6 of file DisinfectMdfr.c.


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