Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
laughterstate.c
Go to the documentation of this file.
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 {
6 m_ID = SymptomIDs.SYMPTOM_LAUGHTER;
8 m_Priority = 0;
9 m_SyncToClient = false;
10 m_Duration = 4;
11
13 }
14
16 override void OnGetActivatedServer(PlayerBase player)
17 {
19 Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetActivated", m_Player.ToString());
20
21 PlaySound(EPlayerSoundEventID.SYMPTOM_LAUGHTER);
22 player.SpreadAgentsEx(3);
23 }
24
26 override void OnGetActivatedClient(PlayerBase player)
27 {
29 Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetActivated", m_Player.ToString());
30 }
31
33 override void OnGetDeactivatedServer(PlayerBase player)
34 {
36 Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetDeactivated", m_Player.ToString());
37 }
38
40 override void OnGetDeactivatedClient(PlayerBase player)
41 {
43 Debug.SymptomLog("n/a", this.ToString(), "n/a", "OnGetDeactivated", m_Player.ToString());
44 }
45}
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
override void OnInit()
override void OnGetDeactivatedServer(PlayerBase player)
only gets called once on an active Symptom that is being deactivated
override void OnGetActivatedServer(PlayerBase player)
gets called once on an Symptom which is being activated
override void OnGetActivatedClient(PlayerBase player)
gets called once on a Symptom which is being activated
override void OnGetDeactivatedClient(PlayerBase player)
only gets called once on an active Symptom that is being deactivated
static bool IsSymptomLogEnable()
Definition debug.c:806
bool m_SyncToClient
Definition statebase.c:21
int m_Priority
Definition statebase.c:4
int m_SymptomType
Definition statebase.c:18
void SymptomBase()
Definition statebase.c:30
PlayerBase m_Player
Definition statebase.c:8
bool m_DestroyOnAnimFinish
Definition statebase.c:16
float m_Duration
Definition statebase.c:22
proto string ToString()
void PlaySound()
SymptomTypes