DayZ
1.24
Loading...
Searching...
No Matches
ActionHandcuffTarget.c
Go to the documentation of this file.
1
class
ActionHandcuffTarget
:
ActionSingleUseBase
2
{
3
void
ActionHandcuffTarget
()
4
{
5
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONFB_HANDCUFFTARGET;
6
m_FullBody
=
true
;
7
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_ERECT |
DayZPlayerConstants
.STANCEMASK_CROUCH;
8
m_SpecialtyWeight
=
UASoftSkillsWeight
.
ROUGH_LOW
;
9
m_Text
=
"#restrain"
;
10
}
11
12
override
void
CreateConditionComponents
()
13
{
14
m_ConditionItem
=
new
CCINonRuined
;
15
m_ConditionTarget
=
new
CCTMan
(
UAMaxDistances
.
DEFAULT
);
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
};
m_FullBody
bool m_FullBody
Definition
ActionBase.c:52
m_Text
string m_Text
Definition
ActionBase.c:49
m_ConditionItem
ref CCIBase m_ConditionItem
Definition
ActionBase.c:55
m_SpecialtyWeight
float m_SpecialtyWeight
Definition
ActionBase.c:68
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
ActionBase.c:56
m_StanceMask
int m_StanceMask
Definition
ActionBase.c:53
ActionData
Definition
ActionBase.c:21
ActionHandcuffTarget
Definition
ActionHandcuffTarget.c:2
ActionHandcuffTarget::OnExecuteClient
override void OnExecuteClient(ActionData action_data)
Definition
ActionHandcuffTarget.c:27
ActionHandcuffTarget::OnExecuteServer
override void OnExecuteServer(ActionData action_data)
Definition
ActionHandcuffTarget.c:18
ActionHandcuffTarget::ActionHandcuffTarget
void ActionHandcuffTarget()
Definition
ActionHandcuffTarget.c:3
ActionHandcuffTarget::CreateConditionComponents
override void CreateConditionComponents()
Definition
ActionHandcuffTarget.c:12
ActionSingleUseBase
Definition
ActionSingleUseBase.c:40
AnimatedActionBase::m_CommandUID
int m_CommandUID
Definition
AnimatedActionBase.c:122
CCINonRuined
Definition
CCINonRuined.c:2
CCTMan
Definition
CCTMan.c:2
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
UAMaxDistances
Definition
ActionConstants.c:105
UAMaxDistances::DEFAULT
const float DEFAULT
Definition
ActionConstants.c:107
UASoftSkillsWeight
Definition
ActionConstants.c:119
UASoftSkillsWeight::ROUGH_LOW
const float ROUGH_LOW
Definition
ActionConstants.c:120
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:597
GetGame
proto native CGame GetGame()
scripts
4_World
Classes
UserActionsComponent
Actions
SingleUse
ActionHandcuffTarget.c
Generated by
1.10.0