From 4463af85fb4538f480a2aa212c2b48427b7a3977 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Fri, 19 Dec 2014 22:04:56 -0600 Subject: [PATCH] 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. --- code/game/g_cmds.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/game/g_cmds.c b/code/game/g_cmds.c index e6e350f2..f01df847 100644 --- a/code/game/g_cmds.c +++ b/code/game/g_cmds.c @@ -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;