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

Защищенные члены

void SelectSoundID ()
 
void SelectSoundID ()
 
ESoundEventType GetSoundEventType ()
 
EReplaceSoundEventID GetSoundEventID ()
 
int GetSoundAnimEventClassID ()
 
void Init (PlayerBase player)
 
bool Play ()
 
void SelectSoundID ()
 

Защищенные данные

ESoundEventType m_EventType
 
EReplaceSoundEventID m_ID
 
int m_SoundAnimEventClassID
 
int m_ReplacedSoundAnimID
 
string m_UserString
 
PlayerBase m_Player
 

Подробное описание

Методы

◆ GetSoundAnimEventClassID()

int GetSoundAnimEventClassID ( )
inlineprotected
21 {
23 }
int m_SoundAnimEventClassID
Definition ReplaceSoundEventBase.c:5

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

◆ GetSoundEventID()

EReplaceSoundEventID GetSoundEventID ( )
inlineprotected
16 {
17 return m_ID;
18 }
EReplaceSoundEventID m_ID
Definition ReplaceSoundEventBase.c:4

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

◆ GetSoundEventType()

ESoundEventType GetSoundEventType ( )
inlineprotected
11 {
12 return m_EventType;
13 }
ESoundEventType m_EventType
Definition ReplaceSoundEventBase.c:3

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

◆ Init()

void Init ( PlayerBase player)
inlineprotected
26 {
28 }
Definition EntityAI.c:95
PlayerBase m_Player
Definition ReplaceSoundEventBase.c:8

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

◆ Play()

bool Play ( )
inlineprotected
31 {
33
34 switch (m_EventType)
35 {
36 case ESoundEventType.SOUND_COMMON:
37 m_Player.ProcessSoundEvent("", m_UserString, m_ReplacedSoundAnimID);
38 break;
39
40 case ESoundEventType.SOUND_WEAPON:
41 m_Player.ProcessWeaponEvent("", m_UserString, m_ReplacedSoundAnimID);
42 break;
43
44 default:
45 break;
46 }
47
48 return true;
49 }
ESoundEventType
Definition ReplaceSoundEventHandler.c:2
string m_UserString
Definition ReplaceSoundEventBase.c:7
int m_ReplacedSoundAnimID
Definition ReplaceSoundEventBase.c:6
void SelectSoundID()
Definition ActionSurfaceEvents.c:25

Перекрестные ссылки m_EventType, m_Player, m_ReplacedSoundAnimID, m_UserString и SelectSoundID().

◆ SelectSoundID() [1/3]

void SelectSoundID ( )
inlineprotected
26 {
27 string cfg_path = "cfgVehicles " + m_Player.GetItemInHands().GetType() + " AnimEvents " + "Sound " + "SurfaceDig";
28 if (m_ID == EReplaceSoundEventID.DIG_PRIMARY)
29 cfg_path = cfg_path + " DigPrimary";
30 else if (m_ID == EReplaceSoundEventID.DIG_SECONDARY)
31 cfg_path = cfg_path + " DigSecondary";
32
33 m_ReplacedSoundAnimID = GetGame().ConfigGetInt(cfg_path + " " + m_Player.GetSurfaceType());
34 if (m_ReplacedSoundAnimID == 0)
35 m_ReplacedSoundAnimID = GetGame().ConfigGetInt(cfg_path + " default");
36 }
proto native CGame GetGame()

Перекрестные ссылки GetGame(), DayZPlayer::GetSurfaceType(), m_ID и m_Player.

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

◆ SelectSoundID() [2/3]

void SelectSoundID ( )
inlineprotected
65 {
66 string cfg_path = "cfgVehicles " + m_Player.GetType() + " AnimEvents " + "Sound " + "SurfaceCleanHands";
67 if (m_ID == EReplaceSoundEventID.CLEANHANDS_PRIMARY)
68 cfg_path = cfg_path + " CleanHandsPrimary";
69 else if (m_ID == EReplaceSoundEventID.CLEANHANDS_SECONDARY)
70 cfg_path = cfg_path + " CleanHandsSecondary";
71
72 m_ReplacedSoundAnimID = GetGame().ConfigGetInt(cfg_path + " " + m_Player.GetSurfaceType());
73 if (m_ReplacedSoundAnimID == 0)
74 m_ReplacedSoundAnimID = GetGame().ConfigGetInt(cfg_path + " default");
75 }

Перекрестные ссылки GetGame(), DayZPlayer::GetSurfaceType(), m_ID и m_Player.

◆ SelectSoundID() [3/3]

void SelectSoundID ( )
protected

Поля

◆ m_EventType

ESoundEventType m_EventType
protected

Используется в GetSoundEventType() и Play().

◆ m_ID

EReplaceSoundEventID m_ID
protected

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

◆ m_Player

PlayerBase m_Player
protected

Используется в Init() и Play().

◆ m_ReplacedSoundAnimID

int m_ReplacedSoundAnimID
protected

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

◆ m_SoundAnimEventClassID

int m_SoundAnimEventClassID
protected

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

◆ m_UserString

string m_UserString
protected

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


Объявления и описания членов классов находятся в файлах: