DayZ 1.24
Loading...
Searching...
No Matches
ActionTuneFrequency.c File Reference

Go to the source code of this file.

Classes

class  ActionTuneFrequencyCB
 

Functions

ActionTuneFrequencyCB ActionContinuousBaseCB ActionTuneFrequency ()
 
override void CreateActionComponent ()
 
override void CreateConditionComponents ()
 
override bool HasProneException ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 

Variables

const float REPEAT_AFTER_SEC = 1.0
 

Function Documentation

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )

Definition at line 39 of file ActionTuneFrequency.c.

40 {
41 if (item.IsTransmitter())
42 {
44
45 if (transmitter.GetCompEM().IsWorking())
46 {
47 //transmitter.DisplayRadioInfo( transmitter.GetTunedFrequency().ToString(), player );
48
49 return true;
50 }
51 }
52
53 return false;
54 }

◆ ActionTuneFrequency()

Definition at line 1 of file ActionTuneFrequency.c.

14 {
15 m_CallbackClass = ActionTuneFrequencyCB;
16 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_ITEM_TUNE;
17 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_ITEM_TUNE;
19
20 m_Text = "#tune_frequency";
21 }
string m_Text
Definition ActionBase.c:49
float m_SpecialtyWeight
Definition ActionBase.c:68
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

Referenced by ActionConstructor::RegisterActions(), and ItemTransmitter::SetActions().

◆ CreateActionComponent()

override void ActionTuneFrequency::CreateActionComponent ( )
private

Definition at line 16 of file ActionTuneFrequency.c.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )

Definition at line 23 of file ActionTuneFrequency.c.

24 {
27 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ HasProneException()

override bool HasProneException ( )

Definition at line 29 of file ActionTuneFrequency.c.

30 {
31 return true;
32 }

◆ HasTarget()

override bool HasTarget ( )

Definition at line 34 of file ActionTuneFrequency.c.

35 {
36 return false;
37 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

Definition at line 56 of file ActionTuneFrequency.c.

57 {
59 transmitter.SetNextFrequency(action_data.m_Player);
60 }

Variable Documentation

◆ REPEAT_AFTER_SEC

const float REPEAT_AFTER_SEC = 1.0
private

Definition at line 14 of file ActionTuneFrequency.c.