Amxxprogramer / EngFunc_TraceToss.txt
RichieBurundi's picture
Upload 29 files
ea562e8 verified
raw
history blame contribute delete
876 Bytes
Fakemeta function :
Code:
EngFunc_TraceToss
Description :
Trace the point where some entity movement will finish.
If for some reason the entity movement must be blocked for other entity (or worldspawn), TraceToss will detect that situation taking in account the original entity bounding boxes.
Usage :
Code:
engfunc(EngFunc_TraceToss, ent, skipent, tr);
Parameters
ent = The entity which movement we want to trace
skipent = The entity to skip in trace
tr = trace result
Example:
If you open the attached image, you can see a player jumping and 2 points.
Start Point: Is the origin of the player when TraceToss was called
End Point: Is the point returned in TR result
So the player is making a parabola from START to END.
The green line is only for testing purposes and show from where to where the trace is.
This was tested with gravity = 400.