3 override void CreateActionComponent()
15 m_Text =
"#sort_ammunition";
18 override void CreateConditionComponents()
29 override void OnEndAnimationLoopServer(
ActionData action_data )
31 SortAmmo(action_data.m_MainItem);
39 if(
Class.CastTo(magazine, item) )
43 while( magazine.GetAmmoCount() > 0)
45 int count = magazine.GetAmmoCount();
46 if(magazine.ServerAcquireCartridge(health, ammo_type))
48 int health_label = MiscGameplayFunctions.GetHealthLevelForAmmo(ammo_type,health);
49 if( piles[health_label] ==
null )
53 piles[health_label].ServerStoreCartridge(health,ammo_type);