Code: Select all
float (entity e) checkbottom = #40; // e.absmin_z is fully touching world
I noticed in some other modders code :
Code: Select all
// if the corpse is on a ledge, or in mid-air, gib it to prevent hang-ups
if (!checkbottom(self) || (other.absmin_z + 4 < self.absmin_z))
and I guess looks for contact with either world or a BSP, and will be true if the entire face is in contact? If this is the case, could that code be hacked to return similar functions for the sides and top of the model?