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

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

void ActionAnimateCarSelection ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnStartServer (ActionData action_data)
 
override void OnEndServer (ActionData action_data)
 

Закрытые данные

string m_AnimSource = ""
 

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

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

◆ ActionAnimateCarSelection()

void ActionAnimateCarSelection ( )
inlineprivate
6 {
7 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_OPENDOORFW;
8 m_StanceMask = DayZPlayerConstants.STANCEMASK_ALL;
9 m_Text = "#manipulate";
10 }
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
19 {
20 if (!target)
21 {
22 return false;
23 }
24
26 {
27 return false;
28 }
29
30 Object targetObject = target.GetObject();
32
34 targetObject.GetActionComponentNameList(target.GetComponentIndex(), selections);
35
38 {
39 for (int i = 0; i < selections.Count(); i++)
40 {
41 m_AnimSource = car.GetAnimSourceFromSelection(selections[i]);
42 if (m_AnimSource != "")
43 {
44 return true;
45 }
46 }
47 }
48
49 return false;
50 }
string m_AnimSource
Definition ActionAnimateCarSelection.c:3
bool IsInReach(PlayerBase player, ActionTarget target, float maxDistance=1.0)
Definition ActionBase.c:1054
Definition CivilianSedan.c:2
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition Camera.c:2
Definition ObjectTyped.c:2
Definition EntityAI.c:95
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo(), UAMaxDistances::DEFAULT, ActionBase::IsInReach() и m_AnimSource.

◆ CreateConditionComponents()

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

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)
inlineprivate
78 {
79 super.OnEndServer(action_data);
80
82 if (Class.CastTo(car, action_data.m_Target.GetObject()))
83 {
84 car.ForceUpdateLightsEnd();
85 }
86 }

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

◆ OnStartServer()

override void OnStartServer ( ActionData action_data)
inlineprivate
53 {
54 super.OnStartServer(action_data);
55
57 if (Class.CastTo(targetEnt, action_data.m_Target.GetObject()))
58 {
59 if (targetEnt.GetAnimationPhase(m_AnimSource) > 0.5)
60 {
61 targetEnt.SetAnimationPhase(m_AnimSource, 0.0);
62 }
63
64 if (targetEnt.GetAnimationPhase(m_AnimSource) <= 0.5)
65 {
66 targetEnt.SetAnimationPhase(m_AnimSource, 1.0);
67 }
68 }
69
71 if (Class.CastTo(car, action_data.m_Target.GetObject()))
72 {
73 car.ForceUpdateLightsStart();
74 }
75 }

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

Поля

◆ m_AnimSource

string m_AnimSource = ""
private

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