Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл SoundEvents.c

См. исходные тексты.

Структуры данных

class  SoundEventBase
 

Функции

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 ()
 

Переменные

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

Функции

◆ CanPlay()

bool CanPlay ( )

◆ GetCurrentStateEventID()

int GetCurrentStateEventID ( )
89{ return -1; }

◆ GetCurrentStateEventType()

int GetCurrentStateEventType ( )
90{ return -1; }

◆ GetSoundEventID()

int GetSoundEventID ( )
151{
153 int m_Type;
154 int m_ID;
156 bool m_RequestDestroy;
157 string m_SoundSetNameRoot;
159 int m_Param;
160
161
162 void ~SoundEventBase()
163 {
165 }
166
167 //obsolete function, now possible to set a param
169 {
171 }
172
173 void Tick()
174 {
176 {
177 m_RequestDestroy = true;
178 }
179 }
180
182 {
184 {
185 return true;
186 }
187
188 return false;
189 }
190
191 bool IsDestroyRequested()
192 {
193 return m_RequestDestroy;
194 }
195
196 bool CanPlay()
197 {
198 return true;
199 }
200
201 bool Play()
202 {
203 return true;
204 }
205
207
208 void Stop()
209 {
211 {
213 }
214 }
215
216 int GetSoundEventID()
217 {
218 return m_ID;
219 }
220
222 {
223 return m_Type;
224 }
225
227 {
228 return m_SoundSetCallback;
229 }
230}
231
233{
234 static int GetSoundEventType(int id) { return -1; }
235 //void OnTick(float delta_time) {}
236 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
237 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0){ return true; };
238 int GetCurrentStateEventID() { return -1; }
239 int GetCurrentStateEventType() { return -1; }
240}
override int GetCurrentStateEventID()
Definition InfectedSoundEventHandler.c:38
override int GetCurrentStateEventType()
Definition InfectedSoundEventHandler.c:47
override bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server=false, int param=0)
Definition PlayerSoundEventHandler.c:140
EPlayerSoundEventID
Definition PlayerSoundEventHandler.c:2
EAnimPlayState PlayRequest()
Definition SmptAnimMeta.c:65
void ~SoundEventBase()
Definition SoundEvents.c:96
bool Play()
Definition SoundEvents.c:135
AbstractWave m_SoundSetCallback
Definition SoundEvents.c:86
bool IsSkipForControlled()
Definition SoundEvents.c:102
void Stop()
Definition SoundEvents.c:142
int m_Type
Definition SoundEvents.c:87
void OnPlay(PlayerBase player)
Definition JumpEvents.c:50
int GetSoundEventType()
Definition SoundEvents.c:155
AbstractWave GetSoundSetCallback()
Definition SoundEvents.c:160
int m_ID
Definition SoundEvents.c:88
int m_SoundVoiceAnimEventClassID
Definition SoundEvents.c:89
bool CanPlay()
Definition SoundEvents.c:130
bool m_RequestDestroy
Definition SoundEvents.c:90
bool IsDestroyRequested()
Definition SoundEvents.c:125
bool IsSoundCallbackExist()
Definition SoundEvents.c:115
int m_Param
Definition SoundEvents.c:93
int GetSoundEventID()
Definition SoundEvents.c:150
string m_SoundSetNameRoot
Definition SoundEvents.c:91
bool m_SkipForControlledCharacter
Definition SoundEvents.c:92
void Tick()
Definition SoundEvents.c:107
Definition Sound.c:119
proto void Stop()
Definition EntityAI.c:95
Definition PlayerBaseClient.c:2

◆ GetSoundEventType() [1/2]

