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

Private Member Functions

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

Detailed Description

Definition at line 10 of file ActionDisinfectTarget.c.

Constructor & Destructor Documentation

◆ ActionDisinfectTarget()

void ActionDisinfectTarget::ActionDisinfectTarget ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

override bool ActionDisinfectTarget::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 28 of file ActionDisinfectTarget.c.

29 {
30 if (target)
31 {
32 PlayerBase target_player = PlayerBase.Cast(target.GetObject());
33 if (target_player)
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

◆ CreateConditionComponents()

override void ActionDisinfectTarget::CreateConditionComponents ( )
inlineprivate

Definition at line 22 of file ActionDisinfectTarget.c.

23 {
26 }
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.

◆ OnFinishProgressServer()

override void ActionDisinfectTarget::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 40 of file ActionDisinfectTarget.c.

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:594
void Apply(ActionData action_data)
eModifiers
Definition eModifiers.c:2

References ActionDisinfectBase::Apply(), and CanReceiveAction().


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