Raised This Month: $ Target: $400
 0% 

[EXTENSION] Sidewinder


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Quimbo
Member
Join Date: May 2008
Old 08-19-2009 , 04:01   Re: [EXTENSION] Sidewinder
Reply With Quote #1

In the DECLARE_HOOK macro I thought.
Isn't SH_ADD_MANUALVPHOOK a global hook?

I read this: http://forums.alliedmods.net/showthread.php?t=54993
and it says:

Quote:
So, you see, normal hooks are only executed on one specific instance; VP hooks are executed on all instances of a class (attention; if you have a magic pointer from somewhere, and this pointer is in fact a DERIVED class of what you think it is, it has its own vtable and thus VP hooks on what you think it is aren't called on it!).
Sorry if I'm wrong, I'm still learning that stuff.

Last edited by Quimbo; 08-19-2009 at 04:04.
Quimbo is offline
pRED*
Join Date: Dec 2006
Old 08-23-2009 , 19:00   Re: [EXTENSION] Sidewinder
Reply With Quote #2

Quimbo: Yes it is a global hook, and thus only applies to a specific vtable. If you look at where the hooks are added (Entity creation hook in the manager code), it checks the vtable pointer to see if it's been hooked already and if not adds global hooks on that entity/vtable.

Everyone else: Get build 59 or higher and tell me how it goes.

-e- Removed attachment, did it wrong anyway.

Last edited by pRED*; 08-23-2009 at 19:54.
pRED* 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 18:22.


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