Go to this page and search for OnTakeDamage to find the solution:
https://sourcemod.dev/#/sdkhooks/typeset.SDKHookCB
Original Description:
For some reason,
SDKHook_OnTakeDamage in TF2 always has
damage set to 0.0, even though it should be more than that for most of the time.
This is quite troublesome, as I want to give damage resistances to players under the effects of the
AC-DR cloak.
(I have left in commented code that hooks onto
SDKHook_OnTakeDamage in the plugin's source.)
A TF2 plugin called
Dodge & Resist seems to have made use of the hook...
EDIT: I've finally tested the aforementioned plugin out, and the damage hook actually had the damage set.
Furthermore, it actually worked when setting the damage value!
Is it because of old/new syntax incompatibilities?
__________________