149 {
151 {
152 Error(
"EPlayerSoundEventID out of bounds");
153 }
154
156 if ( sent_from_server && (param & EPlayerSoundEventParam.SKIP_CONTROLLED_PLAYER) &&
m_Player.GetInstanceType() ==
DayZPlayerInstanceType.INSTANCETYPE_CLIENT )
157 {
158 return false;
159 }
160
162 {
163 return false;
164 }
165
167 {
168 if (param & EPlayerSoundEventParam.HIGHEST_PRIORITY)
169 {
171 }
172 else
173 {
175
176
177 if ( (requested_state.GetPriorityOverTypes() & current_type) == 0 )
178 {
179 return false;
180 }
182 {
183 return false;
184 }
185
187 }
188 }
192 {
194 }
195 return true;
196 }
ref InfectedSoundEventBase m_CurrentState
static ref InfectedSoundEventBase m_AvailableStates[SOUND_EVENTS_MAX]
enum EInfectedSoundEventID SOUND_EVENTS_MAX
override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
override bool CanPlay(PlayerBase player)
DayZPlayerInstanceType
defined in C++
void Error(string err)
Messagebox with error message.