[SOLVED][SDKHooks] Remove damage without removing push force?
I'd like to remove Rocket/Sticky self-damage in tf2, however I wish to keep the self-push force but my code removes that.
PHP Code:
|
Re: [SDKHooks] Remove damage without removing push force?
A hacky workaround I used to accomplish this was to simply add the damage amount to the victims health to negate the incoming damage. If I remember correctly though, OnTakeDamage doesn't report the correct damage all the time (perhaps because of random damage spread?). I might be confusing it with OnPlayerHurt, it was one of them.
PHP Code:
|
Re: [SDKHooks] Remove damage without removing push force?
1.7 Syntax
PHP Code:
|
Re: [SDKHooks] Remove damage without removing push force?
Thanks. Also in the gun mettle update they added
Code:
Random damage spread is off by default (convar tf_damage_disablespread). Existing users will still use their currently set value. |
Re: [SDKHooks] Remove damage without removing push force?
What about OnTakeDamage_Alive?
This was added to SM only a few revisions back. |
Re: [SDKHooks] Remove damage without removing push force?
Quote:
|
Re: [SDKHooks] Remove damage without removing push force?
Quote:
|
Re: [SDKHooks] Remove damage without removing push force?
If you don't care about the damage source, you can set the player's m_takedamage to DAMAGE_EVENTS_ONLY to avoid using any hooks.
|
Re: [SDKHooks] Remove damage without removing push force?
Quote:
|
Re: [SDKHooks] Remove damage without removing push force?
Quote:
|
All times are GMT -4. The time now is 00:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.