Survivalist: Invisible Strain

Survivalist: Invisible Strain

Not enough ratings
SIS Weapon Durability
   
Award
Favorite
Favorited
Unfavorite
Tags: IsMod
File Size
Posted
Updated
4.968 MB
25 May @ 3:14pm
25 May @ 3:50pm
4 Change Notes ( view )

Subscribe to download
SIS Weapon Durability

Description
What is this?
This mod adds weapon durability and repair to the game. Your weapons can now break, adding a whole new dimension to your gameplay!

Recommended to start a new game.

Features
  • Weapons now have durability and will degrade by usage. Different weapons have different durabilities. All can be tweaked through the settings.
  • Can affect player community and / or NPCS.
  • Weapon price and damage affected by their durability.
  • Repair melee weapons by using Duct Tape or guns with Gun Repair Kits. Can be found in the world or crafted at the workbench.
  • Visible Durability bar for weapons. Changes color as the durability goes down.
  • Adds 7 new equipment items: Animal fat, Glue, Homemade Glue, Junk Parts, Gun Parts, Duct Tape and Gun Repair Kit.
  • Supports any weapons added by mods.

Detailed Information

Every weapon in the game now has durability, the speed at which it degrades, and the amount of parts that are given when it breaks. Each weapon type has its own maximum durability, with some weapons breaking much faster than others (such as planks or frying pans).

Whenever a weapon breaks, there's a chance it will drop parts which can be used at a workbench with Glue to create Duct Tape (will require some construction skill), or Gun Parts which can be combined to make Gun Repair Kits.

Weapons are repaired by using Duct tape or Gun Repair Kits which can also be found around the world or bought from traders. To repair a weapon, just select the "Repair" action in the inventory page for that specific weapon. If you have the necessary items in your inventory, the weapon will be repaired to a certain state. A gun repair kit always fully repairs a gun, but duct tape only repairs a melee weapon partially.

When selling weapons, their durability affects their prices. A very damaged weapon won't be as valuable as another one in pristine condition. Same thing happens with their damage, the less durability they have, the less damage they will do.

Co-op
It might now be compatible with co-op, but I'm not entirely sure. Let me know in the comments if you run into any issues.

Recipes
  • Make Homemade Glue. Made at campfire with pot. Requires 2 Animal Fat + 100 Water.
  • Make Gun Repair Kit. Made at workbench. Requires Construction level 3 + 5 Gun Parts.
  • Make Duct Tape. Made at workbench. Requires Construction level 3 + 10 Junk Parts + 1 Glue (or Homemade Glue).

Modded Weapons Support
It supports any weapons added by other mods, and will give default configurations for weapons that aren't found in the settings file. For any modder adding weapons to the game, you can set the durability configuration of your weapons by creating a file named "SISWeaponDurability_WeaponsAddon.xml" inside your mod folder.

Follow the example file that is provided with this mod.

Settings
The settings file can be found inside the mod's folder under "Settings_SISWeaponDurability.xml".
  • EnabledForPlayerCommunity. Whether weapons will degrade for you and characters in your community. (default true)
  • EnabledForNPCs. Whether weapons will degrade for npcs. (default false)
  • EnabledForMeleeWeapons. Whether durability is enabled for melee weapons. (default true)
  • EnabledForAmmoWeapons. Whether durability is enabled for guns. (default true)
  • GlobalDurabilityDegradeRate. General durability degrade rate. (default 1.0)
  • WeaponsSpawnWithLessDurability. Whether weapons spawn with less durability. (default true)
  • HitLocationAffectsDegradation. Whether hit location (head, top, bottom) affects degradation of weapons. (default false)
  • WeaponTypes. List with the settings for each weapon.

WeaponTypeSettings
This is the durability configuration for a weapon, where you can set its maximum durability, degradation rate, amount of parts given on break.
  • WeaponType. The weapon's prototype name.
  • DegradeRate. The speed at which the weapon degrades.
  • MaxDurability. A weapon's maximum durability.
  • MinPartsOnBroken. Minimum amount of parts obtained when the weapon breaks.
  • MaxPartsOnBroken. Maximum amount of parts obtained when the weapon breaks.

Notes
The mod changes quite a few things, so there could be a bug or two. Report any issues in the comments section!

Compatibility
Could have some incompatibilities with mods changing combat behaviour, otherwise you're all set :)
13 Comments
SweetCaptn  [author] 16 Jun @ 4:11am 
Hmm I'll possibly release the reworked Pick Trash and Clean Trash mods by this weekend, it won't take long (and it really just depends on my motivation to do them).

For the gun parts I'm not sure, I'll leave that be until I've figured how I want to continue with it. The only thing it does is add weapon attachments and it was meant to be used by other modders to create their gun models with these attachments (because I'm including the FBX models as well)
Khadafi 15 Jun @ 6:33am 
alright then. Any idea when you are going to rework the gun parts and pick trash mods?
SweetCaptn  [author] 15 Jun @ 6:29am 
The issue is the item already exists in the world, so removing / renaming one would just break saves. I honestly recommend to stop using the Gun modification parts mod since it wasn't well thought out and I haven't touched it in a while
Khadafi 15 Jun @ 6:22am 
Thank you for your quick response. From what I can tell , the other duct tape item is from your gun modification parts mod. Maybe it would make sense using the same item for both?
SweetCaptn  [author] 15 Jun @ 5:30am 
If you figure out what other mod is adding duct tape, tell me its name and I'll make theirs compatible. If the duct tape has the icon shown in the pictures above, it should work
Khadafi 15 Jun @ 5:05am 
Question: I've got duct tape in my inventory, but whenever I'm trying to repair a rolling pin, it says "You need duct tape to repairs this". Any idea what the issue is?
Edit: It appears, probably because of multiple mods, I'm having different (duplicated) duct tape items
lamemoirdesyeux 13 Jun @ 11:46am 
Thanks SweetCaptn - thats awesome infromation. So nothing really gamebreaking - problem 2) I already solved however I didn't know about "BreakEquipment" function bug - i am gonna check it out. Thanks again this is massive help to my mod :steamthumbsup:.
SweetCaptn  [author] 8 Jun @ 12:42am 
Hey @lamemoirdesyeux, so the previous mod had a couple of issues but the most important ones:

1) Wasn't compatible with co-op. Still not sure if this one is, but it will be easier to make it compatible (waiting on crash reports).
2) The way repairing weapons worked. You had to go to the workbench, but wouldn't really know which weapon you were repairing. This is now changed with a new action through the inventory page.

It also had a bug when guns broke, but that is easily fixed. Don't remember exactly where the issue was, but it must've been in the "BreakEquipment" function.

Hope this clears it up!
lamemoirdesyeux 7 Jun @ 12:18pm 
SweetCaptn i ve got a question - i have an older version of this mod - from before reworked - and it was flagged by you as bugged - can you elaborate what was a problem with that older version - was it game breaking etc? Its important for me because i am writing my own mod based on that older version of yours and its pretty advanced. Thanks.
Captain Rex 26 May @ 9:36am 
Interesting, a very cool idea that will for sure change the looting aspect of the game for the better. Thank you for making it!