DayZ 1.24
Loading...
Searching...
No Matches
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
17
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
28 {
29 GetGame().GetAnalyticsClient().OnActionRestrain();
30 }
31};
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
float m_SpecialtyWeight
Definition ActionBase.c:68
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
int m_StanceMask
Definition ActionBase.c:53
override void OnExecuteClient(ActionData action_data)
override void OnExecuteServer(ActionData action_data)
override void CreateConditionComponents()
Definition CCTMan.c:2
const float DEFAULT
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
proto native CGame GetGame()