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

Go to the source code of this file.

Classes

class  ActionTuneRadioStationCB
 

Functions

ActionTuneRadioStationCB ActionContinuousBaseCB ActionTuneRadioStation ()
 
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 ActionTuneRadioStation.c.

40 {
41 Radio radio = Radio.Cast(item);
42
43 if (radio.CanOperate())
44 return true;
45
46 return false;
47 }

◆ ActionTuneRadioStation()

Definition at line 1 of file ActionTuneRadioStation.c.

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 }
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 ItemRadio::SetActions().

◆ CreateActionComponent()

override void ActionTuneRadioStation::CreateActionComponent ( )
private

Definition at line 16 of file ActionTuneRadioStation.c.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )

Definition at line 23 of file ActionTuneRadioStation.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 ActionTuneRadioStation.c.

30 {
31 return true;
32 }

◆ HasTarget()

override bool HasTarget ( )

Definition at line 34 of file ActionTuneRadioStation.c.

35 {
36 return false;
37 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

Definition at line 49 of file ActionTuneRadioStation.c.

50 {
51 Radio radio = Radio.Cast(action_data.m_MainItem);
52 radio.TuneNextStation();
53 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
54 }

References m_SpecialtyWeight.

Variable Documentation

◆ REPEAT_AFTER_SEC

const float REPEAT_AFTER_SEC = 1.0
private

Definition at line 14 of file ActionTuneRadioStation.c.