DayZ 1.24
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
16 {
17 return false;
18 }
19
21 {
22 m_Timer = 0;
23
24 }
25
27 {
28 g_Game.GetWorld().SetAperture(0);
29 }
30
31
33 {
34 if (m_Timer > BLIND_TIME)
35 return true;
36 else
37 return false;
38 }
39
40 override void OnTick(PlayerBase player, float deltaT)
41 {
42 m_Timer++;
43 g_Game.GetWorld().SetAperture(m_Timer);
44 }
45};
DayZGame g_Game
Definition DayZGame.c:3528
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
const int DEFAULT_TICK_TIME_INACTIVE
const int DEFAULT_TICK_TIME_ACTIVE
override bool ActivateCondition(PlayerBase player)
Definition Blinded.c:15
override void OnTick(PlayerBase player, float deltaT)
Definition Blinded.c:40
override void OnActivate(PlayerBase player)
Definition Blinded.c:20
override bool DeactivateCondition(PlayerBase player)
Definition Blinded.c:32
override void OnDeactivate(PlayerBase player)
Definition Blinded.c:26
float m_Timer
Definition Blinded.c:4
const float BLIND_TIME
Definition Blinded.c:3
override void Init()
Definition Blinded.c:6
eModifiers
Definition eModifiers.c:2