 |
|
Senior Member
|

02-09-2013
, 17:24
Re: Ham_TakeDamage hitplace check.
|
#13
|
Quote:
Originally Posted by ConnorMcLeod
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
const m_LastHitGroup = 75
public plugin_init()
{
RegisterHam(Ham_TakeDamage, "player", "OnCBasePlayer_TakeDamage", false)
}
public OnCBasePlayer_TakeDamage( id, iInflictor, iAttacker, Float:flDamage, bitsDamageType ) // return int
{
new iHitgroup = get_pdata_int(id, m_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.
|
|
|
|