DayZ 1.24
Loading...
Searching...
No Matches
BlindedMdfr Class Reference
Inheritance diagram for BlindedMdfr:
[legend]
Collaboration diagram for BlindedMdfr:
[legend]

Private Member Functions

override void Init ()
 
override bool ActivateCondition (PlayerBase player)
 
override void OnActivate (PlayerBase player)
 
override void OnDeactivate (PlayerBase player)
 
override bool DeactivateCondition (PlayerBase player)
 
override void OnTick (PlayerBase player, float deltaT)
 

Private Attributes

const float BLIND_TIME = 7
 
float m_Timer
 

Detailed Description

Definition at line 1 of file Blinded.c.

Member Function Documentation

◆ ActivateCondition()

override bool BlindedMdfr::ActivateCondition ( PlayerBase player)
inlineprivate

Definition at line 15 of file Blinded.c.

16 {
17 return false;
18 }

◆ DeactivateCondition()

override bool BlindedMdfr::DeactivateCondition ( PlayerBase player)
inlineprivate

Definition at line 32 of file Blinded.c.

33 {
34 if (m_Timer > BLIND_TIME)
35 return true;
36 else
37 return false;
38 }
float m_Timer
Definition Blinded.c:4
const float BLIND_TIME
Definition Blinded.c:3

References BLIND_TIME, and m_Timer.

◆ Init()

override void BlindedMdfr::Init ( )
inlineprivate

Definition at line 6 of file Blinded.c.

7 {
9 m_ID = eModifiers.MDF_BLINDED;
13 }
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
eModifiers
Definition eModifiers.c:2

References DEFAULT_TICK_TIME_ACTIVE, DEFAULT_TICK_TIME_INACTIVE, DisableActivateCheck(), m_ID, m_TickIntervalActive, m_TickIntervalInactive, and m_TrackActivatedTime.

◆ OnActivate()

override void BlindedMdfr::OnActivate ( PlayerBase player)
inlineprivate

Definition at line 20 of file Blinded.c.

21 {
22 m_Timer = 0;
23
24 }

References m_Timer.

◆ OnDeactivate()

override void BlindedMdfr::OnDeactivate ( PlayerBase player)
inlineprivate

Definition at line 26 of file Blinded.c.

27 {
28 g_Game.GetWorld().SetAperture(0);
29 }
DayZGame g_Game
Definition DayZGame.c:3528

References g_Game.

◆ OnTick()

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

Definition at line 40 of file Blinded.c.

41 {
42 m_Timer++;
43 g_Game.GetWorld().SetAperture(m_Timer);
44 }

References g_Game, and m_Timer.

Member Data Documentation

◆ BLIND_TIME

const float BlindedMdfr::BLIND_TIME = 7
private

Definition at line 3 of file Blinded.c.

Referenced by DeactivateCondition().

◆ m_Timer

float BlindedMdfr::m_Timer
private

Definition at line 4 of file Blinded.c.

Referenced by DeactivateCondition(), OnActivate(), and OnTick().


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