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

Private Member Functions

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

Detailed Description

Definition at line 1 of file ActionPlaceFireplaceIntoBarrel.c.

Constructor & Destructor Documentation

◆ ActionPlaceFireplaceIntoBarrel()

void ActionPlaceFireplaceIntoBarrel::ActionPlaceFireplaceIntoBarrel ( )
inlineprivate

Definition at line 3 of file ActionPlaceFireplaceIntoBarrel.c.

4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_OPENDOORFW;
6 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
8 m_Text = "#place_object";
9 }
string m_Text
Definition ActionBase.c:49
float m_SpecialtyWeight
Definition ActionBase.c:68
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CommandUID, m_SpecialtyWeight, m_StanceMask, m_Text, and UASoftSkillsWeight::ROUGH_LOW.

Member Function Documentation

◆ ActionCondition()

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

Definition at line 17 of file ActionPlaceFireplaceIntoBarrel.c.

18 {
19 Object target_object = target.GetObject();
20
22 {
24
25 if (fireplace_barrel.IsOpen() && fireplace_barrel.GetInventory().AttachmentCount() == 0 && fireplace_barrel.IsCargoEmpty())
26 return true;
27 }
28
29 return false;
30 }

◆ CreateConditionComponents()

override void ActionPlaceFireplaceIntoBarrel::CreateConditionComponents ( )
inlineprivate

◆ OnExecuteServer()

override void ActionPlaceFireplaceIntoBarrel::OnExecuteServer ( ActionData action_data)
inlineprivate

Definition at line 32 of file ActionPlaceFireplaceIntoBarrel.c.

33 {
36
38 action_data.m_Player.ServerReplaceItemInHandsWithNewElsewhere(lambda);
39
40 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
41 }
void MoveEquipToExistingItemAndDestroyOldRootLambda(EntityAI old_item, string new_item_type, PlayerBase player, EntityAI new_item)

References m_SpecialtyWeight, and MoveEquipToExistingItemAndDestroyOldRootLambda().


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