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

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

void ActionGetInTransport ()
 
override void CreateConditionComponents ()
 
override GetInputType ()
 
override bool HasProgress ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void Start (ActionData action_data)
 
override void OnStartServer (ActionData action_data)
 
override bool CanBeUsedInRestrain ()
 
override void OnUpdate (ActionData action_data)
 
override int GetActionCategory ()
 
override void OnEndClient (ActionData action_data)
 
override void OnEndServer (ActionData action_data)
 
override bool AddActionJuncture (ActionData action_data)
 
- Закрытые члены унаследованные от ActionBase
void ActionBase ()
 
bool IsLockTargetOnUse ()
 
void InitConditionMask ()
 
bool SetupAction (PlayerBase player, ActionTarget target, ItemBase item, out ActionData action_data, Param extra_data=NULL)
 
bool Post_SetupAction (ActionData action_data)
 
void ActionCleanup (ActionData action_data)
 
 GetInputType ()
 
void SetInput (ActionInput ai)
 
ActionData CreateActionData ()
 
void CreateConditionComponents ()
 
Object GetDisplayInteractObject (PlayerBase player, ActionTarget target)
 
bool HasTarget ()
 
bool HasProgress ()
 For UI: hiding of progress bar.
 
bool IsLocal ()
 
bool IsInstant ()
 
bool IsUsingProxies ()
 not using plane object - it's using multiple proxies
 
bool RemoveForceTargetAfterUse ()
 
int GetActionCategory ()
 
bool IsEat ()
 
bool IsDrink ()
 
bool IsShaveSelf ()
 
string GetText ()
 
bool CanBePerformedFromQuickbar ()
 
bool CanBePerformedFromInventory ()
 
bool CanBeSetFromInventory ()
 
bool CanBeUsedInRestrain ()
 
bool CanBeUsedInVehicle ()
 
bool CanTargetBeInVehicle ()
 
bool CanBeUsedOnBack ()
 
bool CanBeUsedSwimming ()
 
bool CanBeUsedOnLadder ()
 
bool CanBeUsedRaised ()
 
bool CanBeUsedThrowing ()
 
bool CanBeUsedLeaning ()
 
bool CanBeUsedWithBrokenLegs ()
 
bool CanBeUsedInFreelook ()
 
bool IsDeploymentAction ()
 Is an action directly related to deployment/advanced placing.
 
bool UseMainItem ()
 
bool MainItemAlwaysInHands ()
 
bool DisplayTargetInActionText ()
 
bool ActionConditionContinue (ActionData action_data)
 
bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
string GetTargetName (PlayerBase player, ActionTarget target)
 
void ApplyModifiers (ActionData action_data)
 
int GetRefreshReservationTimerValue ()
 
void WriteToContext (ParamsWriteContext ctx, ActionData action_data)
 
bool ReadFromContext (ParamsReadContext ctx, out ActionReciveData action_recive_data)
 
void HandleReciveData (ActionReciveData action_recive_data, ActionData action_data)
 
int GetStanceMaskEx (PlayerBase player, ActionTarget target, ItemBase item)
 
int GetStanceMask (PlayerBase player)
 
bool IsFullBodyEx (PlayerBase player, ActionTarget target, ItemBase item)
 
bool IsFullBody (PlayerBase player)
 
bool HasProneException ()
 
void Start (ActionData action_data)
 
void End (ActionData action_data)
 
void Interrupt (ActionData action_data)
 
void OnEndInput (ActionData action_data)
 
void EndInput (ActionData action_data)
 
void OnEndRequest (ActionData action_data)
 
void EndRequest (ActionData action_data)
 
bool CanReceiveAction (ActionTarget target)
 
bool Can (PlayerBase player, ActionTarget target, ItemBase item, int condition_mask)
 
bool Can (PlayerBase player, ActionTarget target, ItemBase item)
 
bool CanContinue (ActionData action_data)
 
bool HasVariants ()
 
int GetVariantsCount ()
 
int GetVariants (out array< ref ActionBase > variants)
 
void SetVariantID (int ID)
 
int GetVariantID ()
 
void UpdateVariants (Object item, Object target, int componet_index)
 
