Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
testdisease.c
Go to the documentation of this file.
2{
3 float m_Interval;
4 ref Param1<float> m_SomeValue;
5
6 override void Init()
7 {
9 m_ID = 9999;
12 m_SomeValue = new Param1<float>(0);
13 MakeParamObjectPersistent(m_SomeValue);
14
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};
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition effect.c:51
bool m_TrackActivatedTime
overall time this modifier was active
void DisableDeactivateCheck()
void DisableActivateCheck()
float m_TickIntervalActive
float m_TickIntervalInactive
void MakeParamObjectPersistent(Param object)
const int DEFAULT_TICK_TIME_INACTIVE
void OnActivate()