Added the rest of the hull stuff.
This commit is contained in:
parent
9102fe5fc3
commit
6f129c5791
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue