Raised This Month: $ Target: $400
 0% 

Is using "entity think" faster than set_task and remove_task?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-28-2010 , 01:51   Re: Is using "entity think" faster than set_task and remove_task?
Reply With Quote #1

It is basically a choice between letting AMXX handle the timing or letting the HL engine deal with it.

You can use a global entity with a FM hook and then do an easy check to see if it is the same entity.

The other option would be to use a custom classname and use engine's register_think native.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 07-28-2010 , 02:55   Re: Is using "entity think" faster than set_task and remove_task?
Reply With Quote #2

Quote:
Originally Posted by Emp` View Post
It is basically a choice between letting AMXX handle the timing or letting the HL engine deal with it.

You can use a global entity with a FM hook and then do an easy check to see if it is the same entity.

The other option would be to use a custom classname and use engine's register_think native.
So, which do you suggest? It's called very often btw (remove and settask together around 10 times/second)
01101101 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-28-2010 , 06:44   Re: Is using "entity think" faster than set_task and remove_task?
Reply With Quote #3

You can also create an entity with a not often used classname and register the think with Ham.
If you have only 1 ent in the plugin, filter by entity index.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 00:11.


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