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

Private Member Functions

void ActionInjectTarget ()
 
override void CreateConditionComponents ()
 
override void OnExecuteServer (ActionData action_data)
 
override void OnEndServer (ActionData action_data)
 
override void ApplyModifiers (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionInjectTarget.c.

Constructor & Destructor Documentation

◆ ActionInjectTarget()

void ActionInjectTarget::ActionInjectTarget ( )
inlineprivate

Definition at line 3 of file ActionInjectTarget.c.

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 }
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 ActionInjectTarget::ApplyModifiers ( ActionData action_data)
inlineprivate

Definition at line 37 of file ActionInjectTarget.c.

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 }

Referenced by OnExecuteServer().

◆ CreateConditionComponents()

override void ActionInjectTarget::CreateConditionComponents ( )
inlineprivate

Definition at line 13 of file ActionInjectTarget.c.

14 {
17 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
Definition CCTMan.c:2
const float DEFAULT

References UAMaxDistances::DEFAULT, m_ConditionItem, and m_ConditionTarget.

◆ OnEndServer()

override void ActionInjectTarget::OnEndServer ( ActionData action_data)
inlineprivate

Definition at line 31 of file ActionInjectTarget.c.

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

◆ OnExecuteServer()

override void ActionInjectTarget::OnExecuteServer ( ActionData action_data)
inlineprivate

Definition at line 19 of file ActionInjectTarget.c.

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 }
bool CanReceiveAction(ActionTarget target)
Definition ActionBase.c:594
override void ApplyModifiers(ActionData action_data)

References ApplyModifiers(), CanReceiveAction(), and m_SpecialtyWeight.


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