Added the rest of the hull stuff.

This commit is contained in:
eukos 2015-08-31 22:44:55 +02:00
parent 9102fe5fc3
commit 6f129c5791

View file

@ -144,7 +144,11 @@ hull_t *SV_HullForEntity (edict_t *ent, vec3_t mins, vec3_t maxs, vec3_t offset)
if (!model || model->type != mod_brush){
Con_Printf ("WARNING: SOLID_BSP with a non bsp model\n Changing it to SOLID_NOT\n");
ent->v.solid = SOLID_NOT;
return;
VectorSubtract (ent->v.mins, maxs, hullmins);
VectorSubtract (ent->v.maxs, mins, hullmaxs);
hull = SV_HullForBox (hullmins, hullmaxs);
VectorCopy (ent->v.origin, offset);
return hull;
}
// 1999-10-07 MOVETYPE_PUSH fix by LordHavoc/Maddes end