4 const string SOUND_PAS_TURN_ON =
"pastransmitter_turnon_SoundSet";
5 const string SOUND_PAS_TURN_OFF =
"pastransmitter_turnoff_SoundSet";
6 const string SOUND_PAS_TURNED_ON =
"pastransmitter_staticnoise_SoundSet";
12 override bool IsStaticTransmitter()
17 override bool DisableVicinityIcon()
23 override void OnSwitchOn()
27 if ( !GetCompEM().CanWork() )
29 GetCompEM().SwitchOff();
36 override void OnSwitchOff()
52 SoundTurnedOnNoiseStart();
63 SoundTurnedOnNoiseStop();
70 protected void SoundTurnedOnNoiseStart()
72 PlaySoundSetLoop( m_SoundLoop, SOUND_PAS_TURNED_ON, 1.0, 1.0 );
75 protected void SoundTurnedOnNoiseStop()
77 StopSoundSet( m_SoundLoop );
80 protected void SoundTurnOn()
82 PlaySoundSet(
m_Sound, SOUND_PAS_TURN_ON, 0, 0 );
85 protected void SoundTurnOff()
87 PlaySoundSet(
m_Sound, SOUND_PAS_TURN_OFF, 0, 0 );