Quote:
Originally Posted by karaulov
But if player killed in fly ? How to get position dead body instead of "position of kill" ?
|
There is no "dead body" on the server side of things so it is natural there is not a straightforward way of doing that.
I didn't play cs in ages so I do not remember, but if a player is killed while airborne then his body will fail straight down, right? Then you just get the kill position and do a traceline downwards(from current position to a new position which has the same x, y as the kill pos and z is -9999.9).
Get the TR_vecEndPos from the traceline and you got the position where the body "landed"(assuming it goes straight down). You may want to add a small offset to the z component depending on what you will use this position for.
__________________