mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-30 07:41:16 +00:00
Don't use dead view angles after stop following a dead player
If ps.stats[STAT_HEALTH] is less or equal to 0, cgame uses fixed view angles. When stop following a player, make sure health isn't less or equal to 0.
This commit is contained in:
parent
a700b76722
commit
5cf45c5937
1 changed files with 5 additions and 0 deletions
|
@ -651,6 +651,11 @@ void StopFollowing( gentity_t *ent ) {
|
|||
ent->client->ps.pm_flags &= ~PMF_FOLLOW;
|
||||
ent->r.svFlags &= ~SVF_BOT;
|
||||
ent->client->ps.clientNum = ent - g_entities;
|
||||
|
||||
// don't use dead view angles
|
||||
if ( ent->client->ps.stats[STAT_HEALTH] <= 0 ) {
|
||||
ent->client->ps.stats[STAT_HEALTH] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue