DayZ 1.24
Loading...
Searching...
No Matches
SoundEvents.c File Reference

Go to the source code of this file.

Classes

class  SoundEventBase
 

Functions

class SoundEventBase GetSoundEventType (int id)
 
void ~SoundEventBase ()
 
bool IsSkipForControlled ()
 
void Tick ()
 
bool IsSoundCallbackExist ()
 
bool IsDestroyRequested ()
 
bool CanPlay ()
 
bool Play ()
 
void OnPlay (PlayerBase player)
 
void Stop ()
 
int GetSoundEventID ()
 
int GetSoundEventType ()
 
AbstractWave GetSoundSetCallback ()
 
bool PlayRequest (EPlayerSoundEventID id, bool sent_from_server=false)
 
bool PlayRequestEx (EPlayerSoundEventID id, bool sent_from_server=false, int param=0)
 
int GetCurrentStateEventID ()
 
int GetCurrentStateEventType ()
 

Variables

AbstractWave m_SoundSetCallback
 
int m_Type
 
int m_ID
 
int m_SoundVoiceAnimEventClassID
 
bool m_RequestDestroy
 
string m_SoundSetNameRoot
 
bool m_SkipForControlledCharacter
 
int m_Param
 

Function Documentation

◆ CanPlay()

bool GetSoundEventType::CanPlay ( )

Definition at line 120 of file SoundEvents.c.

◆ GetCurrentStateEventID()

int GetCurrentStateEventID ( )

Definition at line 83 of file SoundEvents.c.

83{ return -1; }

◆ GetCurrentStateEventType()

int GetCurrentStateEventType ( )

Definition at line 84 of file SoundEvents.c.

84{ return -1; }

◆ GetSoundEventID()

int GetSoundEventType::GetSoundEventID ( )

Definition at line 138 of file SoundEvents.c.

139{
141 int m_Type;
142 int m_ID;
144 bool m_RequestDestroy;
145 string m_SoundSetNameRoot;
147 int m_Param;
148
149
150 void ~SoundEventBase()
151 {
153 }
154
155 //obsolete function, now possible to set a param
157 {
159 }
160
161 void Tick()
162 {
164 m_RequestDestroy = true;
165 }
166
168 {
170 return true;
171
172 return false;
173 }
174
175 bool IsDestroyRequested()
176 {
177 return m_RequestDestroy;
178 }
179
180 bool CanPlay()
181 {
182 return true;
183 }
184
185 bool Play()
186 {
187 return true;
188 }
189
191
192 void Stop()
193 {
196 }
197
198 int GetSoundEventID()
199 {
200 return m_ID;
201 }
202
204 {
205 return m_Type;
206 }
207
209 {
210 return m_SoundSetCallback;
211 }
212}
213
215{
216 static int GetSoundEventType(int id) { return -1; }
217 //void OnTick(float delta_time) {}
218 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
219 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0) { return true; };
220 int GetCurrentStateEventID() { return -1; }
221 int GetCurrentStateEventType() { return -1; }
222}
override int GetCurrentStateEventID()
override int GetCurrentStateEventType()
override bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server=false, int param=0)
EAnimPlayState PlayRequest()
AbstractWave m_SoundSetCallback
Definition SoundEvents.c:80
int m_Type
Definition SoundEvents.c:81
AbstractWave GetSoundSetCallback()
bool IsSoundCallbackExist()
bool IsDestroyRequested()
bool CanPlay()
void ~SoundEventBase()
Definition SoundEvents.c:90
int m_ID
Definition SoundEvents.c:82
int m_SoundVoiceAnimEventClassID
Definition SoundEvents.c:83
int GetSoundEventType()
bool IsSkipForControlled()
Definition SoundEvents.c:96
bool Play()
bool m_RequestDestroy
Definition SoundEvents.c:84
void OnPlay(PlayerBase player)
Definition JumpEvents.c:46
int GetSoundEventID()
int m_Param
Definition SoundEvents.c:87
string m_SoundSetNameRoot
Definition SoundEvents.c:85
bool m_SkipForControlledCharacter
Definition SoundEvents.c:86
void Tick()
void Stop()
proto void Stop()

◆ GetSoundEventType() [1/2]

int GetSoundEventType::GetSoundEventType ( )

Definition at line 143 of file SoundEvents.c.