ActionVariantManager GetVariantManager ()
 
void OnItemLocationChanged (ItemBase item)
 
bool InventoryReservation (ActionData action_data)
 
void ClearInventoryReservationEx (ActionData action_data)
 
void RefreshReservations (ActionData action_data)
 
bool AddActionJuncture (ActionData action_data)
 
void ClearActionJuncture (ActionData action_data)
 
void RefreshActionJuncture (ActionData action_data)
 
bool UseAcknowledgment ()
 
void InformPlayers (PlayerBase player, ActionTarget target, int state)
 DEPRECATED delivers message ids to clients based on given context.
 
void SendMessageToClient (Object reciever, string message)
 
bool IsDamageDestroyed (ActionTarget target)
 
bool IsBuilding (ActionTarget target)
 
bool IsTransport (ActionTarget target)
 
bool IsInReach (PlayerBase player, ActionTarget target, float maxDistance=1.0)
 
SoundOnVehicle PlayActionSound (PlayerBase player)
 
void OnActionInfoUpdate (PlayerBase player, ActionTarget target, ItemBase item)
 
string GetSoundCategory (ActionData action_data)
 
void OnUpdate (ActionData action_data)
 
void OnUpdateClient (ActionData action_data)
 
void OnUpdateServer (ActionData action_data)
 
void OnStart (ActionData action_data)
 
void OnStartClient (ActionData action_data)
 
void OnStartServer (ActionData action_data)
 
void OnEnd (ActionData action_data)
 
void OnEndClient (ActionData action_data)
 
void OnEndServer (ActionData action_data)
 
float GetSpecialtyWeight ()
 
int GetState (ActionData action_data)
 
float GetProgress (ActionData action_data)
 
ActionInput GetInput ()
 
void SetID (int actionId)
 
int GetID ()
 
string GetAdminLogMessage (ActionData action_data)
 

Дополнительные унаследованные члены

- Закрытые статические члены унаследованные от ActionBase
static int ComputeConditionMask (PlayerBase player, ActionTarget target, ItemBase item)
 
- Закрытые данные унаследованные от ActionBase
int m_RefreshReservationTimerValue = 140
 
string m_Sound
 
string m_Text
 
bool m_LockTargetOnUse
 
bool m_FullBody
 
int m_StanceMask
 
ref TStringArray m_Sounds
 
ref CCIBase m_ConditionItem
 
ref CCTBase m_ConditionTarget
 
ActionInput m_Input
 
int m_ActionID
 
int m_VariantID
 
int m_ConditionMask
 
ref ActionVariantManager m_VariantManager
 
ref Param1< stringm_MessageParam
 
float m_SpecialtyWeight
 

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

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

◆ ActionGetInTransport()

