Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
replacesoundeventbase.c
Go to the documentation of this file.
2{
4 protected EReplaceSoundEventID m_ID;
6 protected int m_ReplacedSoundAnimID;
7 protected string m_UserString;
9
14
15 EReplaceSoundEventID GetSoundEventID()
16 {
17 return m_ID;
18 }
19
24
25 void Init(PlayerBase player)
26 {
27 m_Player = player;
28 }
29
30 bool Play()
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 }
50
51 protected void SelectSoundID();
52}
void Init(PlayerBase player)
EReplaceSoundEventID GetSoundEventID()
ESoundEventType GetSoundEventType()
EReplaceSoundEventID m_ID