Difference between revisions of "SDKHooks"
m (→Some damage types) |
m (→Some damage types) |
||
Line 11: | Line 11: | ||
===Some damage types=== | ===Some damage types=== | ||
− | A normal HEGrenade and the C4 | + | A normal HEGrenade and the C4 inflict damage of type DMG_BLAST. |
A fall inflicts damage of type DMG_FALL. | A fall inflicts damage of type DMG_FALL. | ||
Line 17: | Line 17: | ||
A normal gun bullet will inflict damage of type (DMG_BULLET | DMG_NEVERGIB) (non-headshot) or (DMG_BULLET | DMG_NEVERGIB | (1 << 30) ) (headshot). | A normal gun bullet will inflict damage of type (DMG_BULLET | DMG_NEVERGIB) (non-headshot) or (DMG_BULLET | DMG_NEVERGIB | (1 << 30) ) (headshot). | ||
− | A grenade impact (for instance a flash hitting a teammate) will | + | A grenade impact (for instance a flash hitting a teammate) will inflict damage of type DMG_CLUB. |
Revision as of 04:14, 24 March 2015
Contents
Introduction
SDKHooks was previously an external extension to Sourcemod. It was rolled in Sourcemod 1.5 and it does not need to be manually installed anymore.
Under CSS
Non-regular cases for SDKHook_OnTakeDamage
In the scenario where a player throw a grenade to another player then quickly disconnect, the attacker (2nd argument) will become the inflictor (3rd argument).
In the scenario where a player fall; the attacker, which is also the inflictor, will be 0 (the world).
In the scenario where a terrorist plants the bomb, when the bomb explodes, the attacker (2nd argument) will be the same as the inflictor (3rd argument) which will have the Classname "planted_c4".
Some damage types
A normal HEGrenade and the C4 inflict damage of type DMG_BLAST.
A fall inflicts damage of type DMG_FALL.
A normal gun bullet will inflict damage of type (DMG_BULLET | DMG_NEVERGIB) (non-headshot) or (DMG_BULLET | DMG_NEVERGIB | (1 << 30) ) (headshot).
A grenade impact (for instance a flash hitting a teammate) will inflict damage of type DMG_CLUB.