File size: 876 Bytes
ea562e8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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.