Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
immunityboost.c
Go to the documentation of this file.
2{
6
17
18 override bool ActivateCondition(PlayerBase player)
19 {
20 return false;
21 }
22
23 override void OnReconnect(PlayerBase player)
24 {
25 OnActivate(player);
26 }
27
28 override string GetDebugText()
29 {
31 }
32
33 override void OnActivate(PlayerBase player)
34 {
35 player.SetImmunityBoosted(true);
36 player.IncreaseHealingsCount();
37 }
38
39 override void OnDeactivate(PlayerBase player)
40 {
41 player.SetImmunityBoosted(false);
42 player.DecreaseHealingsCount();
43 }
44
45 override bool DeactivateCondition(PlayerBase player)
46 {
47 float attached_time = GetAttachedTime();
48
49 if( attached_time >= m_RegenTime )
50 return true;
51 else
52 return false;
53 }
54}
override bool DeactivateCondition(PlayerBase player)
override void OnReconnect(PlayerBase player)
override void OnActivate(PlayerBase player)
override string GetDebugText()
override void Init()
override bool ActivateCondition(PlayerBase player)
override void OnDeactivate(PlayerBase player)
ref HumanMovementState m_MovementState
float m_LastWaterLevel
static const float VITAMINS_LIFETIME_SECS
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it).
Definition effect.c:51
eModifiers
Definition emodifiers.c:2
static proto string ToString(void var, bool type=false, bool name=false, bool quotes=true)
Return string representation of variable.
bool m_TrackActivatedTime
overall time this modifier was active
float GetAttachedTime()
bool m_AnalyticsStatsEnabled
float m_TickIntervalActive
float m_TickIntervalInactive
bool m_IsPersistent
should this modifier track overall time it was active ?
const int DEFAULT_TICK_TIME_INACTIVE
void OnActivate()