mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +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