18class GetOutTransportActionReciveData : ActionReciveData
78 int crewIndex = trans.CrewMemberIndex(player);
79 return crewIndex >= 0 && trans.CrewCanGetThrough(crewIndex) && trans.IsAreaAtDoorFreeDiag(crewIndex);
88 if (super.SetupAction(player, target, item, action_data, extra_data))
107 super.WriteToContext(ctx, action_data);
116 if (!action_recive_data)
117 action_recive_data =
new GetOutTransportActionReciveData;
119 super.ReadFromContext(ctx, action_recive_data);
120 GetOutTransportActionReciveData action_data_got = GetOutTransportActionReciveData.Cast(action_recive_data);
122 if (!ctx.
Read(action_data_got.m_WasJumpingOutAnim))
130 super.HandleReciveData(action_recive_data, action_data);
132 GetOutTransportActionReciveData recive_data_got = GetOutTransportActionReciveData.Cast(action_recive_data);
145 speed =
Car.Cast(veh).GetSpeedometerAbsolute();
147 else if (Boat.Cast(veh))
150 vector playerPosition = got_action_data.
m_Player.PhysicsGetPositionWS();
155 else if (Motorbike.Cast(veh))
158 speed = Motorbike.Cast(veh).GetSpeedometerAbsolute();
161 got_action_data.
m_Speed = speed;
165 if (got_action_data.
m_Player.IsOwner())
171 super.OnStart(action_data);
190 if (action_data.
m_Player.GetInventory())
191 action_data.
m_Player.GetInventory().LockInventory(LOCK_FROM_SCRIPT);
198 super.OnStartServer(action_data);
205 if (!action_data.
m_Player.GetCommand_Vehicle())
232 if (action_data.
m_Player.GetInventory())
233 action_data.
m_Player.GetInventory().UnlockInventory(LOCK_FROM_SCRIPT);
238 super.OnEndServer(action_data);
258 car.OnVehicleJumpOutServer(gotActionData);
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
GetOutTransportActionData m_WasJumpingOutAnim
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
proto static native void End()
Finalizes the testing process.
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()
const float MOTO_JUMPOUT_THRESHOLD
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)
Native class for boats - handles physics simulation.
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.
void Obsolete(string msg="")
proto native vector dBodyGetVelocityAt(notnull IEntity body, vector globalpos)