Browse Source

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.

console
Nico de Poel 5 years ago
parent
commit
39daacceff
  1. 3
      engine/Quake/cl_parse.c

3
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.origin, ent->origin);
VectorCopy (ent->baseline.angles, ent->angles); VectorCopy (ent->baseline.angles, ent->angles);
R_AddEfrags (ent); R_AddEfrags (ent);
UQ_Game_SetEntityModel(MAX_EDICTS + i, ent->model->name);
UQ_Game_SetEntityTransform(MAX_EDICTS + i, ent->origin, ent->angles);
} }
/* /*

Loading…
Cancel
Save