Raised This Month: $ Target: $400
 0% 

Entity and radius


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kiske
Veteran Member
Join Date: May 2009
Old 06-14-2014 , 09:25   Re: Entity and radius
Reply With Quote #1

Quote:
Originally Posted by Black Rose View Post
I don't really see the problem.

The user gets godmode, isn't that the point?

This is completely useless:
Code:
while((iEnt = find_ent_in_sphere(iEnt, vecEntityOrigin, 330.0)) != 0) { // ...  entity_get_vector(iEnt, EV_VEC_origin, vecIdOrigin);  if(get_distance_f(vecIdOrigin, vecEntityOrigin) > 300.0) {
If I remove that, the user always will have godmode, even if not in range.
__________________


Last edited by hornet; 06-14-2014 at 09:41. Reason: It is a violation of the forum rules to blank out your post
Kiske is offline
Send a message via Skype™ to Kiske
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 06-14-2014 , 09:38   Re: Entity and radius
Reply With Quote #2

Please don't blank out your posts and show us what you did wrong.
__________________
In Flames we trust!
Nextra is offline
Kiske
Veteran Member
Join Date: May 2009
Old 06-14-2014 , 09:58   Re: Entity and radius
Reply With Quote #3

Quote:
Originally Posted by Nextra View Post
Please don't blank out your posts and show us what you did wrong.
It works, nothing more.
"Solved" (?
__________________


Last edited by Kiske; 06-14-2014 at 09:59.
Kiske is offline
Send a message via Skype™ to Kiske
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 21:13.


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