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

Private Member Functions

void ActionHandcuffTarget ()
 
override void CreateConditionComponents ()
 
override void OnExecuteServer (ActionData action_data)
 
override void OnExecuteClient (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionHandcuffTarget.c.

Constructor & Destructor Documentation

◆ ActionHandcuffTarget()

void ActionHandcuffTarget::ActionHandcuffTarget ( )
inlineprivate

Definition at line 3 of file ActionHandcuffTarget.c.

4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_HANDCUFFTARGET;
6 m_FullBody = true;
7 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
9 m_Text = "#restrain";
10 }
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
float m_SpecialtyWeight
Definition ActionBase.c:68
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CommandUID, m_FullBody, m_SpecialtyWeight, m_StanceMask, m_Text, and UASoftSkillsWeight::ROUGH_LOW.

Member Function Documentation

◆ CreateConditionComponents()

override void ActionHandcuffTarget::CreateConditionComponents ( )
inlineprivate

Definition at line 12 of file ActionHandcuffTarget.c.

13 {
16 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
Definition CCTMan.c:2
const float DEFAULT

References UAMaxDistances::DEFAULT, m_ConditionItem, and m_ConditionTarget.

◆ OnExecuteClient()

override void ActionHandcuffTarget::OnExecuteClient ( ActionData action_data)
inlineprivate

Definition at line 27 of file ActionHandcuffTarget.c.

28 {
29 GetGame().GetAnalyticsClient().OnActionRestrain();
30 }
proto native CGame GetGame()

References GetGame().

◆ OnExecuteServer()

override void ActionHandcuffTarget::OnExecuteServer ( ActionData action_data)
inlineprivate

Definition at line 18 of file ActionHandcuffTarget.c.

19 {
20 PlayerBase ntarget = PlayerBase.Cast(action_data.m_Target.GetObject());
21 //ntarget.SetCaptive();
22 action_data.m_MainItem.Delete();
23
24 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
25 }

References m_SpecialtyWeight.


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