8 m_ID = EReplaceSoundEventID.DIG_PRIMARY;
9 m_SoundAnimEventClassID = 887;
18 m_ID = EReplaceSoundEventID.DIG_SECONDARY;
19 m_SoundAnimEventClassID = 888;
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";
45 m_ID = EReplaceSoundEventID.CLEANHANDS_PRIMARY;
46 m_SoundAnimEventClassID = 10007;
47 m_UserString =
"StopOnAnimEnd";
56 m_ID = EReplaceSoundEventID.CLEANHANDS_SECONDARY;
57 m_SoundAnimEventClassID = 10006;
58 m_UserString =
"StopOnAnimEnd";
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";
class DigSoundEventBase extends ReplaceSoundEventBase DigSecondarySoundEvent
class CleanHandsSoundEventBase extends ReplaceSoundEventBase CleanHandsSecondarySoundEvent
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
proto native int ConfigGetInt(string path)
Get int value from config on path.
void CleanHandsPrimarySoundEvent()
void DigPrimarySoundEvent()
EReplaceSoundEventID m_ID
int m_ReplacedSoundAnimID
proto native CGame GetGame()