Raised This Month: $ Target: $400
 0% 

Target player closes to crosshair


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-28-2005 , 22:11  
Reply With Quote #2

One method, although probably not quite what you want, is you could use get_origin with the parameter that gets the bullet hit point (I can't remember the number) and store it. Then loop through all players and get their origins. Then use some kind of bubble sort method to figure out which one is closest. However, this would get player closest to what the crosshair is aiming at (ie: the wall at the end of the map) as opposed to the position of the crosshair on the user's screen.

I don't know if it will work, I'm not sure what you plan to do.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 09:58.


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