34 HescoBox hesco = HescoBox.Cast(target.GetObject());
36 if( hesco.GetState() == HescoBox.UNFOLDED )
48 if ( player.IsPlacingLocal() )
54 if ( hesco.CanBeFilledAtPosition( player.GetPosition() ) )
56 if ( hesco.GetState() == HescoBox.UNFOLDED )
61 else if( hesco.GetState() == HescoBox.FILLED)
78 const float ITEM_DAMAGE = 0.05;
79 action_data.
m_MainItem.DecreaseHealth (
"",
"", action_data.
m_Player.GetSoftSkillsManager().SubtractSpecialtyBonus( ITEM_DAMAGE,
this.GetSpecialtyWeight() )*100 );
81 if ( hesco.GetState() == HescoBox.UNFOLDED )
85 else if ( hesco.GetState() == HescoBox.FILLED )
100 if ( hesco.GetState() == HescoBox.UNFOLDED )
104 else if ( hesco.GetState() == HescoBox.FILLED )
protected float m_SpecialtyWeight
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
protected bool m_FullBody
protected int m_StanceMask
class ActionTargets ActionTarget
protected ActionData m_ActionData
ref CABase m_ActionComponent
ref ActionTarget m_Target
override void CreateActionComponent()
override void OnFinishProgressServer(ActionData action_data)
override void OnActionInfoUpdate(PlayerBase player, ActionTarget target, ItemBase item)
protected const int FILLED
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnFinishProgressClient(ActionData action_data)
protected int m_ActionState
protected const int EMPTY
protected int m_CommandUID
protected m_CallbackClass
Super root of all classes in Enforce script.
DayZPlayerConstants
defined in C++
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.