Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionhandcufftarget.c
Go to the documentation of this file.
2 {
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  }
11 
12  override void CreateConditionComponents()
13  {
16  }
17 
18  override void OnExecuteServer( ActionData action_data )
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  }
26 
27  override void OnExecuteClient( ActionData action_data )
28  {
29  GetGame().GetAnalyticsClient().OnActionRestrain();
30  }
31 };
GetGame
proto native CGame GetGame()
CCTMan
Definition: cctman.c:1
UASoftSkillsWeight
Definition: actionconstants.c:118
UAMaxDistances
Definition: actionconstants.c:104
m_FullBody
protected bool m_FullBody
Definition: actionbase.c:52
PlayerBase
Definition: playerbaseclient.c:1
ActionData
Definition: actionbase.c:20
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition: dayzplayer.c:601
m_Text
protected string m_Text
Definition: actionbase.c:49
ActionSingleUseBase
Definition: actionsingleusebase.c:41
m_ConditionItem
ref CCIBase m_ConditionItem
Definition: actionbase.c:55
CCINonRuined
Definition: ccinonruined.c:1
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition: actionbase.c:56
m_SpecialtyWeight
protected float m_SpecialtyWeight
Definition: actionbase.c:68
m_StanceMask
protected int m_StanceMask
Definition: actionbase.c:53
ActionHandcuffTarget
Definition: actionhandcufftarget.c:1