Bugzilla – Bug 6133
Allow SDKHook_TakeDamage to optionally NOT bypass the _OnTakeDamage hook
Last modified: 2021-10-13 13:22:37 PDT
https://forums.alliedmods.net/showthread.php?t=240742 Currently, the damage caused by SDKHook_TakeDamage() is intentionally routed around any OnTakeDamage hook that may be on the damaged entity. If possible, this feature should be optional through an additional argument of SDKHook_TakeDamage(). Among other things, this issue has caused my Friendly Mode plugin to be completely unable to cancel damage done to (or by) Friendly players with the RTD effects toxic and timebomb. Friendly Mode: https://forums.alliedmods.net/showthread.php?t=213205 RTD: https://forums.alliedmods.net/showthread.php?t=75561
*** Bug 6605 has been marked as a duplicate of this bug. ***
Agreed whole-heartedly.
This has now been added as optional in https://github.com/alliedmodders/sourcemod/pull/1598