by Spike » Wed May 07, 2014 4:57 pm
vec3_t end, downdir = {0, 0, -1};
VectorMA(ent->origin, 128, downdir, end);
GetNodePoint(ent->origin, end);
change the 128 for different distances.
will fail when you're in the air or standing over a ledge, also when standing on a steep-enough slope.
(although really, if your center of gravity is over the ledge, you ought to fall off anyway!)
.