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

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

void ActionPullBodyFromTransport ()
 
override void CreateConditionComponents ()
 
override bool HasProgress ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnStartServer (ActionData action_data)
 
override bool IsInstant ()
 

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

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

◆ ActionPullBodyFromTransport()

void ActionPullBodyFromTransport ( )
inlineprivate
4 {
5 m_StanceMask = DayZPlayerConstants.STANCEMASK_ALL;
6 m_Text = "#pull_out_body";
7 }
string m_Text
Definition ActionBase.c:58
int m_StanceMask
Definition ActionBase.c:62
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
21 {
22 PlayerBase targetPlayer = PlayerBase.Cast(target.GetObject());
23 if (!targetPlayer)
24 return false;
25
26 if (targetPlayer.IsAlive())
27 return false;
28
29 IEntity parent = targetPlayer.GetParent();
30 if (!parent || !parent.IsInherited(Transport))
31 return false;
32
33 bool found = false;
35 for (int i = 0; i < transportTarget.CrewSize(); ++i)
36 {
37 if (transportTarget.CrewMember(i) == targetPlayer)
38 {
39 found = true;
40 break;
41 }
42 }
43
44 return found && transportTarget.CrewCanGetThrough(i);
45 }
Definition EnEntity.c:165
Definition EntityAI.c:95
Definition PlayerBaseClient.c:2
Base native class for all motorized wheeled vehicles.
Definition Boat.c:28

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
10 {
13 }
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.

◆ HasProgress()

override bool HasProgress ( )
inlineprivate
16 {
17 return false;
18 }

◆ IsInstant()

override bool IsInstant ( )
inlineprivate
61 {
62 return true;
63 }

◆ OnStartServer()

override void OnStartServer ( ActionData action_data)
inlineprivate
48 {
49 super.OnStartServer(action_data);
50
52 if (!Class.CastTo(player, action_data.m_Target.GetObject()))
53 {
54 return;
55 }
56
57 player.TriggerPullPlayerOutOfVehicle();
58 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition ManBase.c:2
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

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


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