Raised This Month: $51 Target: $400
 12% 

[Solved]Distance Difference, Two Entities


Post New Thread Reply   
 
Thread Tools Display Modes
voogru
Inspector Javert
Join Date: Oct 2004
Old 02-08-2011 , 01:24   Re: Distance Difference, Two Entities
Reply With Quote #21

Quote:
Originally Posted by Sagenth View Post
The difference has to be positive else it will always be less than the distance cvar. I need the distance away, distance away should never be a negative in flat terms at least. In the case of 32 of these checks every, let's say, 0.32 seconds it might make for a noticeable difference on the very worst of servers. Heh, I only get the very worst to test on after all :S

Good point on the mismatch though. I will surely remember that or at least notice when I rewrite it into the file.
Then just request the offset on plug-in start and use that variable.

Best of both worlds.

I don't use sourcemod, but thats what I do with my stuff.
voogru is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 02-08-2011 , 06:30   Re: Distance Difference, Two Entities
Reply With Quote #22

It's generating 45 MB KeyValues file every frame that gives you a noticeable lag. Not this. I'm outta here.
__________________
FaTony is offline
Sagenth
Member
Join Date: Aug 2010
Old 02-08-2011 , 09:24   Re: Distance Difference, Two Entities
Reply With Quote #23

Surprised you stayed so long tony. You give your help with a rocket launcher.

Quote:
Originally Posted by voogru View Post
Then just request the offset on plug-in start and use that variable.

Best of both worlds.

I don't use sourcemod, but thats what I do with my stuff.
Thanks that is a good idea. I feel dumb for not considering it.
What is this 45MB file tony speaks of?
Sagenth is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 02-08-2011 , 10:09   Re: [Solved]Distance Difference, Two Entities
Reply With Quote #24

It was my private project of AI bots.
__________________
FaTony is offline
Monkeys
Veteran Member
Join Date: Jan 2010
Old 02-08-2011 , 14:21   Re: [Solved]Distance Difference, Two Entities
Reply With Quote #25

I've been told SetEntProp was the better choice, but I don't know the details so using Voogru's method would be ok.

No idea where FaTony got his KV remark from, though.
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys 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 16:50.


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