Raised This Month: $ Target: $400
 0% 

Which prethink?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 10-17-2010 , 07:42   Which prethink?
Reply With Quote #1

I am currently using much modules (engine, ham, fakemeta) in my plugin and wanted to ask which prethink is better? Engines? Fakemetas? or Ham's? It will be used for cs.

PHP Code:
register_forward(FM_PlayerPreThink"PreThink"
PHP Code:
RegisterHam(Ham_Player_PreThink"player""Ham__CBasePlayer_PreThink__Post"true
bibu is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 10-17-2010 , 07:51   Re: Which prethink?
Reply With Quote #2

Retard search
Vechta is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-17-2010 , 09:38   Re: Which prethink?
Reply With Quote #3

If Ham's included - Ham.
Else if Engine's included - Engine.
Else if Fakemeta's included - Fakemeta.
Else - include Ham and use it.

That's how I use it for whatever reason.
__________________
hleV is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-17-2010 , 17:39   Re: Which prethink?
Reply With Quote #4

Quote:
Originally Posted by hleV View Post
If Ham's included - Ham.
Else if Engine's included - Engine.
Else if Fakemeta's included - Fakemeta.
Else - include Ham and use it.

That's how I use it for whatever reason.
That's a poor method of deciding.
There's nothing wrong with having all 3 of those modules loaded.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-18-2010 , 09:18   Re: Which prethink?
Reply With Quote #5

AFAIK engine's pre/post think are multi-forwards and they're executed on all plugins anyway, fakemeta and ham create new forwards, that's why they use register_forward()/RegisterHam().

So basically, you could just use engine's way because it's already executed instead of creating a new one via fameketa or ham.
__________________
Hunter-Digital is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-18-2010 , 09:28   Re: Which prethink?
Reply With Quote #6

Again, all is depending the need, if you need to register/unregister one or severals times at specific moment, or/and of you need to hook pre/post, use either fakemeta/ham. Except that, all are fine and it doesn't matter.
__________________
Arkshine is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 10-18-2010 , 09:48   Re: Which prethink?
Reply With Quote #7

For ham u need to register them seperately for CZ bots
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-18-2010 , 11:16   Re: Which prethink?
Reply With Quote #8

Engine prethink forward is a multiforward.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-18-2010 , 12:59   Re: Which prethink?
Reply With Quote #9

Quote:
Originally Posted by Exolent[jNr] View Post
That's a poor method of deciding.
There's nothing wrong with having all 3 of those modules loaded.
How is it poor? If I already use Ham - I'll use Ham to register prethink. If I use FM - I'll use FM for prethink too. Why would I need to add a module when I can do the same thing with the module I already use?
__________________
hleV is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 10-18-2010 , 13:17   Re: Which prethink?
Reply With Quote #10

Quote:
Originally Posted by Arkshine View Post
Again, all is depending the need, if you need to register/unregister one or severals times at specific moment, or/and of you need to hook pre/post, use either fakemeta/ham. Except that, all are fine and it doesn't matter.
Thanks for your helpful answer Arkshine.
bibu 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 10:28.


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