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

◆ DayZPlayerTypeRegisterSounds()

void DayZPlayerTypeRegisterSounds ( DayZPlayerType pType)
private

register events

load and register step sound lookup table

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

320{
321 GetGame().ProfilerStart("DayZPlayerTypeRegisterSounds");
323 pType.RegisterStepEvent("Step", 0.2);
324
325 pType.RegisterSoundEvent("Sound", -1);
326 pType.RegisterSoundEvent("SoundWeapon", 0.2);
327 pType.RegisterSoundEvent("SoundVoice", -1);
328 if(!GetGame().IsDedicatedServer())//attachments don't generate noise, so we can ignore them on server
329 pType.RegisterSoundEvent("SoundAttachment", 0.2);
330
331
332 DayZPlayerTypeVoiceSoundLookupTableImpl voiceTable2 = DayZPlayerTypeVoiceSoundLookupTableImpl.GetInstance();
333 pType.RegisterVoiceSoundLookupTable(voiceTable2);
334
335 if(!GetGame().IsDedicatedServer())//sounds are unnecessary on server
336 {
337 pType.RegisterParticleEvent("Particle", -1);
340 pType.RegisterStepSoundLookupTable(stepTable);
341
343 pType.RegisterAttachmentSoundLookupTable(attachTable);
344
345
346
348 pType.RegisterSoundTable(soundTable);
349
350 //DayZPlayerTypeSoundVoiceTableImpl voiceTable = new DayZPlayerTypeSoundVoiceTableImpl();
351 //pType.RegisterSoundVoiceTable(voiceTable);
352 }
353 GetGame().ProfilerStop("DayZPlayerTypeRegisterSounds");
354}
void DayZPlayerTypeSoundTableImpl()
Определения DayZPlayerCfgSounds.c:253
void DayZPlayerTypeStepSoundLookupTableImpl()
Определения DayZPlayerCfgSounds.c:106
class DayZPlayerTypeStepSoundLookupTableImpl extends DayZPlayerTypeStepSoundLookupTable DayZPlayerTypeAttachmentSoundLookupTableImpl()
Определения DayZPlayerCfgSounds.c:105
proto native void ProfilerStop(string name)
Use for profiling code from start to stop, they must match have same name, look wiki pages for more i...
proto native void ProfilerStart(string name)
Use for profiling code from start to stop, they must match have same name, look wiki pages for more i...
proto native CGame GetGame()

Перекрестные ссылки DayZPlayerType(), DayZPlayerTypeAttachmentSoundLookupTableImpl(), DayZPlayerTypeSoundTableImpl(), DayZPlayerTypeStepSoundLookupTableImpl(), GetGame(), CGame::ProfilerStart() и CGame::ProfilerStop().

Используется в DayZPlayerTypeUtils::DayZPlayerTypeCreate().