Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
soundevents.c
Go to the documentation of this file.
2{
4 int m_Type;
5 int m_ID;
11
12
14 {
16 }
17
18 //obsolete function, now possible to set a param
23
24 void Tick()
25 {
27 {
28 m_RequestDestroy = true;
29 }
30 }
31
33 {
35 {
36 return true;
37 }
38
39 return false;
40 }
41
43 {
44 return m_RequestDestroy;
45 }
46
47 bool CanPlay()
48 {
49 return true;
50 }
51
52 bool Play()
53 {
54 return true;
55 }
56
57 void OnPlay(PlayerBase player);
58
59 void Stop()
60 {
62 {
63 m_SoundSetCallback.Stop();
64 }
65 }
66
68 {
69 return m_ID;
70 }
71
73 {
74 return m_Type;
75 }
76
81}
82
83class SoundEventHandler
84{
85 static int GetSoundEventType(int id) { return -1; }
86 //void OnTick(float delta_time) {}
87 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
88 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0){ return true; };
89 bool StopRequest(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0){ return true; };
90 int GetCurrentStateEventID() { return -1; }
91 int GetCurrentStateEventType() { return -1; }
void ~SoundEventBase()
Definition soundevents.c:13
AbstractWave m_SoundSetCallback
Definition soundevents.c:3
bool IsSkipForControlled()
Definition soundevents.c:19
void OnPlay(PlayerBase player)
int GetSoundEventType()
Definition soundevents.c:72
AbstractWave GetSoundSetCallback()
Definition soundevents.c:77
int m_SoundVoiceAnimEventClassID
Definition soundevents.c:6
bool m_RequestDestroy
Definition soundevents.c:7
bool IsDestroyRequested()
Definition soundevents.c:42
bool IsSoundCallbackExist()
Definition soundevents.c:32
int GetSoundEventID()
Definition soundevents.c:67
string m_SoundSetNameRoot
Definition soundevents.c:8
bool m_SkipForControlledCharacter
Definition soundevents.c:9
void AbstractWave()
Definition sound.c:167
override int GetCurrentStateEventID()
override int GetCurrentStateEventType()
override bool StopRequest(EPlayerSoundEventID id, bool sent_from_server=false, int param=0)
override bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server=false, int param=0)
EAnimPlayState PlayRequest()
int GetSoundEventType()