DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnSoundEvent()

void DayZPlayer::OnSoundEvent ( string pEventType,
string pUserString,
int pUserInt )
inlineprotected

См. определение в файле DayZPlayerImplement.c строка 3305

3306 {
3307 int eventReplaceID;
3308
3309 if (pEventType == "Sound")
3310 {
3311 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT || GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_REMOTE)
3312 {
3313 eventReplaceID = m_ReplaceSoundEventHandler.GetSoundEventID(pUserInt, ESoundEventType.SOUND_COMMON);
3314 if (eventReplaceID > 0)
3315 {
3316 PlaySoundEventType(ESoundEventType.SOUND_COMMON, eventReplaceID);
3317 return;
3318 }
3319 }
3320
3321 ProcessSoundEvent(pEventType, pUserString, pUserInt);
3322 }
3323 else if (pEventType == "SoundWeapon")
3324 {
3325 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT || GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_REMOTE)
3326 {
3327 eventReplaceID = m_ReplaceSoundEventHandler.GetSoundEventID(pUserInt, ESoundEventType.SOUND_WEAPON);
3328 if (eventReplaceID > 0)
3329 {
3330 PlaySoundEventType(ESoundEventType.SOUND_WEAPON, eventReplaceID);
3331 return;
3332 }
3333 }
3334
3335 ProcessWeaponEvent(pEventType, pUserString, pUserInt);
3336 }
3337 else if (pEventType == "SoundAttachment")
3338 {
3339 ProcessAttachmentEvent(pEventType, pUserString, pUserInt);
3340 }
3341 else if (pEventType == "SoundVoice")
3342 {
3343 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT || GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_REMOTE)
3344 {
3345 int event_id = m_PlayerSoundEventHandler.ConvertAnimIDtoEventID(pUserInt);
3346 if (event_id > 0)
3347 {
3348 PlaySoundEvent(event_id);
3349 return;
3350 }
3351 }
3352 ProcessVoiceEvent(pEventType, pUserString, pUserInt);
3353 }
3354 else
3355 {
3356 Debug.Log("OnSoundEvent: Unknown sound event \"" + pEventType + "\"");
3357 }
3358 }
ESoundEventType
Определения ReplaceSoundEventHandler.c:2
void Debug()
Определения UniversalTemperatureSource.c:349
void ProcessSoundEvent(string pEventType, string pUserString, int pUserInt)
Определения DayZPlayerImplement.c:3487
ref PlayerSoundEventHandler m_PlayerSoundEventHandler
Определения DayZPlayerImplement.c:124
AbstractWave ProcessVoiceEvent(string pEventType, string pUserString, int pUserInt)
Определения DayZPlayerImplement.c:3529
void ProcessAttachmentEvent(string pEventType, string pUserString, int pUserInt)
Определения DayZPlayerImplement.c:3423
bool PlaySoundEvent(EPlayerSoundEventID id, bool from_anim_system=false, bool is_from_server=false)
Определения DayZPlayerImplement.c:493
bool PlaySoundEventType(ESoundEventType soundType, int soundEventID, int param=0)
Handle sound event by respective sound handler based on its type.
Определения DayZPlayerImplement.c:492
void ProcessWeaponEvent(string pEventType, string pUserString, int pUserInt)
Определения DayZPlayerImplement.c:3366
ref ReplaceSoundEventHandler m_ReplaceSoundEventHandler
Определения DayZPlayerImplement.c:125
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1068
proto native DayZPlayerInstanceType GetInstanceType()

Перекрестные ссылки GetInstanceType(), Debug::Log(), m_PlayerSoundEventHandler, m_ReplaceSoundEventHandler, PlaySoundEvent(), PlaySoundEventType(), ProcessAttachmentEvent(), ProcessSoundEvent(), ProcessVoiceEvent() и ProcessWeaponEvent().