DayZ 1.24
Loading...
Searching...
No Matches
ActionCarHornLong Class Reference
Inheritance diagram for ActionCarHornLong:
[legend]
Collaboration diagram for ActionCarHornLong:
[legend]

Private Member Functions

void ActionCarHornLong ()
 
override bool HasTarget ()
 
override bool HasProgress ()
 
override bool CanBeUsedInVehicle ()
 
override GetInputType ()
 
override bool UseMainItem ()
 
override void CreateConditionComponents ()
 
override ActionData CreateActionData ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnUpdate (ActionData action_data)
 special case - manually ends the action on exec event
 
override void OnEndInput (ActionData action_data)
 
override void OnStart (ActionData action_data)
 
override void OnStartServer (ActionData action_data)
 
override void OnEndServer (ActionData action_data)
 
override void WriteToContext (ParamsWriteContext ctx, ActionData action_data)
 
override bool ReadFromContext (ParamsReadContext ctx, out ActionReciveData action_recive_data)
 
override void HandleReciveData (ActionReciveData action_recive_data, ActionData action_data)
 
- Private Member Functions inherited from ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Detailed Description

Definition at line 202 of file ActionCarHorn.c.

Constructor & Destructor Documentation

◆ ActionCarHornLong()

void ActionCarHornLong::ActionCarHornLong ( )
inlineprivate

Definition at line 204 of file ActionCarHorn.c.

205 {
206 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_TOOTHORN;
207 m_StanceMask = DayZPlayerConstants.STANCEMASK_ALL;
208 }
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CommandUID, and m_StanceMask.

Member Function Documentation

◆ ActionCondition()

override bool ActionCarHornLong::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 247 of file ActionCarHorn.c.

248 {
250 }
static bool ActionCondition(PlayerBase player)

References ActionCarHornBase::ActionCondition().

◆ CanBeUsedInVehicle()

override bool ActionCarHornLong::CanBeUsedInVehicle ( )
inlineprivate

Definition at line 220 of file ActionCarHorn.c.

221 {
222 return true;
223 }

◆ CreateActionData()

override ActionData ActionCarHornLong::CreateActionData ( )
inlineprivate

Definition at line 241 of file ActionCarHorn.c.

◆ CreateConditionComponents()

override void ActionCarHornLong::CreateConditionComponents ( )
inlineprivate

Definition at line 235 of file ActionCarHorn.c.

236 {
237 m_ConditionItem = new CCINone();
239 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ GetInputType()

override ActionCarHornLong::GetInputType ( )
inlineprivate

Definition at line 225 of file ActionCarHorn.c.

226 {
228 }
ToggleLightsActionInput CarHornLongActionInput

References CarHornLongActionInput.

◆ HandleReciveData()

override void ActionCarHornLong::HandleReciveData ( ActionReciveData action_recive_data,
ActionData action_data )
inlineprivate

Definition at line 331 of file ActionCarHorn.c.

◆ HasProgress()

override bool ActionCarHornLong::HasProgress ( )
inlineprivate

Definition at line 215 of file ActionCarHorn.c.

216 {
217 return false;
218 }

◆ HasTarget()

override bool ActionCarHornLong::HasTarget ( )
inlineprivate

Definition at line 210 of file ActionCarHorn.c.

211 {
212 return false;
213 }

◆ OnEndInput()

override void ActionCarHornLong::OnEndInput ( ActionData action_data)
inlineprivate

Definition at line 265 of file ActionCarHorn.c.

266 {
267 super.OnEndInput(action_data);
268
271 }
static void SetCarHornState(CarHornActionData pActionData, int pState)

References ActionCarHornBase::SetCarHornState().

◆ OnEndServer()

override void ActionCarHornLong::OnEndServer ( ActionData action_data)
inlineprivate

◆ OnStart()

override void ActionCarHornLong::OnStart ( ActionData action_data)
inlineprivate

Definition at line 273 of file ActionCarHorn.c.

274 {
275 super.OnStart(action_data);
276
278 carHornData.m_ActionNeedEnd = true;
279 carHornData.m_Car = CarScript.Cast(action_data.m_Player.GetCommand_Vehicle().GetTransport());
280 }

◆ OnStartServer()

override void ActionCarHornLong::OnStartServer ( ActionData action_data)
inlineprivate

Definition at line 282 of file ActionCarHorn.c.

283 {
284 super.OnStartServer(action_data);
285
287 carHornData.m_ActionNeedEnd = true;
289 }

References ActionCarHornBase::SetCarHornState().

◆ OnUpdate()

override void ActionCarHornLong::OnUpdate ( ActionData action_data)
inlineprivate

special case - manually ends the action on exec event

Definition at line 253 of file ActionCarHorn.c.

254 {
255 super.OnUpdate(action_data);
256
258 if (carHornData.m_ReciveEndInput && carHornData.m_ActionNeedEnd)
259 {
260 carHornData.m_Callback.SetCommand(DayZPlayerConstants.CMD_ACTIONINT_END);
261 carHornData.m_ActionNeedEnd = false;
262 }
263 }

◆ ReadFromContext()

override bool ActionCarHornLong::ReadFromContext ( ParamsReadContext ctx,
out ActionReciveData action_recive_data )
inlineprivate

Definition at line 309 of file ActionCarHorn.c.

310 {
313
314 super.ReadFromContext(ctx, action_recive_data);
315
316 bool needUpdate;
317 if (!ctx.Read(needUpdate))
318 return false;
319
321 if (!ctx.Read(carScript))
322 return false;
323
325 carHornReceivedData.m_ActionNeedEnd = needUpdate;
327
328 return true;
329 }

◆ UseMainItem()

override bool ActionCarHornLong::UseMainItem ( )
inlineprivate

Definition at line 230 of file ActionCarHorn.c.

231 {
232 return false;
233 }

◆ WriteToContext()

override void ActionCarHornLong::WriteToContext ( ParamsWriteContext ctx,
ActionData action_data )
inlineprivate

Definition at line 299 of file ActionCarHorn.c.

300 {
301 super.WriteToContext(ctx, action_data);
302
304
305 ctx.Write(carHornData.m_ActionNeedEnd);
306 ctx.Write(carHornData.m_Car);
307 }

The documentation for this class was generated from the following file: