DayZ 1.24
Loading...
Searching...
No Matches
ActionTuneRadioStation.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 = ActionTuneRadioStationCB;
16 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_ITEM_TUNE;
17 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_ITEM_TUNE;
19
20 m_Text = "#tune_radio_station";
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 Radio radio = Radio.Cast(item);
42
43 if (radio.CanOperate())
44 return true;
45
46 return false;
47 }
48
50 {
51 Radio radio = Radio.Cast(action_data.m_MainItem);
52 radio.TuneNextStation();
53 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
54 }
55}
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
ActionTuneRadioStationCB ActionContinuousBaseCB ActionTuneRadioStation()
ActionData m_ActionData
void OnFinishProgressServer(ActionData action_data)
ref CABase m_ActionComponent
Definition ActionBase.c:30
override bool HasProneException()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597