DayZ 1.24
Loading...
Searching...
No Matches
Antibiotics.c
Go to the documentation of this file.
2{
4 const int ANTIBIOTICS_LIFETIME = 300;
5 const float ANTIBIOTICS_STRENGTH = 1;
6
18
20 {
21 return false;
22 }
23
25 {
27 }
28
29 override string GetDebugText()
30 {
31 return (ANTIBIOTICS_LIFETIME - GetAttachedTime()).ToString();
32 }
33
34
35 override string GetDebugTextSimple()
36 {
37 return (ANTIBIOTICS_LIFETIME - GetAttachedTime()).ToString();
38 }
39
41 {
42 player.IncreaseHealingsCount();
43 player.IncreaseAntibioticsCount();
44 /*
45 if ( player.GetNotifiersManager() )
46 player.GetNotifiersManager().ActivateByType(eNotifiers.NTF_PILLS);
47 */
48 }
49
51 {
52 player.DecreaseHealingsCount();
53 player.DecreaseAntibioticsCount();
54 /*
55 if ( player.GetNotifiersManager() )
56 player.GetNotifiersManager().DeactivateByType(eNotifiers.NTF_PILLS);
57 */
58 }
59
61 {
63
65 return true;
66 else
67 return false;
68 }
69
70 override void OnTick(PlayerBase player, float deltaT)
71 {
72 player.AntibioticsAttack(ANTIBIOTICS_STRENGTH * deltaT);
73 }
74};
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
bool m_TrackActivatedTime
float GetAttachedTime()
void DisableActivateCheck()
float m_TickIntervalActive
float m_TickIntervalInactive
bool m_IsPersistent
const int DEFAULT_TICK_TIME_INACTIVE
override bool ActivateCondition(PlayerBase player)
Definition Antibiotics.c:19
override bool DeactivateCondition(PlayerBase player)
Definition Antibiotics.c:60
override void Init()
Definition Antibiotics.c:7
override void OnActivate(PlayerBase player)
Definition Antibiotics.c:40
override string GetDebugTextSimple()
Definition Antibiotics.c:35
const float ANTIBIOTICS_STRENGTH
Definition Antibiotics.c:5
override string GetDebugText()
Definition Antibiotics.c:29
override void OnTick(PlayerBase player, float deltaT)
Definition Antibiotics.c:70
override void OnDeactivate(PlayerBase player)
Definition Antibiotics.c:50
override void OnReconnect(PlayerBase player)
Definition Antibiotics.c:24
const int ANTIBIOTICS_LIFETIME
Definition Antibiotics.c:4
eModifiers
Definition eModifiers.c:2
class HumanMovementState OnActivate()
HumanCommandScript fully scriptable command.
Definition human.c:1167