Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
testing.c
Go to the documentation of this file.
1
class
TestingMdfr
:
ModifierBase
2
{
3
float
stuff;
4
bool
swch;
5
override
void
Init()
6
{
7
m_TrackActivatedTime
=
true
;
8
m_ID
=
eModifiers
.MDF_TESTING;
9
m_TickIntervalInactive
=
DEFAULT_TICK_TIME_INACTIVE
;
10
m_TickIntervalActive
=
DEFAULT_TICK_TIME_ACTIVE
;
11
}
12
13
override
void
OnActivate(
PlayerBase
player)
14
{
15
//m_Timer1.Run(1, this, "BadaBang");
16
player.GetSymptomManager().QueueUpPrimarySymptom( SymptomIDs.SYMPTOM_COUGH );
17
18
}
19
20
override
void
OnReconnect(
PlayerBase
player)
21
{
22
23
}
24
25
// ------------------------------------------------------------------------------
26
27
// ------------------------------------------------------------------------------
28
29
override
bool
ActivateCondition(
PlayerBase
player)
30
{
31
return
swch;
32
if
(stuff < 40)
33
{
34
return
true
;
35
}
36
else
return
false
;
37
}
38
39
override
bool
DeactivateCondition(
PlayerBase
player)
40
{
41
if
(
GetAttachedTime
() > 100) {swch =
true
;
return
true
;}
42
else
return
false
;
43
if
(stuff > 40)
44
{
45
return
true
;
46
}
47
else
return
false
;
48
}
49
// ------------------------------------------------------------------------------
50
51
override
void
OnTick(
PlayerBase
player,
float
deltaT)
52
{
53
stuff += deltaT;
54
}
55
};
m_TickIntervalActive
float m_TickIntervalActive
Definition:
modifierbase.c:19
m_TrackActivatedTime
bool m_TrackActivatedTime
Definition:
modifierbase.c:15
DEFAULT_TICK_TIME_ACTIVE
const int DEFAULT_TICK_TIME_ACTIVE
Definition:
modifiersmanager.c:31
PlayerBase
Definition:
playerbaseclient.c:1
m_TickIntervalInactive
float m_TickIntervalInactive
Definition:
modifierbase.c:18
eModifiers
eModifiers
Definition:
emodifiers.c:1
ModifierBase
Definition:
breathvapourmdfr.c:3
GetAttachedTime
float GetAttachedTime()
Definition:
modifierbase.c:150
TestingMdfr
Definition:
testing.c:1
m_ID
protected int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition:
effect.c:49
DEFAULT_TICK_TIME_INACTIVE
const int DEFAULT_TICK_TIME_INACTIVE
Definition:
modifiersmanager.c:33
DAYZ
scripts_v1.24.157551
scripts
world
classes
playermodifiers
modifiers
testing.c
Generated by
1.8.17