DayZ 1.24
Loading...
Searching...
No Matches
ActionInjectTarget.c
Go to the documentation of this file.
2{
4 {
6
7 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_INJECTIONTARGET;
8 m_FullBody = true;
9 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
10 m_Text = "#inject_target";
11 }
12
18
20 {
21 if (CanReceiveAction(action_data.m_Target))
22 {
23 if (action_data.m_MainItem)
24 {
26 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
27 }
28 }
29 }
30
32 {
33 if (action_data.m_WasExecuted && action_data.m_MainItem)
34 action_data.m_MainItem.Delete();
35 }
36
38 {
39 action_data.m_MainItem.OnApply(PlayerBase.Cast(action_data.m_Target.GetObject()));
40 //PlayerBase ntarget = PlayerBase.Cast( action_data.m_Target.GetObject() );
41 //ntarget.GiveShock(100);
42 }
43};
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
bool CanReceiveAction(ActionTarget target)
Definition ActionBase.c:594
int m_StanceMask
Definition ActionBase.c:53
override void OnExecuteServer(ActionData action_data)
override void ApplyModifiers(ActionData action_data)
override void CreateConditionComponents()
override void OnEndServer(ActionData action_data)
Definition CCTMan.c:2
const float DEFAULT
const float PRECISE_MEDIUM
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597