float autocvar_g_balance_ammodistribution_inner_exponent = -1;
float autocvar_g_balance_ammodistribution_outer_exponent = 2;
float autocvar_g_balance_ammodistribution_outer_nonmatch_exponent = -2;
-float autocvar_g_balance_ammodistribution_shortdistance = 64 * 3 + 1;
+float autocvar_g_balance_ammodistribution_shortdistance = 64 * 2 + 1;
float autocvar_g_balance_ammodistribution_mediumdistance = 1024 + 1;
// NOTE: these also exist per weapon
float autocvar_g_balance_ammodistribution_modifier_shells = 1;
if (!a)
error("Nothing to select. Probably a bug in this code.");
- dprint(sprintf("%v (%v): %s -> %s\n", a.origin, a.item_ammo_origin, a.save_classname, Item_CounterFieldName(item_ammo_type(i))));
+ dprint(sprintf("%v (%v): %s -> %s (%d)\n", a.origin, a.item_ammo_origin, a.save_classname, Item_CounterFieldName(item_ammo_type(i)), a.item_ammo_priority[i]));
// Assign the selected item type to the selected item.
a.item_ammo_chosen_type = i;