Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
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
};
ModifierBase
Definition
breathvapourmdfr.c:4
PlayerBase
Definition
playerbaseclient.c:2
TestingMdfr
Definition
testing.c:2
TestingMdfr::DeactivateCondition
override bool DeactivateCondition(PlayerBase player)
Definition
testing.c:39
TestingMdfr::OnReconnect
override void OnReconnect(PlayerBase player)
Definition
testing.c:20
TestingMdfr::OnActivate
override void OnActivate(PlayerBase player)
Definition
testing.c:13
TestingMdfr::stuff
float stuff
Definition
testing.c:3
TestingMdfr::OnTick
override void OnTick(PlayerBase player, float deltaT)
Definition
testing.c:51
TestingMdfr::swch
bool swch
Definition
testing.c:4
TestingMdfr::Init
override void Init()
Definition
testing.c:5
TestingMdfr::ActivateCondition
override bool ActivateCondition(PlayerBase player)
Definition
testing.c:29
m_ID
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it).
Definition
effect.c:51
eModifiers
eModifiers
Definition
emodifiers.c:2
m_TrackActivatedTime
bool m_TrackActivatedTime
overall time this modifier was active
Definition
modifierbase.c:14
GetAttachedTime
float GetAttachedTime()
Definition
modifierbase.c:150
m_TickIntervalActive
float m_TickIntervalActive
Definition
modifierbase.c:18
m_TickIntervalInactive
float m_TickIntervalInactive
Definition
modifierbase.c:17
DEFAULT_TICK_TIME_INACTIVE
const int DEFAULT_TICK_TIME_INACTIVE
Definition
modifiersmanager.c:29
DEFAULT_TICK_TIME_ACTIVE
enum eModifierSyncIDs DEFAULT_TICK_TIME_ACTIVE
Games
Dayz
scripts
4_world
classes
playermodifiers
modifiers
testing.c
Generated by
1.17.0