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

Private Member Functions

void ActionWashHandsItemContinuous ()
 
override bool HasProneException ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 
- Private Member Functions inherited from ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Detailed Description

Definition at line 9 of file ActionWashHandsItemContinuous.c.

Constructor & Destructor Documentation

◆ ActionWashHandsItemContinuous()

void ActionWashHandsItemContinuous::ActionWashHandsItemContinuous ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 37 of file ActionWashHandsItemContinuous.c.

38 {
39 if (player.GetItemOnSlot("Gloves"))
40 return false;
41 bool result = player.HasBloodyHands() && (item.GetQuantity() >= item.GetDisinfectQuantity() && !player.GetItemOnSlot("Gloves"));
42 return result;
43 }

◆ CreateConditionComponents()

override void ActionWashHandsItemContinuous::CreateConditionComponents ( )
inlineprivate

Definition at line 26 of file ActionWashHandsItemContinuous.c.

27 {
30 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ HasProneException()

override bool ActionWashHandsItemContinuous::HasProneException ( )
inlineprivate

Definition at line 21 of file ActionWashHandsItemContinuous.c.

22 {
23 return true;
24 }

◆ HasTarget()

override bool ActionWashHandsItemContinuous::HasTarget ( )
inlineprivate

Definition at line 32 of file ActionWashHandsItemContinuous.c.

33 {
34 return false;
35 }

◆ OnFinishProgressServer()

override void ActionWashHandsItemContinuous::OnFinishProgressServer ( ActionData action_data)
inlineprivate

Definition at line 45 of file ActionWashHandsItemContinuous.c.

46 {
48 module_lifespan.UpdateBloodyHandsVisibility(action_data.m_Player, false);
49 action_data.m_MainItem.AddQuantity(-action_data.m_MainItem.GetDisinfectQuantity(), false);
50 }
void PluginLifespan()
PluginBase GetPlugin(typename plugin_type)

References GetPlugin(), and PluginLifespan().


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