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

Solved Custom Bleed Damage [TF2]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Recluse
Junior Member
Join Date: Jul 2021
Location: Braap
Old 03-26-2022 , 18:26   Custom Bleed Damage [TF2]
Reply With Quote #1

I've been trying to script something that allows me to modify bleed damage directly and can't seem to be able to figure it out for the life of me. Here's what I have so far that hasn't been working

Code:
if (damagetype == DMG_SLASH)
	{
		new Address:BulletDmgReduc = TF2Attrib_GetByName(victim, "dmg taken from bullets reduced");
		new Address:BulletDmgReducActive = TF2Attrib_GetByName(victim, "always tradable");
		if (BulletDmgReduc && BulletDmgReducActive!=Address_Null)
		{
			damage = Pow(TF2Attrib_GetValue(BulletDmgReduc),0.82);
		}
Any assistance would be greatly appreciated.

Last edited by Recluse; 03-26-2022 at 20:05.
Recluse is offline
Recluse
Junior Member
Join Date: Jul 2021
Location: Braap
Old 03-26-2022 , 20:04   Re: Custom Bleed Damage [TF2]
Reply With Quote #2

Nevermind, figured it out in the end, just a few minor mistakes on my part.

coding is sometimes a pain
Recluse is offline
Reply



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 19:32.


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