This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Thinks


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lycode
Junior Member
Join Date: Aug 2014
Old 01-06-2015 , 08:12   Thinks
Reply With Quote #1

Are all of these called the same amount of times? And what would be the better method to use and why?

register_forward(FM_PlayerPreThink, "On_PreThink");
client_PreThink
register_think("player", "On_PreThink");
__________________
-This too shall pass
Lycode is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-06-2015 , 09:36   Re: Thinks
Reply With Quote #2

The first are the second are prethink forwards from engine/fakemeta so they are the same. FM one may be better because you can unregister it and avoid to get called when you don't need.
The last one register a think on a entity by a given classname.
__________________
HamletEagle is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-06-2015 , 19:10   Re: Thinks
Reply With Quote #3

Describe what you are trying to do so you get better advice. Also so we don't have another XY Problem.
__________________

Last edited by fysiks; 01-06-2015 at 19:10.
fysiks 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 19:34.


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