Raised This Month: $ Target: $400
 0% 

set_task with B flag - replace with entity think API?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 09-28-2012 , 06:45   set_task with B flag - replace with entity think API?
Reply With Quote #1

Has anyone thought about doing this before? It sounds like a general optimization.

Create one plugin that creates an entity with think set to .1 seconds, then other plugins would use the API to add their set_tasks with "b" flag to the entity's think. Check for tasks registered in it and if it's time to call one, execute a function in the plugin that registered the task.

What do you think? If it's not a bad idea and can be at least a bit useful, I could try to come with something. Not sure how to execute a function in other plugin though and callfunc_x looks really slow.

Last edited by Backstabnoob; 09-28-2012 at 06:51.
Backstabnoob is offline
 


Thread Tools
Display Modes

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 08:17.


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