20 override void CreateConditionComponents()
26 override bool HasProneException()
31 override bool HasTarget()
36 override void OnFinishProgressServer( ActionData action_data )
38 if ( action_data.m_MainItem && action_data.m_MainItem.GetHierarchyRootPlayer() == action_data.m_Player )
40 string path =
"CfgVehicles " + action_data.m_MainItem.GetType();
41 string child_name =
"";
49 for (
int i = 0; i < count; i++)
51 GetGame().ConfigGetChildName (
path, i, child_name );
53 if (
GetGame().ConfigGetInt(
path +
" " + child_name +
" value" ) )
55 resources.Insert( child_name );
60 string itemType = resources.Get(0);
61 int itemCount =
GetGame().ConfigGetInt(
path +
" " + itemType +
" value" );
64 action_data.m_Player.ServerReplaceItemInHandsWithNew(lambda);
75 override void CopyOldPropertiesToNew (notnull
EntityAI old_item,
EntityAI new_item)
77 super.CopyOldPropertiesToNew(old_item, new_item);
79 if (
GetGame().ConfigIsExisting(
"CfgMagazines " + m_NewItemType ) )
82 Class.CastTo(pile, new_item);
88 Class.CastTo(unboxed, new_item);
93 override void OnSuccess(
EntityAI new_item)
95 super.OnSuccess(new_item);