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

Private Member Functions

override void CreateActionComponent ()
 

Private Attributes

const float DEFAULT_STRUGGLE_TIME = 2
 
const float UNRESTRAIN_STRUGGLE_MULTIPLIER = 0.75
 

Detailed Description

Definition at line 1 of file ActionUnrestrainTargetEmpty.c.

Member Function Documentation

◆ CreateActionComponent()

override void ActionUnrestrainTargetHandsCB::CreateActionComponent ( )
inlineprivate

Definition at line 6 of file ActionUnrestrainTargetEmpty.c.

7 {
10 EntityAI item_in_hands = targetPlayer.GetItemInHands();
11
12 if (item_in_hands.ConfigIsExisting("StruggleLength"))
13 time = item_in_hands.ConfigGetFloat("StruggleLength") * UNRESTRAIN_STRUGGLE_MULTIPLIER;
14#ifdef DEVELOPER
15 if (m_ActionData.m_Player.IsQuickRestrain())
17#endif
18
20 }
ActionData m_ActionData
PlayerBase m_Player
Definition ActionBase.c:33
ref ActionTarget m_Target
Definition ActionBase.c:32
ref CABase m_ActionComponent
Definition ActionBase.c:30
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_Player, ActionData::m_Target, and UNRESTRAIN_STRUGGLE_MULTIPLIER.

Member Data Documentation

◆ DEFAULT_STRUGGLE_TIME

const float ActionUnrestrainTargetHandsCB::DEFAULT_STRUGGLE_TIME = 2
private

Definition at line 3 of file ActionUnrestrainTargetEmpty.c.

Referenced by CreateActionComponent().

◆ UNRESTRAIN_STRUGGLE_MULTIPLIER

const float ActionUnrestrainTargetHandsCB::UNRESTRAIN_STRUGGLE_MULTIPLIER = 0.75
private

Definition at line 4 of file ActionUnrestrainTargetEmpty.c.

Referenced by CreateActionComponent().


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