36 {
37 Magazine magazine;
38 Magazine piles[5];
39
40 if( Class.CastTo(magazine, item) )
41 {
42 float health;
43 string ammo_type;
44 while( magazine.GetAmmoCount() > 0)
45 {
46 int count = magazine.GetAmmoCount();
47 if(magazine.ServerAcquireCartridge(health, ammo_type))
48 {
49 int health_label = MiscGameplayFunctions.GetHealthLevelForAmmo(ammo_type,health);
50 if( piles[health_label] == null )
51 {
53 }
54 piles[health_label].ServerStoreCartridge(health,ammo_type);
55 }
56 }
57 }
58 }
const int ECE_PLACE_ON_SURFACE
proto native CGame GetGame()