DayZ 1.24
Loading...
Searching...
No Matches
PASBroadcaster Class Reference
Collaboration diagram for PASBroadcaster:
[legend]

Protected Member Functions

override bool IsStaticTransmitter ()
 
override bool DisableVicinityIcon ()
 
override void OnSwitchOn ()
 
override void OnSwitchOff ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
void SoundTurnedOnNoiseStart ()
 
void SoundTurnedOnNoiseStop ()
 
void SoundTurnOn ()
 
void SoundTurnOff ()
 

Protected Attributes

EffectSound m_Sound
 
EffectSound m_SoundLoop
 

Private Attributes

const string SOUND_PAS_TURN_ON = "pastransmitter_turnon_SoundSet"
 
const string SOUND_PAS_TURN_OFF = "pastransmitter_turnoff_SoundSet"
 
const string SOUND_PAS_TURNED_ON = "pastransmitter_staticnoise_SoundSet"
 

Detailed Description

Definition at line 1 of file Land_Radio_PanelPAS.c.

Member Function Documentation

◆ DisableVicinityIcon()

override bool PASBroadcaster::DisableVicinityIcon ( )
inlineprotected

Definition at line 17 of file Land_Radio_PanelPAS.c.

18 {
19 return true;
20 }

◆ IsStaticTransmitter()

override bool PASBroadcaster::IsStaticTransmitter ( )
inlineprotected

Definition at line 12 of file Land_Radio_PanelPAS.c.

13 {
14 return true;
15 }

◆ OnSwitchOff()

override void PASBroadcaster::OnSwitchOff ( )
inlineprotected

Definition at line 34 of file Land_Radio_PanelPAS.c.

35 {
36 super.OnSwitchOff();
37
38 //sound
40 }

◆ OnSwitchOn()

override void PASBroadcaster::OnSwitchOn ( )
inlineprotected

Definition at line 23 of file Land_Radio_PanelPAS.c.

24 {
25 super.OnSwitchOn();
26
27 if (!GetCompEM().CanWork())
28 GetCompEM().SwitchOff();
29
30 //sound
32 }

◆ OnWorkStart()

override void PASBroadcaster::OnWorkStart ( )
inlineprotected

Definition at line 42 of file Land_Radio_PanelPAS.c.

43 {
44 super.OnWorkStart();
45
46 //turn off device
47 SwitchOn(true); // start send/receive voice
48
49 //sound
51 }

◆ OnWorkStop()

override void PASBroadcaster::OnWorkStop ( )
inlineprotected

Definition at line 53 of file Land_Radio_PanelPAS.c.

54 {
55 super.OnWorkStop();
56
57 //turn off device
58 SwitchOn(false); // stop send/receive voice
59
60 //sound
62 }

◆ SoundTurnedOnNoiseStart()

void PASBroadcaster::SoundTurnedOnNoiseStart ( )
inlineprotected

Definition at line 68 of file Land_Radio_PanelPAS.c.

69 {
70 PlaySoundSetLoop(m_SoundLoop, SOUND_PAS_TURNED_ON, 1.0, 1.0);
71 }
EffectSound m_SoundLoop
const string SOUND_PAS_TURNED_ON

◆ SoundTurnedOnNoiseStop()

void PASBroadcaster::SoundTurnedOnNoiseStop ( )
inlineprotected

Definition at line 73 of file Land_Radio_PanelPAS.c.

74 {
75 StopSoundSet(m_SoundLoop);
76 }

◆ SoundTurnOff()

void PASBroadcaster::SoundTurnOff ( )
inlineprotected

Definition at line 83 of file Land_Radio_PanelPAS.c.

84 {
85 PlaySoundSet(m_Sound, SOUND_PAS_TURN_OFF, 0, 0);
86 }
const string SOUND_PAS_TURN_OFF

References m_Sound.

◆ SoundTurnOn()

void PASBroadcaster::SoundTurnOn ( )
inlineprotected

Definition at line 78 of file Land_Radio_PanelPAS.c.

79 {
80 PlaySoundSet(m_Sound, SOUND_PAS_TURN_ON, 0, 0);
81 }
const string SOUND_PAS_TURN_ON

References m_Sound.

Member Data Documentation

◆ m_Sound

EffectSound PASBroadcaster::m_Sound
protected

Definition at line 8 of file Land_Radio_PanelPAS.c.

◆ m_SoundLoop

EffectSound PASBroadcaster::m_SoundLoop
protected

Definition at line 9 of file Land_Radio_PanelPAS.c.

◆ SOUND_PAS_TURN_OFF

const string PASBroadcaster::SOUND_PAS_TURN_OFF = "pastransmitter_turnoff_SoundSet"
private

Definition at line 5 of file Land_Radio_PanelPAS.c.

◆ SOUND_PAS_TURN_ON

const string PASBroadcaster::SOUND_PAS_TURN_ON = "pastransmitter_turnon_SoundSet"
private

Definition at line 4 of file Land_Radio_PanelPAS.c.

◆ SOUND_PAS_TURNED_ON

const string PASBroadcaster::SOUND_PAS_TURNED_ON = "pastransmitter_staticnoise_SoundSet"
private

Definition at line 6 of file Land_Radio_PanelPAS.c.


The documentation for this class was generated from the following file: