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)
protected ExplosiveLight m_Light
light
Wrapper class for managing sound through SEffectManager.
protected void SoundTurnOn()
protected void SoundBurningStop()
PortableGasLampLight m_Light
override void OnSwitchOn()
override void OnSwitchOff()
override void OnWorkStop()
protected EffectSound m_SoundTurnOff
protected EffectSound m_SoundTurnOn
override void OnWorkStart()
protected EffectSound m_SoundBurningLoop
protected void SoundBurningStart()
protected void SoundTurnOff()
override void SetActions()
proto native CGame GetGame()