g_pickup_<ammotype>_weapon: the amount of that ammo type you get for picking up a...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_items.qc
index beed37321c40bc6d6ec3026577510a9c75874f8d..07cc60223e4740926ee3b0dccae354498b41a19b 100644 (file)
@@ -1052,7 +1052,7 @@ void weapon_defaultspawnfunc(float wpn)
                        {
                                ammofield = Item_CounterField(j);
                                if(!self.ammofield)
-                                       self.ammofield = cvar(strcat("g_pickup_", Item_CounterFieldName(j)));
+                                       self.ammofield = cvar(strcat("g_pickup_", Item_CounterFieldName(j)), "_weapon");
                        }
                }
        }