DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ActionSurfaceEvents.c
См. документацию.
1
2//Digging
4{
6 {
7 m_EventType = ESoundEventType.SOUND_COMMON;
8 m_ID = EReplaceSoundEventID.DIG_PRIMARY;
9 m_SoundAnimEventClassID = 887;
10 }
11}
12
14{
16 {
17 m_EventType = ESoundEventType.SOUND_COMMON;
18 m_ID = EReplaceSoundEventID.DIG_SECONDARY;
19 m_SoundAnimEventClassID = 888;
20 }
21}
22
24{
25 override protected void SelectSoundID()
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 }
37};
38
39//Cleaning hands
41{
43 {
44 m_EventType = ESoundEventType.SOUND_COMMON;
45 m_ID = EReplaceSoundEventID.CLEANHANDS_PRIMARY;
46 m_SoundAnimEventClassID = 10007;
47 m_UserString = "StopOnAnimEnd";
48 }
49}
50
52{
54 {
55 m_EventType = ESoundEventType.SOUND_COMMON;
56 m_ID = EReplaceSoundEventID.CLEANHANDS_SECONDARY;
57 m_SoundAnimEventClassID = 10006;
58 m_UserString = "StopOnAnimEnd";
59 }
60}
61
63{
64 override protected void SelectSoundID()
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 }
76};
class DigSoundEventBase extends ReplaceSoundEventBase DigSecondarySoundEvent
Определения ActionSurfaceEvents.c:15
class CleanHandsSoundEventBase extends ReplaceSoundEventBase CleanHandsSecondarySoundEvent
Определения ActionSurfaceEvents.c:53
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Определения Effect.c:49
ESoundEventType
Определения ReplaceSoundEventHandler.c:2
proto native int ConfigGetInt(string path)
Get int value from config on path.
void CleanHandsPrimarySoundEvent()
Определения ActionSurfaceEvents.c:42
void DigPrimarySoundEvent()
Определения ActionSurfaceEvents.c:5
PlayerBase m_Player
Определения ReplaceSoundEventBase.c:8
void SelectSoundID()
Определения ActionSurfaceEvents.c:25
EReplaceSoundEventID m_ID
Определения ReplaceSoundEventBase.c:4
int m_ReplacedSoundAnimID
Определения ReplaceSoundEventBase.c:6
proto native CGame GetGame()