Difference between revisions of "SDKHooks"
(→Some damage TYPE) |
|||
Line 2: | Line 2: | ||
SDKHooks was previously an external extension to Sourcemod. It was added rolled in [https://wiki.alliedmods.net/Sourcemod_1.5.0_API_Changes#SDKHooks Sourcemod 1.5] | SDKHooks was previously an external extension to Sourcemod. It was added rolled in [https://wiki.alliedmods.net/Sourcemod_1.5.0_API_Changes#SDKHooks Sourcemod 1.5] | ||
− | + | ==Under CSS== | |
− | ==Non regular cases for SDKHook_OnTakeDamage== | + | ===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 throw a grenade to another player then quickly disconnect, the attacker (2nd argument) will become the inflictor (3rd argument). | ||
Line 10: | Line 10: | ||
In the scenario where a terrorist plant 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". | In the scenario where a terrorist plant 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 TYPE== | + | ===Some damage TYPE=== |
A normal HEGrenade and the C4 inflicts damage of type DMG_BLAST. | A normal HEGrenade and the C4 inflicts damage of type DMG_BLAST. | ||
Revision as of 03:53, 24 March 2015
SDKHooks
SDKHooks was previously an external extension to Sourcemod. It was added rolled in Sourcemod 1.5
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.
In the scenario where a terrorist plant 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 TYPE
A normal HEGrenade and the C4 inflicts damage of type DMG_BLAST.
A fall inflicts damage of type DMG_FALL.
A normal gun bullet will inflicts damage of type (DMG_BULLET | DMG_NEVERGIB).
A grenade impact (for instance a flash hitting a teammate) will inflicst damage of type DMG_CLUB.