From 39daacceffbe8f12654877c12c64b220a11f337e Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Mon, 12 Jul 2021 15:19:30 +0200 Subject: [PATCH] Added support for static entities. In the context of UniQuake, these are just like regular entities, but they are only assigned a model and transform once at map load. --- engine/Quake/cl_parse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/Quake/cl_parse.c b/engine/Quake/cl_parse.c index 1bcc2f1..37572da 100644 --- a/engine/Quake/cl_parse.c +++ b/engine/Quake/cl_parse.c @@ -910,6 +910,9 @@ void CL_ParseStatic (int version) //johnfitz -- added a parameter VectorCopy (ent->baseline.origin, ent->origin); VectorCopy (ent->baseline.angles, ent->angles); R_AddEfrags (ent); + + UQ_Game_SetEntityModel(MAX_EDICTS + i, ent->model->name); + UQ_Game_SetEntityTransform(MAX_EDICTS + i, ent->origin, ent->angles); } /*