144{
146 int m_Type;
147 int m_ID;
149 bool m_RequestDestroy;
150 string m_SoundSetNameRoot;
152 int m_Param;
153
154
155 void ~SoundEventBase()
156 {
158 }
159
160 //obsolete function, now possible to set a param
162 {
164 }
165
166 void Tick()
167 {
169 m_RequestDestroy = true;
170 }
171
173 {
175 return true;
176
177 return false;
178 }
179
180 bool IsDestroyRequested()
181 {
182 return m_RequestDestroy;
183 }
184
185 bool CanPlay()
186 {
187 return true;
188 }
189
190 bool Play()
191 {
192 return true;
193 }
194
196
197 void Stop()
198 {
201 }
202
203 int GetSoundEventID()
204 {
205 return m_ID;
206 }
207
209 {
210 return m_Type;
211 }
212
214 {
215 return m_SoundSetCallback;
216 }
217}
218
220{
221 static int GetSoundEventType(int id) { return -1; }
222 //void OnTick(float delta_time) {}
223 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
224 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0) { return true; };
225 int GetCurrentStateEventID() { return -1; }
226 int GetCurrentStateEventType() { return -1; }
227}

◆ GetSoundEventType() [2/2]

class SoundEventBase GetSoundEventType ( int id)

Definition at line 1 of file SoundEvents.c.

79{ return -1; }

◆ GetSoundSetCallback()

AbstractWave GetSoundEventType::GetSoundSetCallback ( )

Definition at line 148 of file SoundEvents.c.

149{
151 int m_Type;
152 int m_ID;
154 bool m_RequestDestroy;
155 string m_SoundSetNameRoot;
157 int m_Param;
158
159
160 void ~SoundEventBase()
161 {
163 }
164
165 //obsolete function, now possible to set a param
167 {
169 }
170
171 void Tick()
172 {
174 m_RequestDestroy = true;
175 }
176
178 {
180 return true;
181
182 return false;
183 }
184
185 bool IsDestroyRequested()
186 {
187 return m_RequestDestroy;
188 }
189
190 bool CanPlay()
191 {
192 return true;
193 }
194
195 bool Play()
196 {
197 return true;
198 }
199
201
202 void Stop()
203 {
206 }
207
208 int GetSoundEventID()
209 {
210 return m_ID;
211 }
212
214 {
215 return m_Type;
216 }
217
219 {
220 return m_SoundSetCallback;
221 }
222}
223
225{
226 static int GetSoundEventType(int id) { return -1; }
227 //void OnTick(float delta_time) {}
228 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
229 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0) { return true; };
230 int GetCurrentStateEventID() { return -1; }
231 int GetCurrentStateEventType() { return -1; }
232}

◆ IsDestroyRequested()

bool GetSoundEventType::IsDestroyRequested ( )

Definition at line 115 of file SoundEvents.c.

116{
118 int m_Type;
119 int m_ID;
121 bool m_RequestDestroy;
122 string m_SoundSetNameRoot;
124 int m_Param;
125
126
127 void ~SoundEventBase()
128 {
130 }
131
132 //obsolete function, now possible to set a param
134 {
136 }
137
138 void Tick()
139 {
141 m_RequestDestroy = true;
142 }
143
145 {
147 return true;
148
149 return false;
150 }
151
152 bool IsDestroyRequested()
153 {
154 return m_RequestDestroy;
155 }
156
157 bool CanPlay()
158 {
159 return true;
160 }
161
162 bool Play()
163 {
164 return true;
165 }
166
168
169 void Stop()
170 {
173 }
174
175 int GetSoundEventID()
176 {
177 return m_ID;
178 }
179
181 {
182 return m_Type;
183 }
184
186 {
187 return m_SoundSetCallback;
188 }
189}
190
192{
193 static int GetSoundEventType(int id) { return -1; }
194 //void OnTick(float delta_time) {}
195 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
196 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0) { return true; };
197 int GetCurrentStateEventID() { return -1; }
198 int GetCurrentStateEventType() { return -1; }
199}

◆ IsSkipForControlled()

bool GetSoundEventType::IsSkipForControlled ( )

Definition at line 96 of file SoundEvents.c.

97{
99 int m_Type;
100 int m_ID;
102 bool m_RequestDestroy;
103 string m_SoundSetNameRoot;
105 int m_Param;
106
107
108 void ~SoundEventBase()
109 {
111 }
112
113 //obsolete function, now possible to set a param
115 {
117 }
118
119 void Tick()
120 {
122 m_RequestDestroy = true;
123 }
124
126 {
128 return true;
129
130 return false;
131 }
132
133 bool IsDestroyRequested()
134 {
135 return m_RequestDestroy;
136 }
137
138 bool CanPlay()
139 {
140 return true;
141 }
142
143 bool Play()
144 {
145 return true;
146 }
147
149
150 void Stop()
151 {
154 }
155
156 int GetSoundEventID()
157 {
158 return m_ID;
159 }
160
162 {
163 return m_Type;
164 }
165
167 {
168 return m_SoundSetCallback;
169 }
170}
171
173{
174 static int GetSoundEventType(int id) { return -1; }
175 //void OnTick(float delta_time) {}
176 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
177 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0) { return true; };
178 int GetCurrentStateEventID() { return -1; }
179 int GetCurrentStateEventType() { return -1; }
180}

