1 class PortableGasLamp
extends ItemBase
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";
18 override void OnSwitchOn()
26 override void OnSwitchOff()
39 m_Light.AttachOnMemoryPoint(
this,
"light");
43 SetObjectMaterial( 0, GAS_LIGHT_MATERIAL_ON );
55 SetObjectMaterial( 0, GAS_LIGHT_MATERIAL_OFF );
64 protected void SoundBurningStart()
66 PlaySoundSetLoop( m_SoundBurningLoop, SOUND_BURNING, 0.1, 0.3 );
69 protected void SoundBurningStop()
71 StopSoundSet( m_SoundBurningLoop );
74 protected void SoundTurnOn()
76 PlaySoundSet( m_SoundTurnOn, SOUND_TURN_ON, 0.1, 0.1 );
79 protected void SoundTurnOff()
81 PlaySoundSet( m_SoundTurnOff, SOUND_TURN_OFF, 0.1, 0.1 );