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

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

void ActionDisinfectTarget ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 

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

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

◆ ActionDisinfectTarget()

void ActionDisinfectTarget ( )
inlineprivate
13 {
16 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_INTERACT;
17 m_FullBody = true;
18 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
19 m_Text = "#disinfect_target";
20 }
int m_StanceMask
Definition ActionBase.c:33
bool m_FullBody
Definition ActionBase.c:61
string m_Text
Definition ActionBase.c:58
float m_SpecialtyWeight
Definition ActionBase.c:77
Definition ActionDisinfectSelf.c:2
int m_CommandUID
Definition AnimatedActionBase.c:143
m_CallbackClass
Definition AnimatedActionBase.c:145
Definition EntityAI.c:95
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

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

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
29 {
30 if( target)
31 {
32 PlayerBase target_player = PlayerBase.Cast(target.GetObject());
34 return (target_player.IsBleeding() || (player.m_SyncedModifiers & eModifierSyncIDs.MODIFIER_SYNC_WOUND_INFECT_1) || (player.m_SyncedModifiers & eModifierSyncIDs.MODIFIER_SYNC_WOUND_INFECT_2));
35
36 }
37 return false;
38 }
eModifierSyncIDs
Definition ModifiersManager.c:3
Definition PlayerBaseClient.c:2

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
23 {
26 }
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.

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
inlineprivate
41 {
42 PlayerBase target = PlayerBase.Cast(action_data.m_Target.GetObject());
43
44 if ( target )
45 {
46 if (CanReceiveAction(action_data.m_Target))
47 {
48 target.GetModifiersManager().ActivateModifier(eModifiers.MDF_DISINFECTION);
50 }
51 }
52 }
bool CanReceiveAction(ActionTarget target)
Definition ActionBase.c:690
void Apply(ActionData action_data)
Definition ActionDisinfectSelf.c:11
eModifiers
Definition eModifiers.c:2

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


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