Raised This Month: $ Target: $400
 0% 

TakeDamage from Monster


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-27-2014 , 04:32   Re: TakeDamage from Monster
Reply With Quote #1

Ah well, it makes sense, Ham uses the virtual table in the mod ; but MonsterMod is a bit special, it basically uses HLSDK as base but modified a bit to be a metamod plugin. So, you will need to hook TakeDamage in MonsterMod. You can probably use Orpheu, filling "library" with "monstermod", maybe removing "mod" and using the right indexes. This should be the same as HL1 (mod "valve"). Though it might be tricky and you may need to recompile MonsterMod the same way as the game.
You can also hook the CBasePlayer::TakeDamage with a signature in case you fail to deal with the virtual function. This should work if you don't forget to specify "monstermod".
__________________
Arkshine is offline
Reply



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 17:29.


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