19 m_Text =
"#dismantle_oven";
42 if (player.GetBrokenLegs() ==
eBrokenLegs.BROKEN_LEGS)
45 Object target_object = target.GetObject();
47 if ( target_object && target_object.IsFireplace() )
51 if ( fireplace_target.
IsBaseFireplace() && fireplace_target.CanDismantleOven() )
65 if ( fireplace_target.CanDismantleOven() )
67 ItemBase attached_item =
ItemBase.Cast( fireplace_target.GetAttachmentByType( fireplace_target.ATTACHMENT_STONES ) );
71 attached_item.GetInventory().GetCurrentInventoryLocation( inventory_location );
72 fireplace_target.GetInventory().SetSlotLock( inventory_location.
GetSlot(),
false );
75 fireplace_target.SetOvenState(
false );
78 if ( fireplace_target.HasStoneCircle() )
80 fireplace_target.SetLifetimeMax(
FireplaceBase.LIFETIME_FIREPLACE_STONE_CIRCLE );
84 fireplace_target.SetLifetimeMax( 10800 );
void CreateConditionComponents()
protected float m_SpecialtyWeight
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
protected bool m_FullBody
protected int m_StanceMask
ActionDismantleOvenCB ActionContinuousBaseCB ActionDismantleOven()
class ActionTargets ActionTarget
protected ActionData m_ActionData
protected void OnFinishProgressServer(ActionData action_data)
ref CABase m_ActionComponent
ref ActionTarget m_Target
override void CreateActionComponent()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override bool IsBaseFireplace()
proto native int GetSlot()
returns slot id if current type is Attachment
const float DEFAULT_DECONSTRUCT
DayZPlayerConstants
defined in C++