DayZ 1.24
Loading...
Searching...
No Matches
AntibioticsMdfr Class Reference
Inheritance diagram for AntibioticsMdfr:
[legend]
Collaboration diagram for AntibioticsMdfr:
[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

float m_RegenTime
 
const int ANTIBIOTICS_LIFETIME = 300
 
const float ANTIBIOTICS_STRENGTH = 1
 

Detailed Description

Definition at line 1 of file Antibiotics.c.

Member Function Documentation

◆ ActivateCondition()

override bool AntibioticsMdfr::ActivateCondition ( PlayerBase player)
inlineprivate

Definition at line 19 of file Antibiotics.c.

20 {
21 return false;
22 }

◆ DeactivateCondition()

override bool AntibioticsMdfr::DeactivateCondition ( PlayerBase player)
inlineprivate

Definition at line 60 of file Antibiotics.c.

61 {
63
65 return true;
66 else
67 return false;
68 }
float GetAttachedTime()

References GetAttachedTime(), and m_RegenTime.

◆ GetDebugText()

override string AntibioticsMdfr::GetDebugText ( )
inlineprivate

Definition at line 29 of file Antibiotics.c.

30 {
31 return (ANTIBIOTICS_LIFETIME - GetAttachedTime()).ToString();
32 }
const int ANTIBIOTICS_LIFETIME
Definition Antibiotics.c:4

References ANTIBIOTICS_LIFETIME, and GetAttachedTime().

◆ GetDebugTextSimple()

override string AntibioticsMdfr::GetDebugTextSimple ( )
inlineprivate

Definition at line 35 of file Antibiotics.c.

36 {
37 return (ANTIBIOTICS_LIFETIME - GetAttachedTime()).ToString();
38 }

References ANTIBIOTICS_LIFETIME, and GetAttachedTime().

◆ Init()

override void AntibioticsMdfr::Init ( )
inlineprivate

Definition at line 7 of file Antibiotics.c.

8 {
10 m_IsPersistent = true;
11 m_ID = eModifiers.MDF_ANTIBIOTICS;
15
17 }
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
eModifiers
Definition eModifiers.c:2

References ANTIBIOTICS_LIFETIME, DEFAULT_TICK_TIME_INACTIVE, DisableActivateCheck(), m_ID, m_IsPersistent, m_RegenTime, m_TickIntervalActive, m_TickIntervalInactive, and m_TrackActivatedTime.

◆ OnActivate()

override void AntibioticsMdfr::OnActivate ( PlayerBase player)
inlineprivate

Definition at line 40 of file Antibiotics.c.

41 {
42 player.IncreaseHealingsCount();
43 player.IncreaseAntibioticsCount();
44 /*
45 if ( player.GetNotifiersManager() )
46 player.GetNotifiersManager().ActivateByType(eNotifiers.NTF_PILLS);
47 */
48 }

◆ OnDeactivate()

override void AntibioticsMdfr::OnDeactivate ( PlayerBase player)
inlineprivate

Definition at line 50 of file Antibiotics.c.

51 {
52 player.DecreaseHealingsCount();
53 player.DecreaseAntibioticsCount();
54 /*
55 if ( player.GetNotifiersManager() )
56 player.GetNotifiersManager().DeactivateByType(eNotifiers.NTF_PILLS);
57 */
58 }

◆ OnReconnect()

override void AntibioticsMdfr::OnReconnect ( PlayerBase player)
inlineprivate

Definition at line 24 of file Antibiotics.c.

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

References OnActivate().

◆ OnTick()

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

Definition at line 70 of file Antibiotics.c.

71 {
72 player.AntibioticsAttack(ANTIBIOTICS_STRENGTH * deltaT);
73 }
const float ANTIBIOTICS_STRENGTH
Definition Antibiotics.c:5

References ANTIBIOTICS_STRENGTH.

Member Data Documentation

◆ ANTIBIOTICS_LIFETIME

const int AntibioticsMdfr::ANTIBIOTICS_LIFETIME = 300
private

Definition at line 4 of file Antibiotics.c.

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

◆ ANTIBIOTICS_STRENGTH

const float AntibioticsMdfr::ANTIBIOTICS_STRENGTH = 1
private

Definition at line 5 of file Antibiotics.c.

Referenced by OnTick().

◆ m_RegenTime

float AntibioticsMdfr::m_RegenTime
private

Definition at line 3 of file Antibiotics.c.

Referenced by DeactivateCondition(), and Init().


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