View Single Post
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 03-11-2020 , 16:54   Re: Virtual hooks, bypass only current hook
Reply With Quote #5

Thanks, it works.

Code:
CBaseEntity* pEntity = META_RESULT_ORIG_RET(CBaseEntity*);
I have to keep a variable to pass some data from pre to post hook, but anyway it's much better than checking and processing double calls inside the original function.

Last edited by kadet.89; 03-11-2020 at 16:57.
kadet.89 is offline
Send a message via Skype™ to kadet.89