void ActionGetInTransport ( )
inlineprivate
4 {
5 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
6 m_Text = "#get_in_vehicle";
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
27 {
29
30 if (!target)
31 {
32 return false;
33 }
34
35 if (!Class.CastTo(trans, target.GetObject()))
36 {
37 return false;
38 }
39
40 if (player.GetItemInHands() && player.GetItemInHands().IsHeavyBehaviour())
41 {
42 return false;
43 }
44
45 if (player.GetCommand_Vehicle())
46 {
47 return false;
48 }
49
50 int componentIndex = target.GetComponentIndex();
51 int crew_index = trans.CrewPositionIndex(componentIndex);
52 if (crew_index < 0)
53 {
54 return false;
55 }
56
57 Human crew = trans.CrewMember(crew_index);
58 if (crew)
59 {
60 return false;
61 }
62
63 if (!trans.CrewCanGetThrough(crew_index) || !trans.IsAreaAtDoorFree(crew_index))
64 {
65 return false;
66 }
67
69 trans.GetActionComponentNameList(componentIndex, selections);
70
71 for (int i = 0; i < selections.Count(); i++)
72 {
73 if (trans.CanReachSeatFromDoors(selections[i], player.GetPosition(), 1.0))
74 {
75 return true;
76 }
77 }
78
79 return false;
80 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
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().

◆ AddActionJuncture()

override bool AddActionJuncture ( ActionData action_data)
inlineprivate
162 {
163 Transport trans = Transport.Cast(action_data.m_Target.GetObject());
164 bool accepted = false;
165 int nextSeat = trans.CrewPositionIndex( action_data.m_Target.GetComponentIndex() );
166 Transport transport = Transport.Cast(action_data.m_Target.GetObject());
168 if (transport)
169 {
170 il.SetVehicle(transport, action_data.m_Player, nextSeat);
171
172 //Lock target
173 if (GetGame().AddInventoryJunctureEx(action_data.m_Player, action_data.m_Player, il, true, 10000))
174 {
175 accepted = true;
176 action_data.m_ReservedInventoryLocations.Insert(il);
177 }
178 }
179
180 return accepted;
181 }
InventoryLocation.
Definition InventoryLocation.c:29
proto native CGame GetGame()

Перекрестные ссылки GetGame().

◆ CanBeUsedInRestrain()

override bool CanBeUsedInRestrain ( )
inlineprivate
117 {
118 return true;
119 }

◆ 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 CCTCursorNoRuinCheck.c:2

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

◆ GetActionCategory()

override int GetActionCategory ( )
inlineprivate
133 {
134 return AC_INTERACT;
135 }
const int AC_INTERACT
Definition _constants.c:4

Перекрестные ссылки AC_INTERACT.

◆ GetInputType()

override GetInputType ( )
inlineprivate
17 {
19 }
Definition ActionInput.c:522

◆ HasProgress()

override bool HasProgress ( )
inlineprivate
22 {
23 return false;
24 }

◆ OnEndClient()

override void OnEndClient ( ActionData action_data)
inlineprivate
138 {
139 if (action_data.m_Player.GetInventory())
140 {
141 action_data.m_Player.GetInventory().UnlockInventory(LOCK_FROM_SCRIPT);
142 }
143 }

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)
inlineprivate
146 {
147 super.OnEndServer(action_data);
148
149 if (action_data.m_Player.GetInventory())
150 {
151 action_data.m_Player.GetInventory().UnlockInventory(LOCK_FROM_SCRIPT);
152 }
153
154 CarScript car = CarScript.Cast(action_data.m_Target.GetObject());
155 if (car)
156 {
157 car.ForceUpdateLightsEnd();
158 }
159 }
Definition CivilianSedan.c:2

◆ OnStartServer()

override void OnStartServer ( ActionData action_data)
inlineprivate
106 {
107 super.OnStartServer(action_data);
108
109 CarScript car = CarScript.Cast(action_data.m_Target.GetObject());
110 if (car)
111 {
112 car.ForceUpdateLightsStart();
113 }
114 }

◆ OnUpdate()

override void OnUpdate ( ActionData action_data)
inlineprivate
122 {
123 if (action_data.m_State == UA_START)
124 {
125 if (!action_data.m_Player.GetCommand_Vehicle() || !action_data.m_Player.GetCommand_Vehicle().IsGettingIn())
126 {
128 }
129 }
130 }
void End()
called on surrender end request end
const int UA_START
Definition constants.c:446

Перекрестные ссылки End() и UA_START.

◆ Start()

override void Start ( ActionData action_data)
inlineprivate
83 {
84 super.Start( action_data );
85
86 Transport trans = Transport.Cast(action_data.m_Target.GetObject());
87 int componentIndex = action_data.m_Target.GetComponentIndex();
88 int crew_index = trans.CrewPositionIndex(componentIndex);
89
90
91 int seat = trans.GetSeatAnimationType(crew_index);
92 HumanCommandVehicle vehCommand = action_data.m_Player.StartCommand_Vehicle(trans, crew_index, seat);
93 if (vehCommand)
94 {
95 vehCommand.SetVehicleType(trans.GetAnimInstance());
96
97 GetDayZGame().GetBacklit().OnEnterCar();
98 if (action_data.m_Player.GetInventory())
99 {
100 action_data.m_Player.GetInventory().LockInventory(LOCK_FROM_SCRIPT);
101 }
102 }
103 }
DayZGame GetDayZGame()
Definition DayZGame.c:3817
Definition human.c:690

Перекрестные ссылки GetDayZGame().


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