mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-29 15:51:45 +00:00
Wenn cl_gun == 2, zeige die Waffe nicht, selbst wenn das fov > 91 ist.
Extra für caedes :P
This commit is contained in:
parent
a0b35be8b7
commit
bcdd802eca
1 changed files with 9 additions and 1 deletions
|
@ -519,9 +519,17 @@ 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)
|
||||
{
|
||||
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;
|
||||
|
||||
ent->client->ps.stats[STAT_SPECTATOR] = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue