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);
198 car.ForceUpdateLightsStart();
205 if (action_data.m_State ==
UA_START)
207 if (!action_data.m_Player.GetCommand_Vehicle())
234 if (action_data.m_Player.GetInventory())
235 action_data.m_Player.GetInventory().UnlockInventory(LOCK_FROM_SCRIPT);
240 super.OnEndServer(action_data);
247 gotActionData.m_Player.OnJumpOutVehicleFinish(gotActionData.
m_Speed);
254 car.ForceUpdateLightsEnd();
264 car.OnVehicleJumpOutServer(gotActionData);
GetOutTransportActionData m_WasJumpingOutAnim
class ActionTargets ActionTarget
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
const float BOAT_JUMPOUT_THRESHOLD
const int HEALTH_HIGH_SPEED_VALUE
override void OnUpdate(ActionData action_data)
override void OnEndServer(ActionData action_data)
override int GetActionCategory()
override ActionData CreateActionData()
override bool CanBeUsedInRestrain()
override bool HasProgress()
override void CreateConditionComponents()
void ProcessGetOutActionData(Car car, GetOutTransportActionData got_action_data)
override bool ReadFromContext(ParamsReadContext ctx, out ActionReciveData action_recive_data)
const int LOW_SPEED_VALUE
void ApplyJumpOutDmg(ActionData action_data)
override void OnEnd(ActionData action_data)
void ProcessGetOutTransportActionData(Transport veh, GetOutTransportActionData got_action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override bool HasTarget()
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 bool CanBeUsedInVehicle()
void Unhide(PlayerBase player)
const int HEALTH_LOW_SPEED_VALUE
void ActionGetOutTransport()
override void HandleReciveData(ActionReciveData action_recive_data, ActionData action_data)
const int HIGH_SPEED_VALUE
override void OnStart(ActionData action_data)
override void OnStartServer(ActionData action_data)
const float CAR_JUMPOUT_THRESHOLD
Base script class for boats.
void OnVehicleJumpOutServer(GetOutTransportActionData data)
Base script class for cars.
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.
proto bool Write(void value_out)
proto bool Read(void value_in)
Native class for boats - handles physics simulation.
override bool IsAreaAtDoorFree(int currentSeat, float maxAllowedObjHeight=0.5, float horizontalExtents=0.5, float playerHeight=1.7)
proto float Normalize()
Normalizes vector.
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)
proto static native void End()
Finalizes the testing process.