From e9ae6d08b5896fb4fff4454ebecd81dad152ac30 Mon Sep 17 00:00:00 2001 From: SNMetamorph <25657591+SNMetamorph@users.noreply.github.com> Date: Mon, 22 Aug 2022 11:23:13 +0400 Subject: [PATCH] engine: client: enable interpolation of local player angles --- engine/client/cl_frame.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_frame.c b/engine/client/cl_frame.c index dd1777e6..81976384 100644 --- a/engine/client/cl_frame.c +++ b/engine/client/cl_frame.c @@ -534,7 +534,7 @@ void CL_ComputePlayerOrigin( cl_entity_t *ent ) vec3_t origin; vec3_t angles; - if( !ent->player || ent->index == ( cl.playernum + 1 )) + if( !ent->player ) return; if( cl_nointerp->value > 0.f ) @@ -1094,6 +1094,9 @@ void CL_LinkPlayers( frame_t *frame ) if ( i == cl.playernum ) { + // using interpolation only for local player angles + CL_ComputePlayerOrigin( ent ); + if( cls.demoplayback == DEMO_QUAKE1 ) VectorLerp( ent->prevstate.origin, cl.lerpFrac, ent->curstate.origin, cl.simorg ); VectorCopy( cl.simorg, ent->origin );