Raised This Month: $ Target: $400
 0% 

Ham_TakeDamage hitplace check.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
P1raten
Senior Member
Join Date: Feb 2010
Old 02-09-2013 , 17:24   Re: Ham_TakeDamage hitplace check.
Reply With Quote #13

Quote:
Originally Posted by ConnorMcLeod View Post
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

const m_LastHitGroup 75

public plugin_init()
{
    
RegisterHam(Ham_TakeDamage"player""OnCBasePlayer_TakeDamage"false)
}

public 
OnCBasePlayer_TakeDamageidiInflictoriAttackerFloat:flDamagebitsDamageType // return int
{
    new 
iHitgroup get_pdata_int(idm_LastHitGroup)

This is as simple as this.

Anyway, if you don't want to modify damage, you can use csx.
Thanks for the reply. My solution has already been applied and it is pretty much identical to yours.

Anyway, thanks.
__________________
No salvation. Only madness.
P1raten is offline
 


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 11:11.


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