Project Zomboid

Project Zomboid

39 ratings
Dragons Simple Weapon Durability
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
212.888 KB
13 Jul, 2023 @ 8:17am
28 Jan, 2024 @ 11:16am
6 Change Notes ( view )

Subscribe to download
Dragons Simple Weapon Durability

Description

This is an extended version of Simple Weapon Durability by Ashleigh.

Description
Adds settings that dynamically adjust durability-related stats on weapons through code, no file replacements. Can apply to both vanilla and modded weapons. Works in multiplayer.

A weapon is usually an item you can equip onto your hands and use to deal damage to e.g. zombies, at the chance of it losing durability (HP). Screwdriver, hammer, bat, crowbar, handgun, axe, spear, kitchen knife - are all examples of items in the "weapon" category.

In rare cases, a modded item might be considered a weapon if it was implemented in a funky way to have the durability stat, but otherwise, this mod only affects "weapons"

What is included/changed?
A good bit was reworked to allow multiplayer use, while still retaining simple option menu changes. Several new settings were also added. The full list of features in this mod are:

- Filter changes to apply to Melee, Ranged and Modded weapons.
- Filter which melee weapons to apply changes to (SmallBlunt, Blunt, SmallBlade, LongBlade, Axe, Spear)
- Increase "Condition Max". (base HP/durability)
- Increase "Condition Lower Chance". (probability of changing HP/durability)
- Flat and multiplication increases.
- Changing settings no longer require game restart, just reloading the save if changed after loading a save.
- Some filtering optimizations to make durability adjustments a bit faster.
- Works in multiplayer using vanilla sandbox settings, while retaining Mod Options settings for singleplayer.

Flat increases are applied AFTER multiplication.

Customization
You can configure singleplayer settings such as durability multiplier through Mod Options. Servers use vanilla sandbox settings.

- Install Mod Options.
- Open Project Zomboid.
- Enable "Mod Options" in the mod menu.
- Go to "Options".
- Go to "Mods".
- Adjust settings for "Dragons Simple Weapon Durability" to your liking.
- Apply.

NB: If you change settings while a save is loaded, you will have to reload the save for changes to apply. No need to shut down the game though.

NB: If you want to change the settings for a server, you need to use the sandbox settings instead. Remember to have the mod enabled if you use the "Host" approach, as the sandbox settings wont show/get added otherwise.

Default Settings
- Include Melee = true
- Include Ranged = true
- Include Modded = true
- Condition Max flat increase = 10
- Condition Lower Chance flat increase = 5
- Condition Max multiplier = 2x
- Condition Lower Chance multiplier = 1x
- Include SmallBlunt= true
- Include Blunt= true
- Include SmallBlade = true
- Include LongBlade= true
- Include Axe= true
- Include Spear= true

Compatibility
- Weapon Stats Tooltip - Will not display the correct values for HP and Durability Change Chance.
- Existing save compatible, though changes to e.g. "Condition Max" wont "repair" you existing items,
- Soft conflicts with mods that add durability to existing weapons. You'll end up with insanely durable weapons.
- Conflicts with mods that add "Weapon" type items that are not actually weapons -- may result in some odd behavior. Report issues if experienced.
- Keep in mind that if you have modded weapons with already generous durability, they might become significantly more generous.

Complimentary Mods
Show Weapon Stats Plus - Will allow you to see durability stats on any item. I personally use this while testing, and have had no issue with it so far.

Known Issues
Firearms will randomly have their durability set to 0. You can disable modification of ranged weapons until a fix is found, but I have been unable to reliably re-create the bug, as it feels rather random.

How can I support your work?
If you enjoy the content I put out, consider supporting me, it would be greatly appreciated!

[ko-fi.com]


Workshop ID: 3003693661
Mod ID: dragons_simple_weapon_durability
Popular Discussions View All (1)
9
27 Sep, 2023 @ 5:23pm
Brita's weapons will randomly lose durability
GreatBadWrench
71 Comments
DragonKing  [author] 1 May @ 2:05am 
@Damo Martin - not in the way you probably mean. The durability changes affect everything that is chosen to be affected, but you can't change the durability per category directly.
Damo Martin 28 Apr @ 8:59pm 
are there settings for melee weapons separately to ranged weapons
DragonKing  [author] 14 Nov, 2024 @ 8:15pm 
@MooseJuice - so you say some things work, and some don't? Consider creating a discussion where you share what other mods you added, otherwise I can't really do anything about it.
MooseJuice 11 Nov, 2024 @ 8:32pm 
the mod was working as intended for a day or so on my multiplayer server, then I added another handful of mods after it and now some aspects of the mod settings wont work. The x100 multiplier to the durability just doesn't work and the decrease to durability loss probability wont change as needed, but the additional 50 base durability works fine. I even put the mod to the top of the load order list. Not sure how to make it work again
DragonKing  [author] 27 Sep, 2024 @ 4:08pm 
@juskom95 explain what contradictions.
juskom95 27 Sep, 2024 @ 1:49pm 
You might want to put up an explanation as to what your options do, because those settings are clear as mud. You have contradictions in there.
Kyu 7 May, 2024 @ 4:03pm 
@DragonKing - The only thing I can think of is you having changed the timing of when item changes are injected. I remember having theoretical concerns when looking at all the different events when it came to when I modified the item attributes, mostly in fear of stacking changes as someone quits and loads into their saves.

I think that's why I ended up injecting on game start. Maybe quit and load your save a whole bunch of times and see if something weird happens?
DragonKing  [author] 15 Apr, 2024 @ 4:21am 
@MrCat thanks for the testing. Odd that it happens to your melee weapons, as I have played a long while with the mod, without that happening. The thing that strikes me the most, is that the mod shouldn't be running any code after you load into your save, which is why it is so difficult to track down why the durability suddenly goes to 0 :(
MrCat 13 Apr, 2024 @ 7:54pm 
and now the weapons are broken...
MrCat 13 Apr, 2024 @ 6:01pm 
I was doing a test run and the weapons were spawning in broken. So then i played around with "flat" settings because i dont know what they mean to be honest. Then the weapons were spawning in fine. So i kept playing and when i went out of my house for a loot run i come back to some broken.. Im now using 0 and 0 for the flat and nothing seems to be broken for now.