18class GetOutTransportActionReciveData : ActionReciveData
76 int crewIndex = trans.CrewMemberIndex(player);
77 return crewIndex >= 0 && trans.CrewCanGetThrough(crewIndex) && trans.
IsAreaAtDoorFree(crewIndex);
86 if (super.SetupAction(player, target, item, action_data, extra_data))
105 super.WriteToContext(ctx, action_data);
114 if (!action_recive_data)
115 action_recive_data =
new GetOutTransportActionReciveData;
117 super.ReadFromContext(ctx, action_recive_data);
118 GetOutTransportActionReciveData action_data_got = GetOutTransportActionReciveData.Cast(action_recive_data);
120 if (!ctx.
Read(action_data_got.m_WasJumpingOutAnim))
128 super.HandleReciveData(action_recive_data, action_data);
130 GetOutTransportActionReciveData recive_data_got = GetOutTransportActionReciveData.Cast(action_recive_data);
142 speed = Car.Cast(veh).GetSpeedometerAbsolute();
144 else if (Boat.Cast(veh))
147 vector playerPosition = got_action_data.m_Player.PhysicsGetPositionWS();
153 got_action_data.
m_Speed = speed;
157 if (got_action_data.m_Player.IsOwner())
163 super.OnStart(action_data);
182 if (action_data.m_Player.GetInventory())
183 action_data.m_Player.GetInventory().LockInventory(LOCK_FROM_SCRIPT);
190 super.OnStartServer(action_data);
200 car.ForceUpdateLightsStart();
209 if (action_data.m_State ==
UA_START)
211 if (!action_data.m_Player.GetCommand_Vehicle())
238 if (action_data.m_Player.GetInventory())
239 action_data.m_Player.GetInventory().UnlockInventory(LOCK_FROM_SCRIPT);
244 super.OnEndServer(action_data);
251 gotActionData.m_Player.OnJumpOutVehicleFinish(gotActionData.
m_Speed);
258 car.ForceUpdateLightsEnd();
268 car.OnVehicleJumpOutServer(gotActionData);
GetOutTransportActionData m_WasJumpingOutAnim
class ActionTargets ActionTarget
proto static native void End()
Finalizes the testing process.
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
override void HandleReciveData(ActionReciveData action_recive_data, ActionData action_data)
void ProcessGetOutActionData(Car car, GetOutTransportActionData got_action_data)
void ApplyJumpOutDmg(ActionData action_data)
const int LOW_SPEED_VALUE
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override ActionData CreateActionData()
override void OnStartServer(ActionData action_data)
const float BOAT_JUMPOUT_THRESHOLD
override bool CanBeUsedInVehicle()
void Unhide(PlayerBase player)
override void OnUpdate(ActionData action_data)
void ProcessGetOutTransportActionData(Transport veh, GetOutTransportActionData got_action_data)
const float CAR_JUMPOUT_THRESHOLD
override bool ReadFromContext(ParamsReadContext ctx, out ActionReciveData action_recive_data)
override bool CanBeUsedInRestrain()
override void OnStart(ActionData action_data)
const int HEALTH_HIGH_SPEED_VALUE
override bool HasTarget()
override void CreateConditionComponents()
override bool HasProgress()
const int HIGH_SPEED_VALUE
override void OnEndServer(ActionData action_data)
override bool SetupAction(PlayerBase player, ActionTarget target, ItemBase item, out ActionData action_data, Param extra_data=NULL)
override void WriteToContext(ParamsWriteContext ctx, ActionData action_data)
override void OnEnd(ActionData action_data)
void ActionGetOutTransport()
override int GetActionCategory()
const int HEALTH_LOW_SPEED_VALUE
void OnVehicleJumpOutServer(GetOutTransportActionData data)
Super root of all classes in Enforce script.
float m_JumpingOutThreshold
proto native Transport GetTransport()
proto native void GetOutVehicle()
proto native void JumpOutVehicle()
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
proto bool Write(void value_out)
proto bool Read(void value_in)
override bool IsAreaAtDoorFree(int currentSeat, float maxAllowedObjHeight=0.5, float horizontalExtents=0.5, float playerHeight=1.7)
Base native class for all motorized wheeled vehicles.
proto float Normalize()
Normalizes vector. Returns length.
DayZPlayerConstants
defined in C++
Serializer ParamsReadContext
Serializer ParamsWriteContext
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
proto native vector dBodyGetVelocityAt(notnull IEntity body, vector globalpos)