DayZ 1.24
Loading...
Searching...
No Matches
ActionInjectSelf Class Reference
Inheritance diagram for ActionInjectSelf:
[legend]
Collaboration diagram for ActionInjectSelf:
[legend]

Private Member Functions

void ActionInjectSelf ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override void OnExecuteServer (ActionData action_data)
 
override void OnEndServer (ActionData action_data)
 
override void OnEndClient (ActionData action_data)
 
override void ApplyModifiers (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionInjectSelf.c.

Constructor & Destructor Documentation

◆ ActionInjectSelf()

void ActionInjectSelf::ActionInjectSelf ( )
inlineprivate

Definition at line 3 of file ActionInjectSelf.c.

4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_INJECTION;
6 m_FullBody = true;
7 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
9 m_Text = "#inject";
10 }
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
float m_SpecialtyWeight
Definition ActionBase.c:68
int m_StanceMask
Definition ActionBase.c:53
const float PRECISE_MEDIUM
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CommandUID, m_FullBody, m_SpecialtyWeight, m_StanceMask, m_Text, and UASoftSkillsWeight::PRECISE_MEDIUM.

Member Function Documentation

◆ ApplyModifiers()

override void ActionInjectSelf::ApplyModifiers ( ActionData action_data)
inlineprivate

Definition at line 44 of file ActionInjectSelf.c.

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 }

Referenced by OnExecuteServer().

◆ CreateConditionComponents()

override void ActionInjectSelf::CreateConditionComponents ( )
inlineprivate

Definition at line 12 of file ActionInjectSelf.c.

13 {
16 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ HasTarget()

override bool ActionInjectSelf::HasTarget ( )
inlineprivate

Definition at line 18 of file ActionInjectSelf.c.

19 {
20 return false;
21 }

◆ OnEndClient()

override void ActionInjectSelf::OnEndClient ( ActionData action_data)
inlineprivate

Definition at line 38 of file ActionInjectSelf.c.

39 {
40 if (action_data.m_WasExecuted && action_data.m_MainItem)
41 action_data.m_MainItem.DeleteOnClient();
42 }

◆ OnEndServer()

override void ActionInjectSelf::OnEndServer ( ActionData action_data)
inlineprivate

Definition at line 32 of file ActionInjectSelf.c.

33 {
34 if (action_data.m_WasExecuted && action_data.m_MainItem)
35 action_data.m_MainItem.Delete();
36 }

◆ OnExecuteServer()

override void ActionInjectSelf::OnExecuteServer ( ActionData action_data)
inlineprivate

Definition at line 23 of file ActionInjectSelf.c.

24 {
25 if (action_data.m_MainItem)
26 {
28 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
29 }
30 }
override void ApplyModifiers(ActionData action_data)

References ApplyModifiers(), and m_SpecialtyWeight.


The documentation for this class was generated from the following file: