33 if (!pActionData.
m_Car)
36 pActionData.
m_Car.SetCarHornState(pState);
41 return trans.GetSeatAnimationType(trans.CrewMemberIndex(player)) ==
DayZPlayerConstants.VEHICLESEAT_DRIVER;
50class CarHornActionReceiveData : ActionReciveData
69 m_CallbackClass = ActionCarHornShortCB;
119 super.OnUpdate(action_data);
131 super.OnEndInput(action_data);
140 super.OnStart(action_data);
149 super.OnStartServer(action_data);
157 super.OnEndServer(action_data);
165 super.WriteToContext(ctx, action_data);
175 if (!action_recive_data)
177 action_recive_data =
new CarHornActionReceiveData();
180 super.ReadFromContext(ctx, action_recive_data);
183 if (!ctx.
Read(needUpdate))
187 if (!ctx.
Read(carScript))
190 CarHornActionReceiveData carHornReceivedData = CarHornActionReceiveData.Cast(action_recive_data);
191 carHornReceivedData.m_ActionNeedEnd = needUpdate;
192 carHornReceivedData.m_Car = carScript;
199 super.HandleReciveData(action_recive_data, action_data);
201 CarHornActionReceiveData carHornReceivedData = CarHornActionReceiveData.Cast(action_recive_data);
204 carHornData.
m_Car = carHornReceivedData.m_Car;
261 super.OnUpdate(action_data);
273 super.OnEndInput(action_data);
281 super.OnStart(action_data);
290 super.OnStartServer(action_data);
299 super.OnEndServer(action_data);
307 super.WriteToContext(ctx, action_data);
317 if (!action_recive_data)
319 action_recive_data =
new CarHornActionReceiveData();
322 super.ReadFromContext(ctx, action_recive_data);
325 if (!ctx.
Read(needUpdate))
329 if (!ctx.
Read(carScript))
332 CarHornActionReceiveData carHornReceivedData = CarHornActionReceiveData.Cast(action_recive_data);
333 carHornReceivedData.m_ActionNeedEnd = needUpdate;
334 carHornReceivedData.m_Car = carScript;
341 super.HandleReciveData(action_recive_data, action_data);
343 CarHornActionReceiveData carHornReceivedData = CarHornActionReceiveData.Cast(action_recive_data);
346 carHornData.
m_Car = carHornReceivedData.m_Car;
ActionData CreateActionData()
void OnEndServer(ActionData action_data)
void OnEndInput(ActionData action_data)
ref CCIBase m_ConditionItem
void OnStartServer(ActionData action_data)
ref CCTBase m_ConditionTarget
bool HasProgress()
For UI: hiding of progress bar.
void HandleReciveData(ActionReciveData action_recive_data, ActionData action_data)
bool CanBeUsedInVehicle()
protected int m_StanceMask
class ActionCarHornBase m_ActionNeedEnd
CarHornActionData ActionData ActionCarHornShort()
class ActionTargets ActionTarget
void ReadFromContext(ParamsReadContext ctx)
void WriteToContext(ParamsWriteContext ctx)
void SetCommand(int command_uid)
static protected bool PlayerIsDriver(Transport trans, PlayerBase player)
static protected bool BatteryIsVital(ItemBase battery)
static void SetCarHornState(CarHornActionData pActionData, int pState)
static bool ActionCondition(PlayerBase player)
override void OnUpdate(ActionData action_data)
special case - manually ends the action on exec event
override void OnEndServer(ActionData action_data)
override ActionData CreateActionData()
override bool HasProgress()
override void CreateConditionComponents()
override bool ReadFromContext(ParamsReadContext ctx, out ActionReciveData action_recive_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override bool UseMainItem()
override bool HasTarget()
override void WriteToContext(ParamsWriteContext ctx, ActionData action_data)
override void OnEndInput(ActionData action_data)
override bool CanBeUsedInVehicle()
override void HandleReciveData(ActionReciveData action_recive_data, ActionData action_data)
override void OnStart(ActionData action_data)
override void OnStartServer(ActionData action_data)
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override bool HasTarget()
protected int m_CommandUID
Super root of all classes in Enforce script.
proto native Transport GetTransport()
Serialization general interface. Serializer API works with:
proto bool Write(void value_out)
proto bool Read(void value_in)
Base native class for all motorized wheeled vehicles.
DayZPlayerConstants
defined in C++
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.