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

Private Member Functions

void ActionInteractLoopBase ()
 
void ActionWashHandsWaterOne ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnEndServer (ActionData action_data)
 

Detailed Description

Definition at line 35 of file ActionInteractLoopBase.c.

Constructor & Destructor Documentation

◆ ActionInteractLoopBase()

void ActionInteractLoopBase::ActionInteractLoopBase ( )
inlineprivate

Member Function Documentation

◆ ActionCondition()

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

Definition at line 26 of file ActionWashHandsWaterOne.c.

27 {
28 // Other conditions are in CCTWaterSurface
29 return (GetGame().IsMultiplayer() && GetGame().IsServer()) || (player.HasBloodyHands() && !player.GetItemInHands() && !player.GetItemOnSlot("Gloves"));
30 }
proto native CGame GetGame()

References GetGame().

◆ ActionWashHandsWaterOne()

void ActionInteractLoopBase::ActionWashHandsWaterOne ( )
inlineprivate

Definition at line 11 of file ActionWashHandsWaterOne.c.

12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_WASHHANDSPOND;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
17 m_Text = "#wash_hands";
18 }
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53

References m_FullBody, m_StanceMask, and m_Text.

◆ CreateConditionComponents()

override void ActionInteractLoopBase::CreateConditionComponents ( )
inlineprivate

◆ OnEndServer()

override void ActionInteractLoopBase::OnEndServer ( ActionData action_data)
inlineprivate

Definition at line 32 of file ActionWashHandsWaterOne.c.

33 {
34 if (action_data.m_State == UA_FINISHED)
35 {
37 module_lifespan.UpdateBloodyHandsVisibility(action_data.m_Player, false);
38 }
39 }
void PluginLifespan()
PluginBase GetPlugin(typename plugin_type)
const int UA_FINISHED
Definition constants.c:436

References GetPlugin(), PluginLifespan(), and UA_FINISHED.


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