int GetSoundEventType ( )
156{
158 int m_Type;
159 int m_ID;
161 bool m_RequestDestroy;
162 string m_SoundSetNameRoot;
164 int m_Param;
165
166
167 void ~SoundEventBase()
168 {
170 }
171
172 //obsolete function, now possible to set a param
174 {
176 }
177
178 void Tick()
179 {
181 {
182 m_RequestDestroy = true;
183 }
184 }
185
187 {
189 {
190 return true;
191 }
192
193 return false;
194 }
195
196 bool IsDestroyRequested()
197 {
198 return m_RequestDestroy;
199 }
200
201 bool CanPlay()
202 {
203 return true;
204 }
205
206 bool Play()
207 {
208 return true;
209 }
210
212
213 void Stop()
214 {
216 {
218 }
219 }
220
221 int GetSoundEventID()
222 {
223 return m_ID;
224 }
225
227 {
228 return m_Type;
229 }
230
232 {
233 return m_SoundSetCallback;
234 }
235}
236
238{
239 static int GetSoundEventType(int id) { return -1; }
240 //void OnTick(float delta_time) {}
241 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
242 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0){ return true; };
243 int GetCurrentStateEventID() { return -1; }
244 int GetCurrentStateEventType() { return -1; }
245}

◆ GetSoundEventType() [2/2]

class SoundEventBase GetSoundEventType ( int id)
85{ return -1; }

◆ GetSoundSetCallback()

AbstractWave GetSoundSetCallback ( )
161{
163 int m_Type;
164 int m_ID;
166 bool m_RequestDestroy;
167 string m_SoundSetNameRoot;
169 int m_Param;
170
171
172 void ~SoundEventBase()
173 {
175 }
176
177 //obsolete function, now possible to set a param
179 {
181 }
182
183 void Tick()
184 {
186 {
187 m_RequestDestroy = true;
188 }
189 }
190
192 {
194 {
195 return true;
196 }
197
198 return false;
199 }
200
201 bool IsDestroyRequested()
202 {
203 return m_RequestDestroy;
204 }
205
206 bool CanPlay()
207 {
208 return true;
209 }
210
211 bool Play()
212 {
213 return true;
214 }
215
217
218 void Stop()
219 {
221 {
223 }
224 }
225
226 int GetSoundEventID()
227 {
228 return m_ID;
229 }
230
232 {
233 return m_Type;
234 }
235
237 {
238 return m_SoundSetCallback;
239 }
240}
241
243{
244 static int GetSoundEventType(int id) { return -1; }
245 //void OnTick(float delta_time) {}
246 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
247 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0){ return true; };
248 int GetCurrentStateEventID() { return -1; }
249 int GetCurrentStateEventType() { return -1; }
250}

◆ IsDestroyRequested()

bool IsDestroyRequested ( )
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 {
152 m_RequestDestroy = true;
153 }
154 }
155
157 {
159 {
160 return true;
161 }
162
163 return false;
164 }
165
166 bool IsDestroyRequested()
167 {
168 return m_RequestDestroy;
169 }
170
171 bool CanPlay()
172 {
173 return true;
174 }
175
176 bool Play()
177 {
178 return true;
179 }
180
182
183 void Stop()
184 {
186 {
188 }
189 }
190
191 int GetSoundEventID()
192 {
193 return m_ID;
194 }
195
197 {
198 return m_Type;
199 }
200
202 {
203 return m_SoundSetCallback;
204 }
205}
206
208{
209 static int GetSoundEventType(int id) { return -1; }
210 //void OnTick(float delta_time) {}
211 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
212 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0){ return true; };
213 int GetCurrentStateEventID() { return -1; }
214 int GetCurrentStateEventType() { return -1; }
215}

◆ IsSkipForControlled()

bool IsSkipForControlled ( )
103{
105 int m_Type;
106 int m_ID;
108 bool m_RequestDestroy;
109 string m_SoundSetNameRoot;
111 int m_Param;
112
113
114 void ~SoundEventBase()
115 {
117 }
118
119 //obsolete function, now possible to set a param
121 {
123 }
124
125 void Tick()
126 {
128 {
129 m_RequestDestroy = true;
130 }
131 }
132
134 {
136 {
137 return true;
138 }
139
140 return false;
141 }
142
143 bool IsDestroyRequested()
144 {
145 return m_RequestDestroy;
146 }
147
148 bool CanPlay()
149 {
150 return true;
151 }
152
153 bool Play()
154 {
155 return true;
156 }
157
159
160 void Stop()
161 {
163 {
165 }
166 }
167
168 int GetSoundEventID()
169 {
170 return m_ID;
171 }
172
174 {
175 return m_Type;
176 }
177
179 {
180 return m_SoundSetCallback;
181 }
182}
183
185{
186 static int GetSoundEventType(int id) { return -1; }
187 //void OnTick(float delta_time) {}
188 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
189 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0){ return true; };
190 int GetCurrentStateEventID() { return -1; }
191 int GetCurrentStateEventType() { return -1; }
192}

