DayZ 1.24
Loading...
Searching...
No Matches
ActionPlaceFireplaceIntoBarrel.c
Go to the documentation of this file.
2{
4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_OPENDOORFW;
6 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
8 m_Text = "#place_object";
9 }
10
16
17 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
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 }
31
33 {
36
38 action_data.m_Player.ServerReplaceItemInHandsWithNewElsewhere(lambda);
39
40 action_data.m_Player.GetSoftSkillsManager().AddSpecialty(m_SpecialtyWeight);
41 }
42}
string m_Text
Definition ActionBase.c:49
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
float m_SpecialtyWeight
Definition ActionBase.c:68
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
int m_StanceMask
Definition ActionBase.c:53
void MoveEquipToExistingItemAndDestroyOldRootLambda(EntityAI old_item, string new_item_type, PlayerBase player, EntityAI new_item)
override void OnExecuteServer(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float DEFAULT
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597