mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 12:32:09 +00:00
When player stops following a player, keep view angles
Now player keeps looking the same direction instead of facing somewhere else which is slightly disorienting.
This commit is contained in:
parent
5cf45c5937
commit
4463af85fb
1 changed files with 2 additions and 0 deletions
|
@ -652,6 +652,8 @@ void StopFollowing( gentity_t *ent ) {
|
|||
ent->r.svFlags &= ~SVF_BOT;
|
||||
ent->client->ps.clientNum = ent - g_entities;
|
||||
|
||||
SetClientViewAngle( ent, ent->client->ps.viewangles );
|
||||
|
||||
// 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