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

Private Member Functions

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

Private Attributes

float stuff
 
bool swch
 

Detailed Description

Definition at line 1 of file Testing.c.

Member Function Documentation

◆ ActivateCondition()

override bool TestingMdfr::ActivateCondition ( PlayerBase player)
inlineprivate

Definition at line 29 of file Testing.c.

30 {
31 return swch;
32 if (stuff < 40)
33 return true;
34 else return false;
35 }
float stuff
Definition Testing.c:3
bool swch
Definition Testing.c:4

References stuff, and swch.

◆ DeactivateCondition()

override bool TestingMdfr::DeactivateCondition ( PlayerBase player)
inlineprivate

Definition at line 37 of file Testing.c.

38 {
39 if (GetAttachedTime() > 100) {swch = true; return true;}
40 else return false;
41 if (stuff > 40)
42 return true;
43 else return false;
44 }
float GetAttachedTime()

References GetAttachedTime(), stuff, and swch.

◆ Init()

override void TestingMdfr::Init ( )
inlineprivate

Definition at line 5 of file Testing.c.

6 {
8 m_ID = eModifiers.MDF_TESTING;
11 }
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 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, m_ID, m_TickIntervalActive, m_TickIntervalInactive, and m_TrackActivatedTime.

◆ OnActivate()

override void TestingMdfr::OnActivate ( PlayerBase player)
inlineprivate

Definition at line 13 of file Testing.c.

14 {
15 //m_Timer1.Run(1, this, "BadaBang");
16 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_COUGH);
17
18 }

◆ OnReconnect()

override void TestingMdfr::OnReconnect ( PlayerBase player)
inlineprivate

Definition at line 20 of file Testing.c.

21 {
22
23 }

◆ OnTick()

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

Definition at line 47 of file Testing.c.

48 {
49 stuff += deltaT;
50 }

References stuff.

Member Data Documentation

◆ stuff

float TestingMdfr::stuff
private

Definition at line 3 of file Testing.c.

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

◆ swch

bool TestingMdfr::swch
private

Definition at line 4 of file Testing.c.

Referenced by ActivateCondition(), and DeactivateCondition().


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