Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
painheavystate.c
Go to the documentation of this file.
1class PainHeavySymptom extends SymptomBase
2{
3 //this is just for the Symptom parameters set-up and is called even if the Symptom doesn't execute, don't put any gameplay code in here
4 override void OnInit()
5 {
7 m_Priority = 1;
8 m_ID = SymptomIDs.SYMPTOM_PAIN_HEAVY;
9 m_SyncToClient = true;
10 m_MaxCount = 2;
11 m_Duration = 1;
12 }
13
15 override void OnUpdateServer(PlayerBase player, float deltatime)
16 {
17
18 }
19
20 override void OnUpdateClient(PlayerBase player, float deltatime)
21 {
22 }
23
24 override void OnAnimationPlayFailed()
25 {
26
27 }
28
29 override bool CanActivate()
30 {
31 return true;
32 }
33
35 override void OnGetActivatedServer(PlayerBase player)
36 {
37 if (LogManager.IsSymptomLogEnable())
38 Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetActivated", m_Player.ToString());
39
40 PlaySound(EPlayerSoundEventID.TAKING_DMG_HEAVY);
41 }
42
44 override void OnGetActivatedClient(PlayerBase player)
45 {
46 //player.SpawnShockEffect(0.5);
47 player.SpawnDamageDealtEffect2();
48 if (LogManager.IsSymptomLogEnable()) Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetActivated", m_Player.ToString());
49 }
50
52 override void OnGetDeactivatedServer(PlayerBase player)
53 {
54 if (LogManager.IsSymptomLogEnable()) Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetDeactivated", m_Player.ToString());
55 }
56
58 override void OnGetDeactivatedClient(PlayerBase player)
59 {
60 if (LogManager.IsSymptomLogEnable()) Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetDeactivated", m_Player.ToString());
61 }
62}
float m_Duration
Definition debug.c:2
void OnGetActivatedServer(PlayerBase player)
gets called once on an Symptom which is being activated
bool CanActivate()
Definition statebase.c:348
void OnGetActivatedClient(PlayerBase player)
void OnInit()
this is just for the Symptom parameters set-up and is called even if the Symptom doesn't execute,...
void OnAnimationPlayFailed()
void OnGetDeactivatedClient(PlayerBase player)
void OnUpdateClient(PlayerBase player, float deltatime)
gets called every frame
void OnUpdateServer(PlayerBase player, float deltatime)
gets called every frame
void OnGetDeactivatedServer(PlayerBase player)
only gets called once on an active Symptom that is being deactivated
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition effect.c:51
proto string ToString()
DayZPlayer m_Player
Definition hand_events.c:42
void PlaySound()
int m_SymptomType
SymptomTypes