◆ IsSoundCallbackExist()

bool GetSoundEventType::IsSoundCallbackExist ( )

Definition at line 107 of file SoundEvents.c.

108{
110 int m_Type;
111 int m_ID;
113 bool m_RequestDestroy;
114 string m_SoundSetNameRoot;
116 int m_Param;
117
118
119 void ~SoundEventBase()
120 {
122 }
123
124 //obsolete function, now possible to set a param
126 {
128 }
129
130 void Tick()
131 {
133 m_RequestDestroy = true;
134 }
135
137 {
139 return true;
140
141 return false;
142 }
143
144 bool IsDestroyRequested()
145 {
146 return m_RequestDestroy;
147 }
148
149 bool CanPlay()
150 {
151 return true;
152 }
153
154 bool Play()
155 {
156 return true;
157 }
158
160
161 void Stop()
162 {
165 }
166
167 int GetSoundEventID()
168 {
169 return m_ID;
170 }
171
173 {
174 return m_Type;
175 }
176
178 {
179 return m_SoundSetCallback;
180 }
181}
182
184{
185 static int GetSoundEventType(int id) { return -1; }
186 //void OnTick(float delta_time) {}
187 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
188 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0) { return true; };
189 int GetCurrentStateEventID() { return -1; }
190 int GetCurrentStateEventType() { return -1; }
191}

Referenced by IsFinished().

◆ OnPlay()

void GetSoundEventType::OnPlay ( PlayerBase player)

!! beware of the ifdef above , most likely you want to put your code above it, otherwise it might not get executed !!!

Definition at line 46 of file JumpEvents.c.

47{
49 {
50 return true;
51 }
52
53 override bool CanPlay(PlayerBase player)
54 {
55 if (!super.CanPlay(player))
56 return false;
57 return true;
58 }
59
60 override void OnPlay(PlayerBase player)
61 {
62 super.OnPlay(player);
63 if (player.CanSpawnBreathVaporEffect())
64 player.SpawnBreathVaporEffect();
65 }
66
67 override void OnEnd()
68 {
69 super.OnEnd();
70 //m_Player.GetStaminaSoundHandlerClient().PostponeStamina(1000);
71 if (m_Player)
72 StaminaSoundHandlerClient.Cast(m_Player.m_PlayerSoundManagerClient.GetHandler(eSoundHandlers.STAMINA)).PostponeStamina(1300);
73 }
74}
75
77{
78 void JumpSoundEvent()
79 {
80 m_HasPriorityOverTypes = -1;//-1 for all
84 }
85}
eBleedingSourceType m_Type
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
DayZPlayer m_Player
Definition Hand_Events.c:42
override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
Definition JumpEvents.c:34
override void OnPlay(PlayerBase player)
Definition JumpEvents.c:46
class JumpEventsBase extends PlayerSoundEventBase JumpSoundEvent()
Definition JumpEvents.c:33
override void OnEnd()
Definition JumpEvents.c:53
override bool CanPlay()
Definition MindStates.c:14
EPlayerSoundEventType
EPlayerSoundEventType m_HasPriorityOverTypes
eSoundHandlers

◆ Play()

bool GetSoundEventType::Play ( )

Definition at line 125 of file SoundEvents.c.

126{
128 int m_Type;
129 int m_ID;
131 bool m_RequestDestroy;
132 string m_SoundSetNameRoot;
134 int m_Param;
135
136
137 void ~SoundEventBase()
138 {
140 }
141
142 //obsolete function, now possible to set a param
144 {
146 }
147
148 void Tick()
149 {
151 m_RequestDestroy = true;
152 }
153
155 {
157 return true;
158
159 return false;
160 }
161
162 bool IsDestroyRequested()
163 {
164 return m_RequestDestroy;
165 }
166
167 bool CanPlay()
168 {
169 return true;
170 }
171
172 bool Play()
173 {
174 return true;
175 }
176
178
179 void Stop()
180 {
183 }
184
185 int GetSoundEventID()
186 {
187 return m_ID;
188 }
189
191 {
192 return m_Type;
193 }
194
196 {
197 return m_SoundSetCallback;
198 }
199}
200
202{
203 static int GetSoundEventType(int id) { return -1; }
204 //void OnTick(float delta_time) {}
205 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
206 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0) { return true; };
207 int GetCurrentStateEventID() { return -1; }
208 int GetCurrentStateEventType() { return -1; }
209}

◆ PlayRequest()

bool PlayRequest ( EPlayerSoundEventID id,
bool sent_from_server = false )

Definition at line 81 of file SoundEvents.c.

81{ return true; }

◆ PlayRequestEx()

