Raised This Month: $ Target: $400
 0% 

[Orpheu] Hooking funcs from AMXX modules


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Misery
Senior Member
Join Date: Dec 2010
Old 07-14-2012 , 08:11   [Orpheu] Hooking funcs from AMXX modules
Reply With Quote #1

Hi,

I would like very much to hook cs_set_user_team() from cstrike.dll/.so...
Is that even possible to do it with Orpheu?!?

Thanks!

Misery
Misery is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 07-14-2012 , 08:59   Re: [Orpheu] Hooking funcs from AMXX modules
Reply With Quote #2

Define your purpose.
SpeeDeeR is offline
Aooka
Veteran Member
Join Date: Aug 2011
Location: Villeurbanne
Old 07-14-2012 , 09:01   Re: [Orpheu] Hooking funcs from AMXX modules
Reply With Quote #3

Yes we do not really understand what you want exactly ... ( In any case I do not understand )
__________________
Pawn ? Useless
Aooka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-14-2012 , 09:42   Re: [Orpheu] Hooking funcs from AMXX modules
Reply With Quote #4

What he is asking is clear enough.
I'm not sure if you can add libraries to orpheu as rage allow it, you would need a sig though.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 07-14-2012 at 09:43.
ConnorMcLeod is offline
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
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-14-2012 , 12:36   Re: [Orpheu] Hooking funcs from AMXX modules
Reply With Quote #6

You could also try to hook amxx receiving MF_SetPlayerTeamInfo (sent at least from cs_set_user_team).
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 15:17.


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