39 int entnum, modelnum1, levelflags, speed, dir;
45 NET_ReadFormat(msg, self->
formatString, &entnum, &
type, &modelnum1, &levelflags, &
origin, &angles, &speed, &angle, &dir);
49 else if (modelnum1 >
MAX_MODELS || modelnum1 < 1)
55 Com_Error(
ERR_DROP,
"le announced a second time - le for entnum %i (type: %i) already exists (via EV_ADD_BRUSH_MODEL)\n", entnum,
type);
void CL_RecalcRouting(const le_t *le)
bool LE_BrushModelAction(le_t *le, entity_t *ent)
Add function for brush models.
void LET_BrushModel(le_t *le)
const cBspModel_t * LE_GetClipModel(const le_t *le)
le_t * LE_Add(int entnum)
Add a new local entity to the scene.
void LE_SetThink(le_t *le, localEntityThinkFunc_t think)
le_t * LE_Get(int entnum)
Searches all local entities for the one with the searched entnum.
#define LE_IsNotSolid(le)
#define LE_CHECK_LEVELFLAGS
void getDiagonal(vec3_t diagonal) const
void set(const AABB &other)
Copies the values from the given aabb.
Primary header for client.
cBspModel_t * CM_SetInlineModelOrientation(mapTiles_t *mapTiles, const char *name, const vec3_t origin, const vec3_t angles)
This function updates a model's orientation.
void Com_Error(int code, const char *fmt,...)
void CL_AddBrushModel(const eventRegister_t *self, dbuffer *msg)
Register local entities for SOLID_BSP models like func_breakable or func_door.
#define VecToPos(v, p)
Map boundary is +/- MAX_WORLD_WIDTH - to get into the positive area we add the possible max negative ...
void NET_ReadFormat(dbuffer *buf, const char *format,...)
The user-friendly version of NET_ReadFormat that reads variable arguments from a buffer according to ...
QGL_EXTERN GLint GLenum type
model_t * R_FindModel(const char *name)
Tries to load a model.
bool Com_sprintf(char *dest, size_t size, const char *fmt,...)
copies formatted string with buffer-size checking
Struct that defines one particular event with all its callbacks and data.
const char * formatString
The format string that is used to write and parse this event.
localEntitiyAddFunc_t addFunc
void UI_ExecuteConfunc(const char *fmt,...)
Executes confunc - just to identify those confuncs in the code - in this frame.
#define VectorCopy(src, dest)