View Single Post
nosoop
Veteran Member
Join Date: Aug 2014
Old 03-25-2018 , 10:49   Re: Hooking a function with unusual call conventions?
Reply With Quote #5

I already included gamehelpers; the compiler mentions that there's only a forward declaration of CBaseHandle from the IGameHelpers header; can't use the class directly as a (non-pointer) function argument / return type.

Pulled in a stub from the SDK's basehandle include, and it looks like it's working as predicted.
Thanks for the help, duck!

I've set up a repository with just the relevant code here for future reference. This commit for the solution.

Edit: Looks like making MMS a requirement for the extension works too (had to pull in FindEntityByClassname and found a redeclaration error).
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 03-26-2018 at 04:32.
nosoop is offline