Raised This Month: $12 Target: $400
 3% 

Solved [TF2] SDKHook_OnTakeDamage hook's damage value seems to always be 0.0.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 04-13-2020 , 12:04   [TF2] SDKHook_OnTakeDamage hook's damage value seems to always be 0.0.
Reply With Quote #1

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?
__________________
ragdoll spam, that is all

Steam profile, where I game, obviously.
Youtube channel, where I do Stick Death Maze animations and some other stuff.
no plugin requests, sorry


My Plugins:
-search list-
Modified Plugins:
1 | 2 | 3 | 4

Last edited by Shadowysn; 04-14-2020 at 13:37. Reason: Solved.
Shadowysn is offline
Reply


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 04:00.


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