Left 4 Dead 2

Left 4 Dead 2

Melee Weapons can Break
 This topic has been pinned, so it's probably important
ChimiChamo  [developer] 4 Nov, 2023 @ 4:32pm
Default Durability Values
The default durability of values of all weapons, in case you changed it at some point or were curious:

fireaxe = 60
fryingpan = 45
machete = 50
baseballbat = 35
crowbar = 80
cricketbat = 35
baton = 30
katana = 45
guitar = 20
knife = 45
golfclub = 40
pitchfork = 25
shovel = 40
defaultwep = 50 //used for melees that aren't official, like those in custom campaigns

You can change the values to be random by replacing the number with RandomInt(min,max). You replace min and max with the range of numbers you want so for eg RandomInt(30,40).
Last edited by ChimiChamo; 7 Nov, 2023 @ 9:01am
< >
Showing 1-15 of 17 comments
AngeloGS 4 Nov, 2023 @ 7:01pm 
a
ChimiChamo  [developer] 4 Nov, 2023 @ 7:02pm 
a
Kittycat Kye 4 Nov, 2023 @ 7:28pm 
Now people will have a reason to use the crowbar. <3
senzawa 4 Nov, 2023 @ 7:42pm 
the pitchfork was one of the worst melees
now it's *the* worst melee ever XD
TBK Duy 4 Nov, 2023 @ 8:25pm 
I don't know if I use some Weapon Drop plugin, will it reset those values upon weapon drop by plugin feature itself, make this mod useless completely ?
逍遥HEHE 5 Nov, 2023 @ 8:51am 
我发现当使用近战武器攻击Tank或者Witch的时候,耐久值损失的更快,比如使用吉他攻击Tank 10次左右就会坏掉,如果使用吉他攻击的是Witch,那么短短3次就会坏掉。另外你使用近战武器打到防暴警察感染者的正面护甲,你的近战武器并不会损耗耐久值。
I found that when using melee weapons to attack Tank or Witch, the durability lost faster, for example, if using guitar to attack Tank for about 10 times, it would break, if using guitar to attack Witch, it would break after only 3 times. In addition, if you use a melee weapon to hit the front armor of a riot cop infected, your melee weapon will not lose durability. (Machine translation)
ChimiChamo  [developer] 5 Nov, 2023 @ 8:54am 
Originally posted by 逍遥HEHE:
我发现当使用近战武器攻击Tank或者Witch的时候,耐久值损失的更快,比如使用吉他攻击Tank 10次左右就会坏掉,如果使用吉他攻击的是Witch,那么短短3次就会坏掉。另外你使用近战武器打到防暴警察感染者的正面护甲,你的近战武器并不会损耗耐久值。
I found that when using melee weapons to attack Tank or Witch, the durability lost faster, for example, if using guitar to attack Tank for about 10 times, it would break, if using guitar to attack Witch, it would break after only 3 times. In addition, if you use a melee weapon to hit the front armor of a riot cop infected, your melee weapon will not lose durability. (Machine translation)
The durability lost is doubled when attacking tanks, shouldn't be for witches though
逍遥HEHE 5 Nov, 2023 @ 9:18am 
Originally posted by ChimiChamo:
Originally posted by 逍遥HEHE:
我发现当使用近战武器攻击Tank或者Witch的时候,耐久值损失的更快,比如使用吉他攻击Tank 10次左右就会坏掉,如果使用吉他攻击的是Witch,那么短短3次就会坏掉。另外你使用近战武器打到防暴警察感染者的正面护甲,你的近战武器并不会损耗耐久值。
I found that when using melee weapons to attack Tank or Witch, the durability lost faster, for example, if using guitar to attack Tank for about 10 times, it would break, if using guitar to attack Witch, it would break after only 3 times. In addition, if you use a melee weapon to hit the front armor of a riot cop infected, your melee weapon will not lose durability. (Machine translation)
The durability lost is doubled when attacking tanks, shouldn't be for witches though
I tried to attack the Witch with other melee weapons, using the fire axe to attack the Witch about 11 times, and using the crowbar to attack the Witch about 19 times. (Machine translation)
XARK 22 Nov, 2023 @ 11:53am 
I thought the values ​​were how many times it is possible to use the item until it breaks according to the guidance on using RandomInt(min,max), but the value is already a percentage? I also tried changing it to a value that I liked better, but none of the settings worked...

I believe you added unnecessary complexity to the idea. I think most who downloaded this mod expected something like adding random charges to the weapon, and after finishing it it breaks, but the way it was done is very strange to configure. The use is also strange, as it doesn't wear out if it hits walls or even when used freely (if it's swinging, it's wearing out, even if it's just a little)

I really liked the mod, but it's strange to use and configure...I couldn't use it unfortunately...
Jerkakame² 1 Dec, 2023 @ 4:09am 
Im playing with Custom Weapons Base and some of those weapons will break, especially the flamethrower. But changing the defaultwep doesnt work, I also tried adding the names of the custom weapons but that didnt work either.
Jerkakame² 1 Dec, 2023 @ 5:47am 
defaultwep seems to be working, I think the problem I had is that the durability cfg keeps randomly reset to default values
Jerkakame² 1 Dec, 2023 @ 6:28am 
I think I fixed it, it would reset when I added the custom weapon names. and when I had "RandomInt(30,40)." with the dot at the end

Im a very big dumdum
I have the question, does this include the riot shield?
zuaL 14 Jun, 2024 @ 9:02pm 
So the setting for it to be random is:
fryingpan = RandomInt(30,40).
Is this what you mean? I don't know if it need to be a dot "." or not :D.
Jerkakame² 14 Jun, 2024 @ 9:21pm 
Originally posted by zuaL:
So the setting for it to be random is:
fryingpan = RandomInt(30,40).
Is this what you mean? I don't know if it need to be a dot "." or not :D.

no dot
< >
Showing 1-15 of 17 comments
Per page: 1530 50