Raised This Month: $ Target: $400
 0% 

[STOCK] Target is exist in client's angle and distance (03/07/2013 Ver 1.1)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Guren
Senior Member
Join Date: Feb 2011
Location: Equestria, Ponyville
Old 04-29-2013 , 03:18   Re: [STOCK] Target is exist in client's angle and distance (03/07/2013 Ver 1.1)
Reply With Quote #1

Quote:
Originally Posted by Bimbo1 View Post
it's pretty cool! but it doesn't check whether there is an obstacle between the two players or not, does it? well, since cassiopeia's ult doesn't do that too, i guess it's fine.
@edit: oh, since i think that you would be using this several times to detect all the players that are in range of someone, you would like to have it optimized. so, i recommend you using the third parameter of GetVectorDistance set as true, which will return a value without square rooting and, then, square the distance of your function. square rooting isn't as easy as a multiplication. also, checking the distance vector between the two players before doing anything else would be nice too, because it wouldn't do the angle calculation unnecessarily. if resultdistance(squared) is > distance(squared), nothing else matters, return it false right away.

i'll be fix. i'm a trial period now. so i don't have a many times.
__________________

Nick : Chamamyungsu // Korean Brony
Guren is offline
Reply



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 18:27.


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