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

Private Member Functions

override void CreateActionComponent ()
 
override void EndActionComponent ()
 

Private Attributes

const float DEFAULT_STRUGGLE_TIME = 2
 

Detailed Description

Definition at line 1 of file ActionUnrestrainSelf.c.

Member Function Documentation

◆ CreateActionComponent()

override void ActionUnrestrainSelfCB::CreateActionComponent ( )
inlineprivate

Definition at line 5 of file ActionUnrestrainSelf.c.

6 {
8
9 if (m_ActionData.m_MainItem.ConfigIsExisting("StruggleLength"))
10 time = m_ActionData.m_MainItem.ConfigGetFloat("StruggleLength");
11
12#ifdef DEVELOPER
13 if (m_ActionData.m_Player.IsQuickRestrain())
15#endif
16
18 }
ActionData m_ActionData
PlayerBase m_Player
Definition ActionBase.c:33
ref CABase m_ActionComponent
Definition ActionBase.c:30
ItemBase m_MainItem
Definition ActionBase.c:28
const float DEBUG_QUICK_UNRESTRAIN_TIME
Definition constants.c:598

References DEBUG_QUICK_UNRESTRAIN_TIME, DEFAULT_STRUGGLE_TIME, ActionData::m_ActionComponent, ActionBaseCB::m_ActionData, ActionData::m_MainItem, and ActionData::m_Player.

◆ EndActionComponent()

override void ActionUnrestrainSelfCB::EndActionComponent ( )
inlineprivate

Definition at line 20 of file ActionUnrestrainSelf.c.

21 {
22 // TODO for second type animation SetCommand(DayZPlayerConstants.CMD_ACTIONINT_FINISH);
24 SetCommand(DayZPlayerConstants.CMD_ACTIONINT_END);
25 else if (m_ActionData.m_State == UA_CANCEL)
26 {
27 m_Canceled = true;
28 SetCommand(DayZPlayerConstants.CMD_ACTIONINT_INTERRUPT);
29 return;
30 //Cancel();
31 }
32 else
33 {
34 m_Canceled = true;
35 SetCommand(DayZPlayerConstants.CMD_ACTIONINT_INTERRUPT);
36 return;
37 }
39 }
void SetCommand(int command_uid)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
const int UA_FINISHED
Definition constants.c:436
const int UA_CANCEL
Definition constants.c:437

References ActionBaseCB::m_ActionData, ActionBaseCB::m_Canceled, ActionData::m_State, ActionBaseCB::SetCommand(), UA_CANCEL, and UA_FINISHED.

Member Data Documentation

◆ DEFAULT_STRUGGLE_TIME

const float ActionUnrestrainSelfCB::DEFAULT_STRUGGLE_TIME = 2
private

Definition at line 3 of file ActionUnrestrainSelf.c.

Referenced by CreateActionComponent().


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