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:
1 parent
5cf45c5937
commit
4463af85fb
1 file changed
+2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user