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

[Orpheu] CSoundEnt::SoundPointerForIndex


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
teh ORiON
Member
Join Date: Sep 2011
Location: Denmark
Old 09-10-2015 , 12:44   [Orpheu] CSoundEnt::SoundPointerForIndex
Reply With Quote #1

Hi,

I'm trying to hook this function:

SoundPointerForIndex


And here's the signature for it:

Signature


The signature is found and argument/return validates just fine.
However when I register a hook for the function it crashes on mapload and I'm not quite sure why, as the signature should be solid.

For search in IDA "8B ? ? ? ? ? 85 ? 75 ? 33 ? C3 8B ? ? ? 83 ? ? 7E ? 68 ? ? ? ? 6A ?"
__________________
CTFGasGrenade :: GasThePlace(void)
teh ORiON is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-10-2015 , 15:15   Re: [Orpheu] CSoundEnt::SoundPointerForIndex
Reply With Quote #2

Function is static so you should hook it like a no-class function.
__________________
Arkshine is offline
teh ORiON
Member
Join Date: Sep 2011
Location: Denmark
Old 09-11-2015 , 05:42   Re: [Orpheu] CSoundEnt::SoundPointerForIndex
Reply With Quote #3

I tried, same story, crashes on load, unless Im doing something wrong:

Sig


Pawn
__________________
CTFGasGrenade :: GasThePlace(void)
teh ORiON is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-11-2015 , 14:26   Re: [Orpheu] CSoundEnt::SoundPointerForIndex
Reply With Quote #4

Replace "CSound *" by "pointer", the former is not a class associated to an entity.

Signature works for cstrike as well, and you can cut after 0x83.
__________________
Arkshine is offline
teh ORiON
Member
Join Date: Sep 2011
Location: Denmark
Old 09-11-2015 , 16:55   Re: [Orpheu] CSoundEnt::SoundPointerForIndex
Reply With Quote #5

Thanks a bunch, works well!
__________________
CTFGasGrenade :: GasThePlace(void)
teh ORiON 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 19:58.


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