SDKHooks_TakeDamage not calling OnTakeDamage
Hi. I've recently got back into sourcemod plugins relating to TF2, and was wondering how to force TakeDamage to call OnTakeDamage, or call OnTakeDamage. For reference, I am creating custom attributes for the CustomWeapons3 plugin; the attribute I'm working on damages targets around the initial victim, and I would like for it to be able to chain between victims indefinitely. :)
My current code for the attribute is as follows: PHP Code:
|
Re: SDKHooks_TakeDamage not calling OnTakeDamage
I remember asking this on SM Discord once and someone said that SDKHooks_TakeDamage don't call SDKHook_OnTakeDamage by design.
I have the same issue with SDKHooks_DropWeapon doesn't trigger SDKHook_WeaponDrop/Post. Is not kinda a bug. You can ask on Discord or open an Issue on sourcemod github repo, although you will get a similar reply. Here is the discord link message in case you wanna check. |
Re: SDKHooks_TakeDamage not calling OnTakeDamage
...you would not to like to get infinite loop, would you ?
|
Re: SDKHooks_TakeDamage not calling OnTakeDamage
SDKHooks_TakeDamage may be called outside SDKHook_OnTakeDamage in some scenarios, which wouldn't cause a loop, in theory.
|
Re: SDKHooks_TakeDamage not calling OnTakeDamage
Quote:
|
Re: SDKHooks_TakeDamage not calling OnTakeDamage
Quote:
|
All times are GMT -4. The time now is 09:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.