5 private const string GAS_LIGHT_MATERIAL_ON =
"dz\\gear\\cooking\\data\\GasLightOn.rvmat";
6 private const string GAS_LIGHT_MATERIAL_OFF =
"dz\\data\\data\\default.rvmat";
9 const string SOUND_BURNING =
"portablegaslamp_burn_SoundSet";
10 const string SOUND_TURN_ON =
"portablegaslamp_turn_on_SoundSet";
11 const string SOUND_TURN_OFF =
"portablegaslamp_turn_off_SoundSet";
39 m_Light.AttachOnMemoryPoint(
this,
"light");
43 SetObjectMaterial(0, GAS_LIGHT_MATERIAL_ON);
55 SetObjectMaterial(0, GAS_LIGHT_MATERIAL_OFF);
66 PlaySoundSetLoop(m_SoundBurningLoop, SOUND_BURNING, 0.1, 0.3);
71 StopSoundSet(m_SoundBurningLoop);
76 PlaySoundSet(m_SoundTurnOn, SOUND_TURN_ON, 0.1, 0.1);
81 PlaySoundSet(m_SoundTurnOff, SOUND_TURN_OFF, 0.1, 0.1);
void AddAction(typename actionName)
ExplosiveLight m_Light
light
Wrapper class for managing sound through SEffectManager.
override void OnSwitchOn()
EffectSound m_SoundTurnOn
EffectSound m_SoundTurnOff
override void OnWorkStart()
override void SetActions()
override void OnWorkStop()
override void OnSwitchOff()
PortableGasLampLight m_Light
proto native CGame GetGame()