From c2447d86343c01be5e136561b08481e4004bb8e1 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 31 Dec 2023 05:03:02 +0300 Subject: [PATCH] engine: client: stupid hack to allow monsters interpolation on a very specific old protocol engine mod --- engine/client/cl_frame.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/engine/client/cl_frame.c b/engine/client/cl_frame.c index 433d3382..576c6a4d 100644 --- a/engine/client/cl_frame.c +++ b/engine/client/cl_frame.c @@ -159,6 +159,13 @@ qboolean CL_EntityCustomLerp( cl_entity_t *e ) case MOVETYPE_FLY: case MOVETYPE_COMPOUND: return false; + + // ABSOLUTELY STUPID HACK TO ALLOW MONSTERS + // INTERPOLATION IN GRAVGUNMOD COOP + // MUST BE REMOVED ONCE WE REMOVE 48 PROTO SUPPORT + case MOVETYPE_TOSS: + if( cls.legacymode && e->model && e->model->type == mod_studio ) + return false; } return true; @@ -1252,6 +1259,14 @@ void CL_LinkPacketEntities( frame_t *frame ) if( !CL_InterpolateModel( ent )) continue; } + // ABSOLUTELY STUPID HACK TO ALLOW MONSTERS + // INTERPOLATION IN GRAVGUNMOD COOP + // MUST BE REMOVED ONCE WE REMOVE 48 PROTO SUPPORT + else if( cls.legacymode && ent->model->type == mod_studio && ent->curstate.movetype == MOVETYPE_TOSS ) + { + if( !CL_InterpolateModel( ent )) + continue; + } else { // no interpolation right now