-static entity_render_t *traceline_entity[MAX_EDICTS];
-static int traceline_entities;
-
-// builds list of entities for TraceLine to check later
-void CL_TraceLine_ScanForBModels(void)
-{
- int i;
- entity_render_t *ent;
- model_t *model;
- traceline_entities = 0;
- for (i = 1;i < MAX_EDICTS;i++)
- {
- ent = &cl_entities[i].render;
- model = ent->model;
- // look for embedded brush models only
- if (model && model->name[0] == '*')
- {
- // this does nothing for * models currently...
- //Mod_CheckLoaded(model);
- if (model->type == mod_brush)
- {
- traceline_entity[traceline_entities++] = ent;
- if (ent->angles[0] || ent->angles[2])
- {
- // pitch or roll
- VectorAdd(ent->origin, model->rotatedmins, ent->mins);
- VectorAdd(ent->origin, model->rotatedmaxs, ent->maxs);
- }
- else if (ent->angles[1])
- {
- // yaw
- VectorAdd(ent->origin, model->yawmins, ent->mins);
- VectorAdd(ent->origin, model->yawmaxs, ent->maxs);
- }
- else
- {
- VectorAdd(ent->origin, model->normalmins, ent->mins);
- VectorAdd(ent->origin, model->normalmaxs, ent->maxs);
- }
- }
- }
- }
-}
-