DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл ActionTuneRadioStation.c

См. исходные тексты.

Структуры данных

class  ActionTuneRadioStationCB
 

Функции

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)
 

Переменные

const float REPEAT_AFTER_SEC = 1.0
 

Функции

◆ ActionCondition()

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 }
Definition EntityAI.c:95

◆ ActionTuneRadioStation()

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 }
int m_CommandUIDProne
Definition ActionBase.c:32
int m_CommandUID
Definition ActionBase.c:31
Definition ActionTuneRadioStation.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Используется в ActionConstructor::RegisterActions() и ItemRadio::SetActions().

◆ CreateActionComponent()

override void CreateActionComponent ( )
private

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
24 {
25 m_ConditionTarget = new CCTNone;
26 m_ConditionItem = new CCINonRuined;
27 }
Definition CCINonRuined.c:2
Definition CCTNone.c:2

◆ HasProneException()

override bool HasProneException ( )
30 {
31 return true;
32 }

◆ HasTarget()

override bool HasTarget ( )
35 {
36 return false;
37 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
52 {
53 Radio radio = Radio.Cast( action_data.m_MainItem );
54 radio.TuneNextStation();
55 }

Переменные

◆ REPEAT_AFTER_SEC

const float REPEAT_AFTER_SEC = 1.0
private