Raised This Month: $18 Target: $400

Hook m_pfnThink

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Veteran Member
Join Date: Nov 2012
Old 03-28-2020 , 06:59   Hook m_pfnThink
Reply With Quote #1

I want to override CS:GO drone behaveour and for that purpose I need to get 2 hooks:
ThinkPre and ThinkPost.
SDKHooks shows this error:
exception reported: Hook type not valid for this type of entity (281/dronegun) and can't be used.

I believe the think function pointer is stored in m_pfnThink (am I right about it?)

Can I hook m_pfnThink ?
Can I creat a proxy fonction in sp and set the pointer to m_pfnThink, and call the original Think function from my proxy function?

Last edited by kadet.89; 03-28-2020 at 07:20.
kadet.89 is offline
Send a message via Skype™ to kadet.89

Thread Tools
Display Modes

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 20:18.

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