DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionInjectTarget
+ Граф наследования:ActionInjectTarget:

Закрытые члены

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

Подробное описание

Конструктор(ы)

◆ ActionInjectTarget()

void ActionInjectTarget ( )
inlineprivate
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:61
string m_Text
Definition ActionBase.c:58
float m_SpecialtyWeight
Definition ActionBase.c:77
int m_StanceMask
Definition ActionBase.c:62
int m_CommandUID
Definition AnimatedActionBase.c:143
Definition EntityAI.c:95
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки AnimatedActionBase::m_CommandUID, ActionBase::m_FullBody, ActionBase::m_SpecialtyWeight, ActionBase::m_StanceMask и ActionBase::m_Text.

Методы

◆ ApplyModifiers()

override void ApplyModifiers ( ActionData action_data)
inlineprivate
41 {
42 action_data.m_MainItem.OnApply( PlayerBase.Cast(action_data.m_Target.GetObject()));
43 //PlayerBase ntarget = PlayerBase.Cast( action_data.m_Target.GetObject() );
44 //ntarget.GiveShock(100);
45 }
Definition PlayerBaseClient.c:2

Используется в OnExecuteServer().

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
14 {
17 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINonRuined.c:2
Definition CCTMan.c:2
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108

Перекрестные ссылки UAMaxDistances::DEFAULT, ActionBase::m_ConditionItem и ActionBase::m_ConditionTarget.

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)
inlineprivate
31 {
32 super.OnEndServer(action_data);
33
34 if (action_data.m_WasExecuted && action_data.m_MainItem )
35 {
36 action_data.m_MainItem.Delete();
37 }
38 }

◆ OnExecuteServer()

override void OnExecuteServer ( ActionData action_data)
inlineprivate
20 {
21 if (CanReceiveAction(action_data.m_Target))
22 {
23 if (action_data.m_MainItem)
24 {
26 }
27 }
28 }
bool CanReceiveAction(ActionTarget target)
Definition ActionBase.c:690
override void ApplyModifiers(ActionData action_data)
Definition ActionInjectTarget.c:40

Перекрестные ссылки ApplyModifiers() и ActionBase::CanReceiveAction().


Объявления и описания членов класса находятся в файле: