signal scoping over network
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4321 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -570,6 +570,11 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat
|
||||
if(command) commandh -= rendercommand(20, 1570, VIRTW);
|
||||
else if(infostr) draw_text(infostr, 20, 1570);
|
||||
else if(targetplayer) draw_text(colorname(targetplayer), 20, 1570);
|
||||
if(targetplayer && targetplayer->weaponsel->type == GUN_SNIPER) // flowtron: for debugging ATM
|
||||
{
|
||||
sniperrifle *sr = (sniperrifle *)targetplayer->weaponsel;
|
||||
if(sr->scoped) draw_textf("\f2SCOPED", 20, 1570 - 2*FONTH);
|
||||
}
|
||||
|
||||
glLoadIdentity();
|
||||
glOrtho(0, VIRTW*2, VIRTH*2, 0, -1, 1);
|
||||
@@ -661,7 +666,7 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat
|
||||
pushfont("huddigits");
|
||||
draw_textf("%d", 90, 823, p->health);
|
||||
if(p->armour) draw_textf("%d", 390, 823, p->armour);
|
||||
if(p->weaponsel && p->weaponsel->type>=GUN_KNIFE && p->weaponsel->type<NUMGUNS)
|
||||
if(p->weaponsel && p->weaponsel->type>=GUN_KNIFE && p->weaponsel->type<NUMGUNS)
|
||||
{
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
p->weaponsel->renderstats();
|
||||
|
||||
Reference in New Issue
Block a user