Raised This Month: $ Target: $400
 0% 

DHooks (Dynamic Hooks - Dev Preview)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 09-06-2016 , 10:08   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #11

Added removal callback & rehooking on those.
PHP Code:
public void OnMapStart()
{
    
//Hook Gamerules function in map start
    
DHookGamerules(g_hCanEntityBeUsePushedfalse,Hook_Removed);

PHP Code:
public void Hook_Removed(int hookid)
{
    
LogFile("Hook %i got removed",hookid);
    
LogFile("reHooked %i",DHookGamerules(g_hCanEntityBeUsePushedfalse,Hook_Removed));

its "rehooking" them, but still quits working after some time until I reload the plugin.

HTML Code:
06/09/2016 - 14:21:44 [CanEntityBePushed] Hook 91 got removed
06/09/2016 - 14:21:44 [CanEntityBePushed] reHooked 73
06/09/2016 - 14:42:56 [CanEntityBePushed] Hook 73 got removed
06/09/2016 - 14:42:56 [CanEntityBePushed] reHooked 73
06/09/2016 - 15:04:43 [CanEntityBePushed] Hook 72 got removed
06/09/2016 - 15:04:43 [CanEntityBePushed] reHooked 72
06/09/2016 - 15:04:48 [CanEntityBePushed] Hook 73 got removed
06/09/2016 - 15:04:48 [CanEntityBePushed] reHooked 73
06/09/2016 - 15:41:28 [CanEntityBePushed] Hook 73 got removed
06/09/2016 - 15:41:28 [CanEntityBePushed] reHooked 73
__________________
ImACow is offline
 



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 12:57.


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