Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
blinded.c
Go to the documentation of this file.
2{
3 private const float BLIND_TIME = 7;
4 private float m_Timer;
5
14
15 override bool ActivateCondition(PlayerBase player)
16 {
17 return false;
18 }
19
20 override void OnActivate(PlayerBase player)
21 {
22 m_Timer = 0;
23
24 }
25
26 override void OnDeactivate(PlayerBase player)
27 {
28 g_Game.GetWorld().SetAperture(0);
29 }
30
31
32 override bool DeactivateCondition(PlayerBase player)
33 {
34 if ( m_Timer > BLIND_TIME )
35 {
36 return true;
37 }
38 else
39 {
40 return false;
41 }
42 }
43
44 override void OnTick(PlayerBase player, float deltaT)
45 {
46 m_Timer++;
47 g_Game.GetWorld().SetAperture(m_Timer);
48 }
49};
override bool DeactivateCondition(PlayerBase player)
Definition blinded.c:32
override void OnActivate(PlayerBase player)
Definition blinded.c:20
override void OnTick(PlayerBase player, float deltaT)
Definition blinded.c:44
override void Init()
Definition blinded.c:6
float m_Timer
Definition blinded.c:4
override bool ActivateCondition(PlayerBase player)
Definition blinded.c:15
const float BLIND_TIME
Definition blinded.c:3
override void OnDeactivate(PlayerBase player)
Definition blinded.c:26
DayZGame g_Game
Definition dayzgame.c:3942
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
bool m_TrackActivatedTime
overall time this modifier was active
void DisableActivateCheck()
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_INACTIVE
enum eModifierSyncIDs DEFAULT_TICK_TIME_ACTIVE