DayZ 1.24
Loading...
Searching...
No Matches
ActionInjectSelf.c
Go to the documentation of this file.
2{
4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_INJECTION;
6 m_FullBody = true;
7 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
9 m_Text = "#inject";
10 }
11
17
18 override bool HasTarget()
19 {
20 return false;
21 }
22
24 {
25 if (action_data.m_MainItem)
26 {
28 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
29 }
30 }
31
33 {
34 if (action_data.m_WasExecuted && action_data.m_MainItem)
35 action_data.m_MainItem.Delete();
36 }
37
39 {
40 if (action_data.m_WasExecuted && action_data.m_MainItem)
41 action_data.m_MainItem.DeleteOnClient();
42 }
43
45 {
46 action_data.m_MainItem.OnApply(action_data.m_Player);
47 //action_data.m_Player.m_ModifiersManager.DeactivateModifier(eModifiers.MDF_HEART_ATTACK);
48
49 }
50};
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 OnEndServer(ActionData action_data)
override void OnExecuteServer(ActionData action_data)
override void CreateConditionComponents()
override void ApplyModifiers(ActionData action_data)
override bool HasTarget()
override void OnEndClient(ActionData action_data)
const float PRECISE_MEDIUM
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597