DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ActionTuneRadioStation.c
См. документацию.
2{
3 private const float REPEAT_AFTER_SEC = 1.0;
4
5 override void CreateActionComponent()
6 {
7 m_ActionData.m_ActionComponent = new CAContinuousRepeat(REPEAT_AFTER_SEC);
8 }
9}
10
12{
14 {
15 m_CallbackClass = ActionTuneRadioStationCB;
16 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_ITEM_TUNE;
17 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_ITEM_TUNE;
18 m_SpecialtyWeight = UASoftSkillsWeight.ROUGH_LOW;
19
20 m_Text = "#tune_radio_station";
21 }
22
24 {
25 m_ConditionTarget = new CCTNone;
26 m_ConditionItem = new CCINonRuined;
27 }
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 {
45 return true;
46 }
47
48 return false;
49 }
50
51 override void OnFinishProgressServer( ActionData action_data )
52 {
53 Radio radio = Radio.Cast( action_data.m_MainItem );
54 radio.TuneNextStation();
55 }
56}
int m_CommandUIDProne
Определения ActionBase.c:32
int m_CommandUID
Определения ActionBase.c:31
ActionBase ActionData
Определения ActionBase.c:30
class ActionTargets ActionTarget
ActionTuneRadioStationCB ActionContinuousBaseCB ActionTuneRadioStation()
Определения ActionTuneRadioStation.c:13
bool HasTarget()
Определения ActionBase.c:244
void CreateConditionComponents()
Определения ActionBase.c:230
ActionData m_ActionData
Определения AnimatedActionBase.c:3
void OnFinishProgressServer(ActionData action_data)
Определения ActionContinuousBase.c:283
override void CreateActionComponent()
Определения ActionTuneRadioStation.c:5
const float REPEAT_AFTER_SEC
Определения ActionTuneRadioStation.c:3
override bool HasProneException()
Определения AnimatedActionBase.c:318
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения AnimatedActionBase.c:240
Определения CCINonRuined.c:2
Определения CCTNone.c:2
Определения InventoryItem.c:731
Определения PlayerBaseClient.c:2
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602