◆ IsSoundCallbackExist()

bool IsSoundCallbackExist ( )
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 {
142 m_RequestDestroy = true;
143 }
144 }
145
147 {
149 {
150 return true;
151 }
152
153 return false;
154 }
155
156 bool IsDestroyRequested()
157 {
158 return m_RequestDestroy;
159 }
160
161 bool CanPlay()
162 {
163 return true;
164 }
165
166 bool Play()
167 {
168 return true;
169 }
170
172
173 void Stop()
174 {
176 {
178 }
179 }
180
181 int GetSoundEventID()
182 {
183 return m_ID;
184 }
185
187 {
188 return m_Type;
189 }
190
192 {
193 return m_SoundSetCallback;
194 }
195}
196
198{
199 static int GetSoundEventType(int id) { return -1; }
200 //void OnTick(float delta_time) {}
201 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
202 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0){ return true; };
203 int GetCurrentStateEventID() { return -1; }
204 int GetCurrentStateEventType() { return -1; }
205}

Используется в IsFinished().

◆ OnPlay()

void OnPlay ( PlayerBase player)

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

51{
53 {
54 return true;
55 }
56
57 override bool CanPlay(PlayerBase player)
58 {
59 if( !super.CanPlay(player) )
60 {
61 return false;
62 }
63 return true;
64 }
65
66 override void OnPlay(PlayerBase player)
67 {
68 super.OnPlay(player);
69 if( player.CanSpawnBreathVaporEffect() )
70 player.SpawnBreathVaporEffect();
71 }
72
73 override void OnEnd()
74 {
75 super.OnEnd();
76 //m_Player.GetStaminaSoundHandlerClient().PostponeStamina(1000);
77 if(m_Player)
78 StaminaSoundHandlerClient.Cast(m_Player.m_PlayerSoundManagerClient.GetHandler(eSoundHandlers.STAMINA)).PostponeStamina(1300);
79 }
80}
81
83{
84 void JumpSoundEvent()
85 {
86 m_HasPriorityOverTypes = -1;//-1 for all
90 }
91}
class DynamicMusicLocationTypes 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 void OnPlay(PlayerBase player)
Definition JumpEvents.c:50
override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
Definition JumpEvents.c:36
class JumpEventsBase extends PlayerSoundEventBase JumpSoundEvent()
Definition JumpEvents.c:35
override void OnEnd()
Definition JumpEvents.c:57
override bool CanPlay()
Definition MindStates.c:16
EPlayerSoundEventType
Definition PlayerSoundEventBase.c:2
EPlayerSoundEventType m_HasPriorityOverTypes
Definition PlayerSoundEventBase.c:40
eSoundHandlers
Definition PlayerSoundManager.c:5

◆ Play()

bool Play ( )
136{
138 int m_Type;
139 int m_ID;
141 bool m_RequestDestroy;
142 string m_SoundSetNameRoot;
144 int m_Param;
145
146
147 void ~SoundEventBase()
148 {
150 }
151
152 //obsolete function, now possible to set a param
154 {
156 }
157
158 void Tick()
159 {
161 {
162 m_RequestDestroy = true;
163 }
164 }
165
167 {
169 {
170 return true;
171 }
172
173 return false;
174 }
175
176 bool IsDestroyRequested()
177 {
178 return m_RequestDestroy;
179 }
180
181 bool CanPlay()
182 {
183 return true;
184 }
185
186 bool Play()
187 {
188 return true;
189 }
190
192
193 void Stop()
194 {
196 {
198 }
199 }
200
201 int GetSoundEventID()
202 {
203 return m_ID;
204 }
205
207 {
208 return m_Type;
209 }
210
212 {
213 return m_SoundSetCallback;
214 }
215}
216
218{
219 static int GetSoundEventType(int id) { return -1; }
220 //void OnTick(float delta_time) {}
221 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
222 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0){ return true; };
223 int GetCurrentStateEventID() { return -1; }
224 int GetCurrentStateEventType() { return -1; }
225}

