Wenn cl_gun == 2, zeige die Waffe nicht, selbst wenn das fov > 91 ist.

Extra für caedes :P
This commit is contained in:
Yamagi Burmeister 2010-01-28 20:49:03 +00:00
parent a0b35be8b7
commit bcdd802eca

View file

@ -519,7 +519,15 @@ void G_SetStats (edict_t *ent)
ent->client->ps.stats[STAT_HELPICON] = gi.imageindex ("i_help");
else if ( (ent->client->pers.hand == CENTER_HANDED || ent->client->ps.fov > 91)
&& ent->client->pers.weapon)
ent->client->ps.stats[STAT_HELPICON] = gi.imageindex (ent->client->pers.weapon->icon);
{
cvar_t *gun;
gun = gi.cvar("cl_gun", "2", 0);
if(gun->value != 2)
ent->client->ps.stats[STAT_HELPICON] = gi.imageindex (ent->client->pers.weapon->icon);
else
ent->client->ps.stats[STAT_HELPICON] = 0;
}
else
ent->client->ps.stats[STAT_HELPICON] = 0;