Barotrauma

Barotrauma

108 ratings
Quality Ammo Boxes LUA
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
6.422 KB
29 Mar, 2023 @ 9:27am
1 Jul, 2023 @ 12:18am
5 Change Notes ( view )

Subscribe to download
Quality Ammo Boxes LUA

Description
Requires LUA for both Server AND Client

Introduction

This mod enables ALL craftable ammunition boxes to be of quality; similar to my previous mod Quality Ammo Boxes but this one supports all ammo boxes and is way more compatible with other mods, thanks to the usage of LUA.

Requirements

Features
  • Enables all ammunition boxes to be of quality.
  • Each quality level gives +10% max condition to a crafted box, making them last longer when used in turrets.
  • For crafting, the ammo boxes are considered "weapons" so any talent that gives a quality boost to that category of items will also apply to all the ammo boxes (such as the Engineer's Weapon Artist or the Security Officer's Weaponsmith).

Compatibility
It should be comtaible with all mods. As it only checks for ammo boxes that have the 'ammobox' tag on them, which should be all of them. But there are always corner cases, but for now we have not found any of them

Known mods that are compatible:

How to make other mods compatible with Quality Ammo Boxes+
If an item has either the "ammobox" or the "coilgunammobox" tag, this mod will make it so it can be crafted with quality.

If for some reason you do not want that to happen, you can add the 'noqualityammobox' tag to the ammo boxes you do not want to be of quality.

Known Issues
  • If a client does not have client-side LUA, the game will crash when that client tries to fire a turret with quality ammo.

FAQ

Q: I My game crashes as soon as I fire a bullet w/ a turret... Why?
A: When playing on servers, make sure LUA for Barotrauma is enabled on your client, if not, firing a turret will cause the game to crash. Info on how to install LUA for clients Here .

Q: Is there a version of this mod that does not use LUA?
A: There is ( Quality Ammo Boxes ) but it will only be compatible with the vanilla ammunition boxes and it might cause issues with other mods that modify them.

Q: I've installed it but my ammunition cannot be crafted of quality... Why?
A: Make sure LUA for Barotrauma is enabled for the client, if not, the ammo boxes will last longer but it will not show any changes in the UI.

Report Bugs / Compatibility Issues
Please refer to the discussion thread of the same name, it is way easier to me to manage it all that way. Thanks :)

Feel free to comment anything else though. Enjoy!



Check out my other mods:
Quality Railgun Shells
Quality Ammo Boxes
Bigger Heavy Wrench
Old+New Clown Tree Talents
Old Clown Tree Talents
Popular Discussions View All (2)
6
26 Apr @ 10:48am
Bugs / Compatibility Issues
Azra
0
29 Mar, 2023 @ 9:49am
Feedback / Ideas
Azra
43 Comments
Lexington 24 May @ 6:56am 
mods is working fine for me too
NitotiN 10 May @ 1:48pm 
Can't craft ammo box with masterwork quality
lolic_lol 16 Feb @ 4:27am 
Mod is not completely broken, but error spam in console because of this mod really unpleasant.
Agitatio 17 Oct, 2023 @ 5:03am 
Mod is currently not broken. Doesn't cause my game to crash after firing a shot from a gun. Maybe read the description?
AeonianAura 18 Aug, 2023 @ 7:18pm 
Mod is currently broken. Causes my game to crash after firing a shot from a gun.
Hitilit 27 Jul, 2023 @ 5:32am 
OK, thx :cq2happy:
Azra  [author] 27 Jul, 2023 @ 4:47am 
@Hitilit The order should not matter; I have tested it with ammo mods above and/or below and worked every time. If you have any issues with a particular order, let me know :)
Hitilit 27 Jul, 2023 @ 4:43am 
?:cleanseal:
Hitilit 26 Jul, 2023 @ 5:31am 
byAzrael :
Should your mod be above or below ammo mods?
Azra  [author] 1 Jul, 2023 @ 12:19am 
@xajefontes | Ham Mafia | @Black Fixed!

Thanks @Jrant for the report :)