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

[L4D2] Special Infected Claw Damage CVARS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shao
Senior Member
Join Date: Jan 2015
Old 03-22-2022 , 15:14   [L4D2] Special Infected Claw Damage CVARS
Reply With Quote #1

Is there a plugin out there that can help change claw damage without affecting primary abilities? Cvars don't seem to work at all (At least for AI which I only tested) and much of the only solution that works like DamageModSDKHook by AtomicStryker like said affects specials all around rather than just their claw damage which cause unwanted changes.
Shao is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 03-22-2022 , 16:55   Re: [L4D2] Special Infected Claw Damage CVARS
Reply With Quote #2

Claw damages are hardcoded in the game. Only way to change them is to check if the damage type is DMG_SLASH(?) and override the damage amount.
cravenge is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 03-22-2022 , 20:04   Re: [L4D2] Special Infected Claw Damage CVARS
Reply With Quote #3

If you mean this plugin: https://forums.alliedmods.net/showthread.php?p=1184761
Then maybe you should paste what config you set in the .cfg file, looking at the code seems to work fine.
__________________
Marttt is offline
Shao
Senior Member
Join Date: Jan 2015
Old 03-22-2022 , 23:22   Re: [L4D2] Special Infected Claw Damage CVARS
Reply With Quote #4

Looks like this:
Code:
"L4D2 Damage Mods"
{
//	"MP5"
//	{
//		"weapon_class"			"weapon_smg_mp5"
//		"modifier_friendly"		"1.2"
//		"modifier_enemy"		"1.2"
//	}
	"AWP Sniper"
	{
		"weapon_class"			"weapon_sniper_awp"
		"modifier_friendly"		"0.575"
		"modifier_enemy"		"1.0"
	}
	"Desert Eagle"
	{
		"weapon_class"			"weapon_pistol_magnum"
		"modifier_friendly"		"0.8695652173913043"
		"modifier_enemy"		"1.0"
	}
	"Steyr Scout"
	{
		"weapon_class"			"weapon_sniper_scout"
		"modifier_friendly"		"0.84"
		"modifier_enemy"		"1.0"
	}
	"Grenade Launcher"
	{
		"weapon_class"			"weapon_grenade_launcher"
		"modifier_friendly"		"0.0"
		"modifier_enemy"		"1.0"
	}
	"Knife"
	{
	"weapon_class"			"knife"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	
	"Fireaxe"
	{
	"weapon_class"			"fireaxe"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	
	"Frying Pan"
	{
	"weapon_class"			"frying_pan"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	
	"Machete"
	{
	"weapon_class"			"machete"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	
	"Baseball Bat"
	{
	"weapon_class"			"baseball_bat"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	
	"Crowbar"
	{
	"weapon_class"			"crowbar"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	
	"Cricket Bat"
	{
	"weapon_class"			"cricket_bat"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	
	"Tonfa"
	{
	"weapon_class"			"tonfa"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	
	"Katana"
	{
	"weapon_class"			"katana"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	
	"Electric Guitar"
	{
	"weapon_class"			"electric_guitar"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	"Golf Club"
	{
	"weapon_class"			"golfclub"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	"Pitchfork"
	{
	"weapon_class"			"pitchfork"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	"Shovel"
	{
	"weapon_class"			"shovel"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	"Chainsaw"
	{
	"weapon_class"			"weapon_chainsaw"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	"L4D1 Mounted Gun"
	{
	"weapon_class"			"prop_minigun"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	"L4D1 Mounted Gun"
	{
	"weapon_class"			"prop_minigun_l4d1"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	"L4D2 Mounted Gun"
	{
	"weapon_class"			"prop_mounted_machine_gun"
	"modifier_friendly"		"0.0"
	"modifier_enemy"		"1.0"
	}
	"Hunter"
	{
	"weapon_class"			"weapon_hunter_claw"
	"modifier_friendly"		"0.5"
	"modifier_enemy"		"0.5"
	}
//	"Common Infected"
//	{
//		"weapon_class"			"infected"
//		"modifier_friendly"		"0.5"
//		"modifier_enemy"		"0.5"
//	}
//	
//	"Witch"
//	{
//		"weapon_class"			"witch"
//		"modifier_friendly"		"1.0"
//		"modifier_enemy"		"1.0"
//	}
//	
//	"Tank"
//	{
//		"weapon_class"			"tank"
//		"modifier_friendly"		"1.0"
//		"modifier_enemy"		"1.0"
//	}
//	
//	"Tossed Cars and Stuff"
//	{
//		"weapon_class"			"prop_physics"
//		"modifier_friendly"		"1.0"
//		"modifier_enemy"		"1.0"
//	}
//	
//	"Smoker"
//	{
//		"weapon_class"			"smoker"
//		"modifier_friendly"		"1.0"
//		"modifier_enemy"		"1.0"
//	}
}
Much of it works definitely, but when changing damage with "weapon_hunter_claw" pouncing damage is greatly reduced as well.
Shao 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 05:31.


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