- vector trace_start;
- vector trace_end;
-
- // determine height above ground is below a threshold
- trace_start = self.origin;
- trace_end = self.origin - (1000*v_up);
-
- tracebox(trace_start, self.mins, self.maxs, trace_end, TRUE, self);
-
- // check if the trace hit anything at all
- if (trace_fraction > 1)
- return 0;
-
- if(self.origin_z - trace_endpos_z < threshold)