bool PlayRequestEx ( EPlayerSoundEventID id,
bool sent_from_server = false,
int param = 0 )

Definition at line 82 of file SoundEvents.c.

82{ return true; };

◆ Stop()

void GetSoundEventType::Stop ( )

Definition at line 132 of file SoundEvents.c.

133{
135 int m_Type;
136 int m_ID;
138 bool m_RequestDestroy;
139 string m_SoundSetNameRoot;
141 int m_Param;
142
143
144 void ~SoundEventBase()
145 {
147 }
148
149 //obsolete function, now possible to set a param
151 {
153 }
154
155 void Tick()
156 {
158 m_RequestDestroy = true;
159 }
160
162 {
164 return true;
165
166 return false;
167 }
168
169 bool IsDestroyRequested()
170 {
171 return m_RequestDestroy;
172 }
173
174 bool CanPlay()
175 {
176 return true;
177 }
178
179 bool Play()
180 {
181 return true;
182 }
183
185
186 void Stop()
187 {
190 }
191
192 int GetSoundEventID()
193 {
194 return m_ID;
195 }
196
198 {
199 return m_Type;
200 }
201
203 {
204 return m_SoundSetCallback;
205 }
206}
207
209{
210 static int GetSoundEventType(int id) { return -1; }
211 //void OnTick(float delta_time) {}
212 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
213 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0) { return true; };
214 int GetCurrentStateEventID() { return -1; }
215 int GetCurrentStateEventType() { return -1; }
216}

◆ Tick()

void GetSoundEventType::Tick ( )

Definition at line 101 of file SoundEvents.c.

102{
104 int m_Type;
105 int m_ID;
107 bool m_RequestDestroy;
108 string m_SoundSetNameRoot;
110 int m_Param;
111
112
113 void ~SoundEventBase()
114 {
116 }
117
118 //obsolete function, now possible to set a param
120 {
122 }
123
124 void Tick()
125 {
127 m_RequestDestroy = true;
128 }
129
131 {
133 return true;
134
135 return false;
136 }
137
138 bool IsDestroyRequested()
139 {
140 return m_RequestDestroy;
141 }
142
143 bool CanPlay()
144 {
145 return true;
146 }
147
148 bool Play()
149 {
150 return true;
151 }
152
154
155 void Stop()
156 {
159 }
160
161 int GetSoundEventID()
162 {
163 return m_ID;
164 }
165
167 {
168 return m_Type;
169 }
170
172 {
173 return m_SoundSetCallback;
174 }
175}
176
178{
179 static int GetSoundEventType(int id) { return -1; }
180 //void OnTick(float delta_time) {}
181 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
182 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0) { return true; };
183 int GetCurrentStateEventID() { return -1; }
184 int GetCurrentStateEventType() { return -1; }
185}

◆ ~SoundEventBase()

void GetSoundEventType::~SoundEventBase ( )

Definition at line 90 of file SoundEvents.c.

91{
93 int m_Type;
94 int m_ID;
97 string m_SoundSetNameRoot;
99 int m_Param;
100
101
102 void ~SoundEventBase()
103 {
105 }
106
107 //obsolete function, now possible to set a param
109 {
111 }
112
113 void Tick()
114 {
116 m_RequestDestroy = true;
117 }
118
120 {
122 return true;
123
124 return false;
125 }
126
127 bool IsDestroyRequested()
128 {
129 return m_RequestDestroy;
130 }
131
132 bool CanPlay()
133 {
134 return true;
135 }
136
137 bool Play()
138 {
139 return true;
140 }
141
143
144 void Stop()
145 {
148 }
149
150 int GetSoundEventID()
151 {
152 return m_ID;
153 }
154
156 {
157 return m_Type;
158 }
159
161 {
162 return m_SoundSetCallback;
163 }
164}
165
167{
168 static int GetSoundEventType(int id) { return -1; }
169 //void OnTick(float delta_time) {}
170 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
171 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0) { return true; };
172 int GetCurrentStateEventID() { return -1; }
173 int GetCurrentStateEventType() { return -1; }
174}

Variable Documentation

◆ m_ID

int m_ID

Definition at line 82 of file SoundEvents.c.

◆ m_Param

int m_Param

Definition at line 87 of file SoundEvents.c.

Referenced by InitEx().

◆ m_RequestDestroy

bool m_RequestDestroy

Definition at line 84 of file SoundEvents.c.

◆ m_SkipForControlledCharacter

bool m_SkipForControlledCharacter

Definition at line 86 of file SoundEvents.c.

◆ m_SoundSetCallback

◆ m_SoundSetNameRoot

◆ m_SoundVoiceAnimEventClassID

◆ m_Type

int m_Type

Definition at line 81 of file SoundEvents.c.