Applies damage to an entity
void SDKHooks_TakeDamage(int entity, int inflictor, int attacker, float damage, int damageType, int weapon, const float damageForce[3], const float damagePosition[3], bool bypassHooks)
Entity index taking damage
Inflictor entity index
Attacker entity index
Amount of damage
Bitfield of damage types
Weapon index (orangebox and later) or -1 for unspecified
Velocity of damage force
Origin of damage
If true, bypass SDK hooks on OnTakeDamage
Invalid entity, attacker, inflictor, or weapon entity.
Force application is dependent on game and damage type(s)
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.