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

DHooks (Dynamic Hooks - Dev Preview)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 05-13-2015 , 17:30   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #11

Quote:
Originally Posted by Neuro Toxin View Post
Spoiler
I cant get DHookGetReturn to give me an entity index for GiveNamedItem's return type.

If I create a hook with the return type of ReturnType_Int it get this:
Code:
----------==========> MRESReturn:OnGiveNamedItem(client=3, entity=164975072)
----------==========> MRESReturn:OnGiveNamedItem(client=3, entity=177344800)
----------==========> MRESReturn:OnGiveNamedItem(client=3, entity=177231552)
----------==========> MRESReturn:OnGiveNamedItem(client=3, entity=164039216)
Which looks like a pointer to me. So I naturally try ReturnType_CBaseEntity which crashes the server

I think the return type is CBaseEntity*. Is there anyway way for me to convert this into a entity index?
There is a bug in DHooks2, I will fix it soon. It appears I did some bad copy pasting from the param logic and this totally broke returns of pointers
Dr!fter is offline
 



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 23:05.


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