]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/sbar.qc
We may have only one weapon, but we can be left unarmed, and should see on the HUD...
[voretournament/voretournament.git] / data / qcsrc / client / sbar.qc
index 303b9978e1fbe461f4d63f464015d2c4acfed3dd..03e5c04c43b4c22ab5fe11be439fa5b2837e545a 100644 (file)
@@ -3049,6 +3049,12 @@ void Sbar_Draw (void)
                        Sbar_DrawXNum(pos - '144 16 0', a, 3, 0, 16, '1 1 1', 0, 0, sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                }\r
 \r
+               // weapon icon\r
+               entity e;\r
+               e = get_weaponinfo(activeweapon);\r
+               //if (e && e.netname != "")\r
+                       dprint(strcat("XX_", e.netname, "_YY\n"));\r
+\r
                // draw scores and timer\r
                Sbar_Score();\r
                Sbar_Timer();\r