]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Different ammo count for each ammo type in hud_configure mode
authorterencehill <piuntn@gmail.com>
Thu, 18 Nov 2010 11:32:11 +0000 (12:32 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 18 Nov 2010 11:32:11 +0000 (12:32 +0100)
qcsrc/client/hud.qc

index e188604eb0817d5c49d21c9d02ee1a4ddb451eb3..fddd17584caca9523d89545e334987951f1fb136 100644 (file)
@@ -1873,7 +1873,7 @@ void DrawAmmoItem(vector myPos, vector mySize, float itemcode, float currently_s
        if(autocvar__hud_configure)
        {
                currently_selected = (itemcode == 2); //rockets always selected
-               a = 100;
+               a = 31 + mod(itemcode*93, 128);
        }
        else
                a = getstati(GetAmmoStat(itemcode)); // how much ammo do we have of type itemcode?