DayZ 1.24
Loading...
Searching...
No Matches
ActionTuneFrequency.c
Go to the documentation of this file.
2{
3 private const float REPEAT_AFTER_SEC = 1.0;
4
9}
10
12{
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 }
22
28
29 override bool HasProneException()
30 {
31 return true;
32 }
33
34 override bool HasTarget()
35 {
36 return false;
37 }
38
39 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
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 }
55
57 {
59 transmitter.SetNextFrequency(action_data.m_Player);
60 }
61}
string m_Text
Definition ActionBase.c:49
void CreateConditionComponents()
Definition ActionBase.c:196
bool HasTarget()
Definition ActionBase.c:210
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
float m_SpecialtyWeight
Definition ActionBase.c:68
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
ActionTuneFrequencyCB ActionContinuousBaseCB ActionTuneFrequency()
ActionData m_ActionData
void OnFinishProgressServer(ActionData action_data)
ref CABase m_ActionComponent
Definition ActionBase.c:30
override void CreateActionComponent()
override bool HasProneException()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597