151 {
153 {
154 Error(
"EPlayerSoundEventID out of bounds");
155 }
156
158 if ( sent_from_server && (param & EPlayerSoundEventParam.SKIP_CONTROLLED_PLAYER) &&
m_Player.GetInstanceType() ==
DayZPlayerInstanceType.INSTANCETYPE_CLIENT )
159 {
160 return false;
161 }
162
164 {
165 return false;
166 }
167
169 {
170 if (param & EPlayerSoundEventParam.HIGHEST_PRIORITY)
171 {
173 }
174 else
175 {
177
178
179 if ( (requested_state.GetPriorityOverTypes() & current_type) == 0 )
180 {
181 return false;
182 }
184 {
185 return false;
186 }
187
189 }
190 }
194 {
196 }
197 return true;
198 }
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.