Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
testdisease.c
Go to the documentation of this file.
1
class
TestDiseaseMdfr
:
ModifierBase
2
{
3
float
m_Interval;
4
ref Param1<float> m_SomeValue;
5
6
override
void
Init()
7
{
8
m_TrackActivatedTime
=
false
;
9
m_ID
= 9999;
10
m_TickIntervalInactive
=
DEFAULT_TICK_TIME_INACTIVE
;
11
m_TickIntervalActive
= 5;
12
m_SomeValue =
new
Param1<float>(0);
13
MakeParamObjectPersistent
(m_SomeValue);
14
15
DisableDeactivateCheck
();
16
DisableActivateCheck
();
17
}
18
19
override
bool
ActivateCondition(
PlayerBase
player)
20
{
21
return
false
;
22
}
23
24
override
void
OnActivate(
PlayerBase
player)
25
{
26
//player.GetBleedingManagerServer().AttemptAddBleedingSource(Math.RandomInt(0, 100));
27
}
28
29
override
void
OnReconnect(
PlayerBase
player)
30
{
31
//OnActivate(player);
32
//player.GetSymptomManager().QueueUpSecondaryState( SymptomIDs.SYMPTOM_BLINDNESS );
33
}
34
35
override
void
OnDeactivate(
PlayerBase
player)
36
{
37
}
38
39
override
bool
DeactivateCondition(
PlayerBase
player)
40
{
41
return
false
;
42
}
43
44
override
void
OnTick(
PlayerBase
player,
float
deltaT)
45
{
46
player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_LAUGHTER);
47
}
48
};
m_TickIntervalActive
float m_TickIntervalActive
Definition:
modifierbase.c:19
m_TrackActivatedTime
bool m_TrackActivatedTime
Definition:
modifierbase.c:15
DisableDeactivateCheck
void DisableDeactivateCheck()
Definition:
modifierbase.c:83
PlayerBase
Definition:
playerbaseclient.c:1
m_TickIntervalInactive
float m_TickIntervalInactive
Definition:
modifierbase.c:18
ModifierBase
Definition:
breathvapourmdfr.c:3
TestDiseaseMdfr
Definition:
testdisease.c:1
DisableActivateCheck
void DisableActivateCheck()
Definition:
modifierbase.c:78
MakeParamObjectPersistent
void MakeParamObjectPersistent(Param object)
Definition:
modifierbase.c:57
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
diseases
testdisease.c
Generated by
1.8.17