Raised This Month: $38 Target: $400

Solved [L4D] How accurately calculate tank damage with SDKHook?

Post New Thread Reply   
Thread Tools Display Modes
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 05-09-2021 , 11:29   Re: [L4D] How accurately calculate tank damage with SDKHook?
Reply With Quote #11

He means that if another plugin changes the damage received by the tank through hooking OnTakeDamage too, you may output the wrong results,
cause SM may execute your plugin first, and the one that changes the damage next.

I usually use the "OnTakeDamagePost"/"OnTakeDamageAlivePost" hook, but I'm not sure if this solves these cases

I already had a lot of problems trying to calculate things on Post hooks (not triggering functions or outputting different values like attacker)

I don't know if for the player entity you could deal with these situations, but with prop_physics I know this happens.

Still is a good code snippet (as always) and may work in most scenarios.
Marttt is online now

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 09:35.

Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode