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

Private Member Functions

void ActionOpenBarrelHoles ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnExecuteServer (ActionData action_data)
 
override void OnEndServer (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionOpenBarrelHoles.c.

Constructor & Destructor Documentation

◆ ActionOpenBarrelHoles()

void ActionOpenBarrelHoles::ActionOpenBarrelHoles ( )
inlineprivate

Definition at line 3 of file ActionOpenBarrelHoles.c.

4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_INTERACTONCE;
6 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
7 m_Text = "#open";
8 }
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CommandUID, m_StanceMask, and m_Text.

Member Function Documentation

◆ ActionCondition()

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

Definition at line 10 of file ActionOpenBarrelHoles.c.

11 {
12 Object target_object = target.GetObject();
13 if (target_object.IsItemBase())
14 {
16 if (ntarget)
17 {
18 if (!ntarget.IsOpen() && !ntarget.DirectCookingSlotsInUse())
19 return true;
20 }
21 }
22 return false;
23 }

◆ OnEndServer()

override void ActionOpenBarrelHoles::OnEndServer ( ActionData action_data)
inlineprivate

Definition at line 33 of file ActionOpenBarrelHoles.c.

34 {
35 Object target_object = action_data.m_Target.GetObject();
37 if (ntarget)
38 ntarget.SoundSynchRemoteReset();
39 }

◆ OnExecuteServer()

override void ActionOpenBarrelHoles::OnExecuteServer ( ActionData action_data)
inlineprivate

Definition at line 25 of file ActionOpenBarrelHoles.c.

26 {
27 Object target_object = action_data.m_Target.GetObject();
29 if (ntarget)
30 ntarget.Open();
31 }

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