Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
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;
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 {
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 {
32 Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetActivated", m_Player.ToString());
33 }
34
36 override void OnGetDeactivatedServer(PlayerBase player)
37 {
39 Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetDeactivated", m_Player.ToString());
40 }
41
43 override void OnGetDeactivatedClient(PlayerBase player)
44 {
46 Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetDeactivated", m_Player.ToString());
47 }
48}
Definition debug.c:2
static void SymptomLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Definition debug.c:192
static bool IsSymptomLogEnable()
Definition debug.c:806
override void OnInit()
Definition gaspsymptom.c:4
bool m_SyncToClient
Definition statebase.c:21
override void OnGetDeactivatedServer(PlayerBase player)
only gets called once on an active Symptom that is being deactivated
Definition gaspsymptom.c:36
int m_Priority
Definition statebase.c:4
override void OnGetActivatedServer(PlayerBase player)
gets called once on an Symptom which is being activated
Definition gaspsymptom.c:20
int m_SymptomType
Definition statebase.c:18
override void OnGetActivatedClient(PlayerBase player)
gets called once on a Symptom which is being activated
Definition gaspsymptom.c:29
PlayerBase m_Player
Definition statebase.c:8
override void OnGetDeactivatedClient(PlayerBase player)
only gets called once on an active Symptom that is being deactivated
Definition gaspsymptom.c:43
override bool CanBeInterupted()
Definition gaspsymptom.c:14
bool m_DestroyOnAnimFinish
Definition statebase.c:16
float m_Duration
Definition statebase.c:22
proto string ToString()
void PlaySound()
SymptomTypes