DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл ReplaceSoundEventHandler.c

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

Перечисления

enum  ESoundEventType { SOUND_COMMON , SOUND_ATTACHMENT , SOUND_VOICE }
 

Функции

void ReplaceSoundEventHandler (PlayerBase player)
 
void RegisterEvent (ReplaceSoundEventBase soundEvent)
 
int GetSoundEventID (int anim_id, ESoundEventType soundType)
 
ReplaceSoundEventBase GetSoundEventByID (int id, ESoundEventType soundType)
 
bool PlayReplaceSound (int soundEventID, ESoundEventType soundType, int flags)
 

Переменные

enum ESoundEventType DIG_PRIMARY = 1
 
enum ESoundEventType DIG_SECONDARY = 1
 
enum ESoundEventType CLEANHANDS_PRIMARY = 1
 
enum ESoundEventType int = 1
 
enum ESoundEventType m_SoundEventReplaceMaps = {}
 
PlayerBase m_Player
 
ref Timer m_UpdateTimer
 

Перечисления

◆ ESoundEventType

Элементы перечислений
SOUND_COMMON 
SOUND_ATTACHMENT 
SOUND_VOICE 
2{
3 SOUND_COMMON = 0 // "Sound"
4 SOUND_WEAPON, // "SoundWeapon"
5 SOUND_ATTACHMENT, // "SoundAttachment"
6 SOUND_VOICE // "SoundVoice"
7}
@ SOUND_COMMON
Definition ReplaceSoundEventHandler.c:3
@ SOUND_ATTACHMENT
Definition ReplaceSoundEventHandler.c:5
@ SOUND_VOICE
Definition ReplaceSoundEventHandler.c:6
Definition EntityAI.c:95

Функции

◆ GetSoundEventByID()

ReplaceSoundEventBase GetSoundEventByID ( int id,
ESoundEventType soundType )
protected
62 {
63 if (!m_SoundEventReplaceMaps.IsValidIndex(soundType))
64 return null;
65
67 {
68 if (soundEvent.GetSoundEventID() == id)
69 return soundEvent;
70 }
71
72 return null;
73 }
enum ESoundEventType m_SoundEventReplaceMaps
Definition ActionSurfaceEvents.c:24

Перекрестные ссылки m_SoundEventReplaceMaps.

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

◆ GetSoundEventID()

int GetSoundEventID ( int anim_id,
ESoundEventType soundType )
protected
50 {
51 if (!m_SoundEventReplaceMaps.IsValidIndex(soundType))
52 return 0;
53
55 if (!soundEvent)
56 return 0;
57
58 return soundEvent.GetSoundEventID();
59 }

Перекрестные ссылки m_SoundEventReplaceMaps.

◆ PlayReplaceSound()

bool PlayReplaceSound ( int soundEventID,
ESoundEventType soundType,
int flags )
protected
76 {
78 if (!soundEvent)
79 return false;
80
81 ReplaceSoundEventBase soundEventObj = ReplaceSoundEventBase.Cast(soundEvent.ClassName().ToType().Spawn());
83 if (soundEventObj.Play())
84 return true;
85
86 return false;
87 }
PlayerBase m_Player
Definition ReplaceSoundEventHandler.c:22
ReplaceSoundEventBase GetSoundEventByID(int id, ESoundEventType soundType)
Definition ReplaceSoundEventHandler.c:61

Перекрестные ссылки GetSoundEventByID() и m_Player.

◆ RegisterEvent()

void RegisterEvent ( ReplaceSoundEventBase soundEvent)
protected
37 {
38 int sType = soundEvent.GetSoundEventType();
39
40 if (!m_SoundEventReplaceMaps.IsValidIndex(sType))
41 {
44 }
45
46 m_SoundEventReplaceMaps[sType].Insert(soundEvent.GetSoundAnimEventClassID(), soundEvent);
47 }

Перекрестные ссылки m_SoundEventReplaceMaps.

◆ ReplaceSoundEventHandler()

void ReplaceSoundEventHandler ( PlayerBase player)
protected
26 {
28
33 }
class DigSoundEventBase extends ReplaceSoundEventBase DigSecondarySoundEvent
Definition ActionSurfaceEvents.c:15
void CleanHandsPrimarySoundEvent()
Definition ActionSurfaceEvents.c:54
class CleanHandsSoundEventBase extends ReplaceSoundEventBase CleanHandsSecondarySoundEvent
Definition ActionSurfaceEvents.c:53
void DigPrimarySoundEvent()
Definition ActionSurfaceEvents.c:16
void RegisterEvent(ReplaceSoundEventBase soundEvent)
Definition ReplaceSoundEventHandler.c:36

Перекрестные ссылки CleanHandsPrimarySoundEvent(), CleanHandsSecondarySoundEvent, DigPrimarySoundEvent(), DigSecondarySoundEvent, m_Player и RegisterEvent().

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

Переменные

◆ CLEANHANDS_PRIMARY

enum ESoundEventType CLEANHANDS_PRIMARY = 1

◆ DIG_PRIMARY

enum ESoundEventType DIG_PRIMARY = 1

◆ DIG_SECONDARY

enum ESoundEventType DIG_SECONDARY = 1

◆ int

◆ m_Player

PlayerBase m_Player
protected

◆ m_SoundEventReplaceMaps

enum ESoundEventType m_SoundEventReplaceMaps = {}

Используется в GetSoundEventByID(), GetSoundEventID() и RegisterEvent().

◆ m_UpdateTimer

ref Timer m_UpdateTimer
protected