Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
gaspsymptom.c
Go to the documentation of this file.
1class GaspSymptom 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 = 100;
8 m_ID = SymptomIDs.SYMPTOM_GASP;
9 m_DestroyOnAnimFinish = true;
10 m_SyncToClient = false;
11 m_Duration = 2.5;
12 }
13
14 override bool CanBeInterupted()
15 {
16 return false;
17 }
18
20 override void OnGetActivatedServer(PlayerBase player)
21 {
22 if (LogManager.IsSymptomLogEnable())
23 Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetActivated", m_Player.ToString());
24
25 PlaySound(EPlayerSoundEventID.SYMPTOM_GASP);
26 }
27
29 override void OnGetActivatedClient(PlayerBase player)
30 {
31 if (LogManager.IsSymptomLogEnable())
32 Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetActivated", m_Player.ToString());
33 }
34
36 override void OnGetDeactivatedServer(PlayerBase player)
37 {
38 if (LogManager.IsSymptomLogEnable())
39 Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetDeactivated", m_Player.ToString());
40 }
41
43 override void OnGetDeactivatedClient(PlayerBase player)
44 {
45 if (LogManager.IsSymptomLogEnable())
46 Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetDeactivated", m_Player.ToString());
47 }
48}
float m_Duration
Definition debug.c:2
void OnGetActivatedServer(PlayerBase player)
gets called once on an Symptom which is being activated
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 OnGetDeactivatedClient(PlayerBase player)
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