Raised This Month: $ Target: $400
 0% 

[Orpheu] Hooking funcs from AMXX modules


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Misery
Senior Member
Join Date: Dec 2010
Old 07-14-2012 , 10:05   Re: [Orpheu] Hooking funcs from AMXX modules
Reply With Quote #5

Yes, of course I'd have a sig.
Still, can I really put into Orpheu something like
Code:
[bla bla bla]
library : "cstrike_amxx"
[bla bla bla]
EDIT: Not cstrike.dll sorry... I meant cstrike_amxx.dll

As for the purpose, it's to track team changes made by plugins using cs_set_user_team() since it cannot be hooked into AMXX... I was hooking pfnMessageX functions to get the TeamInfo sent by cs_set_user_team(), but the problem is that ColorChat's TeamInfos (which are not interceptable by the standard register_event(), but are intercepted by the pfnMessage hooks) completely corrupt my team cache and other caches I maintain derived from this message (since ColorChat sometimes send erroneous TeamInfos to switch colors).

I need to cache team data... don't even try to find another possible solution, I've already thought about all that and the design is well thought. I have too much team calculations around. What I mean by caching here is just storing it in an g_iTeams[33] and such.

So I thought I could, instead of hooking pfnMessageX functions (which corrupt as said my caches with wrong data), use the standard register_event() and simply hook the special case cs_set_user_team()... that way it'd work...

Thanks!

Last edited by Misery; 07-14-2012 at 11:02.
Misery 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 15:17.


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