Raised This Month: $51 Target: $400
 12% 

g_pGameRules question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Keeper
Senior Member
Join Date: Nov 2006
Old 06-24-2009 , 22:41   g_pGameRules question
Reply With Quote #1

Ok, I've found the game rules via scanning (HL2MP). What am I supposed to do next? I need to hook some functions, and have tried and gotten an error reading that address. Maybe I've scanned for the wrong address, but I want to make sure that I'm thinking right so I can know when I get the right one.

Let's say I want to hook CGameRules:: DeathNotice

Assuming I scan for the g_pGameRules correctly, I use the following to hook that function:
Code:
SH_ADD_HOOK_MEMFUNC ( CGameRules, DeathNotice, g_pMyGameRules, &gPlugin, &CPlugin::MyDeathNotice, PRE );
Is my thinking right?

And no, I'm not using SDK tools...
Keeper 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 11:15.


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