Raised This Month: $ Target: $400
 0% 

Hooking OnTakeDamage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ardiem
New Member
Join Date: Nov 2007
Old 11-04-2007 , 20:19   Hooking OnTakeDamage
Reply With Quote #1

For a MM plugin, I'm trying to hook into OnTakeDamage(CTakeDamageInfo). CTakeDamageInfo is defined in hl2sdk-ob/game_shared/takedamageinfo.h, which isn't in any of the paths included in the default Makefile in the MM SDK. Is hooking into OnTakeDamage a no-no or is there an obvious fix here i'm missing?

I'm trying to hook OnTakeDamage as opposed to the player_hurt event due to the extra information available in CTakeDamageInfo before it's "summarized" as a player_hurt event, as well as for being able to apply the solution to this problem towards other hooks (if needed).

Are there any other pitfalls I should be aware of?

Thanks in advance...
ardiem 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 06:52.


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