◆ PlayRequest()

bool PlayRequest ( EPlayerSoundEventID id,
bool sent_from_server = false )
87{ return true; }

◆ PlayRequestEx()

bool PlayRequestEx ( EPlayerSoundEventID id,
bool sent_from_server = false,
int param = 0 )
88{ return true; };

◆ Stop()

void Stop ( )
143{
145 int m_Type;
146 int m_ID;
148 bool m_RequestDestroy;
149 string m_SoundSetNameRoot;
151 int m_Param;
152
153
154 void ~SoundEventBase()
155 {
157 }
158
159 //obsolete function, now possible to set a param
161 {
163 }
164
165 void Tick()
166 {
168 {
169 m_RequestDestroy = true;
170 }
171 }
172
174 {
176 {
177 return true;
178 }
179
180 return false;
181 }
182
183 bool IsDestroyRequested()
184 {
185 return m_RequestDestroy;
186 }
187
188 bool CanPlay()
189 {
190 return true;
191 }
192
193 bool Play()
194 {
195 return true;
196 }
197
199
200 void Stop()
201 {
203 {
205 }
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}

◆ Tick()

void Tick ( )
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 {
134 m_RequestDestroy = true;
135 }
136 }
137
139 {
141 {
142 return true;
143 }
144
145 return false;
146 }
147
148 bool IsDestroyRequested()
149 {
150 return m_RequestDestroy;
151 }
152
153 bool CanPlay()
154 {
155 return true;
156 }
157
158 bool Play()
159 {
160 return true;
161 }
162
164
165 void Stop()
166 {
168 {
170 }
171 }
172
173 int GetSoundEventID()
174 {
175 return m_ID;
176 }
177
179 {
180 return m_Type;
181 }
182
184 {
185 return m_SoundSetCallback;
186 }
187}
188
190{
191 static int GetSoundEventType(int id) { return -1; }
192 //void OnTick(float delta_time) {}
193 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
194 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0){ return true; };
195 int GetCurrentStateEventID() { return -1; }
196 int GetCurrentStateEventType() { return -1; }
197}

◆ ~SoundEventBase()

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 {
123 m_RequestDestroy = true;
124 }
125 }
126
128 {
130 {
131 return true;
132 }
133
134 return false;
135 }
136
137 bool IsDestroyRequested()
138 {
139 return m_RequestDestroy;
140 }
141
142 bool CanPlay()
143 {
144 return true;
145 }
146
147 bool Play()
148 {
149 return true;
150 }
151
153
154 void Stop()
155 {
157 {
159 }
160 }
161
162 int GetSoundEventID()
163 {
164 return m_ID;
165 }
166
168 {
169 return m_Type;
170 }
171
173 {
174 return m_SoundSetCallback;
175 }
176}
177
179{
180 static int GetSoundEventType(int id) { return -1; }
181 //void OnTick(float delta_time) {}
182 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
183 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0){ return true; };
184 int GetCurrentStateEventID() { return -1; }
185 int GetCurrentStateEventType() { return -1; }
186}

Переменные

◆ m_ID

int m_ID

◆ m_Param

int m_Param

Используется в InitEx().

◆ m_RequestDestroy

bool m_RequestDestroy

◆ m_SkipForControlledCharacter

bool m_SkipForControlledCharacter

◆ m_SoundSetCallback

◆ m_SoundSetNameRoot

◆ m_SoundVoiceAnimEventClassID

◆ m_Type

int m_Type