DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionStopEngine
+ Граф наследования:ActionStopEngine:

Закрытые члены

void ActionStopEngine ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnExecuteServer (ActionData action_data)
 
override void OnExecuteClient (ActionData action_data)
 
override bool CanBeUsedInVehicle ()
 
override bool UseMainItem ()
 

Подробное описание

Конструктор(ы)

◆ ActionStopEngine()

void ActionStopEngine ( )
inlineprivate
4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_STOPENGINE;
6 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
7 m_Text = "#stop_engine";
8 }
string m_Text
Definition ActionBase.c:58
int m_StanceMask
Definition ActionBase.c:62
int m_CommandUID
Definition AnimatedActionBase.c:143
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки AnimatedActionBase::m_CommandUID, ActionBase::m_StanceMask и ActionBase::m_Text.

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
17 {
18 HumanCommandVehicle vehCmd = player.GetCommand_Vehicle();
19 if (vehCmd && vehCmd.GetVehicleSeat() == DayZPlayerConstants.VEHICLESEAT_DRIVER)
20 {
21 Transport trans = vehCmd.GetTransport();
22 if (trans)
23 {
24 Car car;
25 if (Class.CastTo(car, trans) && car.EngineIsOn())
26 {
27 return car.GetSpeedometerAbsolute() <= 8;
28 }
29 }
30 }
31
32 return false;
33 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition human.c:690
Definition EntityAI.c:95
Base native class for all motorized wheeled vehicles.
Definition Boat.c:28
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo().

◆ CanBeUsedInVehicle()

override bool CanBeUsedInVehicle ( )
inlineprivate
55 {
56 return true;
57 }

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
11 {
14 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINone.c:2
Definition CCTNone.c:2

Перекрестные ссылки ActionBase::m_ConditionItem и ActionBase::m_ConditionTarget.

◆ OnExecuteClient()

override void OnExecuteClient ( ActionData action_data)
inlineprivate
52{}

◆ OnExecuteServer()

override void OnExecuteServer ( ActionData action_data)
inlineprivate
36 {
37 HumanCommandVehicle vehCmd = action_data.m_Player.GetCommand_Vehicle();
38 if (vehCmd)
39 {
40 Transport trans = vehCmd.GetTransport();
41 if (trans)
42 {
44 if (Class.CastTo(car, trans))
45 {
46 car.EngineStop();
47 }
48 }
49 }
50 }
Definition CivilianSedan.c:2

Перекрестные ссылки Class::CastTo().

◆ UseMainItem()

override bool UseMainItem ( )
inlineprivate
60 {
61 return false;
62 }

Объявления и описания членов класса находятся в файле: