Raised This Month: $ Target: $400
 0% 

Solved Get dead players in radius


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-08-2019 , 14:15   Re: Get dead players in radius
Reply With Quote #6

Quote:
Originally Posted by karaulov View Post
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.
__________________

Last edited by HamletEagle; 11-08-2019 at 14:16.
HamletEagle is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:47.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode