Show off your colony's weapons arsenal with these presentation-oriented storage racks!
Mod Contents
Weapon Racks adds three new stuffable 1x1 tile storage shelves with 2, 3, or 4 slots for storing weapons. They increase the beauty in a room and let you present the stored contents in a variety of aesthetically pleasing configurations:
[img]https://i.imgur.com/lOzb2PQ.png[/img]
Mod settings allow you to adjust the size, position, and alignment of individual weapons in different orientations for the perfect presentation!
Mod Compatibility
Weapon Racks for RimWorld v1.6 only requires [url=https://steamcommunity.com/workshop/filedetails/?id=2009463077]Harmony[/url] as a dependency.
Weapon Racks for RimWorld v1.5 and earlier requires [url=https://steamcommunity.com/workshop/filedetails/?id=1617282896]LWM's Deep Storage[/url] to function.
Weapon Racks are compatible with Combat Extended, and CE ammo can both be stored in Weapon Racks and visually adjusted in mod settings.
Technical Details
Weapon Racks cancel the rendering of compatible items stored within them and print them to the Items mesh layer themselves using saved layout data.
Preset adjustments for many vanilla weapons are included with this mod. All ammunition from Combat Extended is also preset to 50% draw size. In addition, weapon mod authors can include preset adjustments for their weapons by using the following Def:
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<!-- Compatibility Defs for Weapon Racks -->
<WeaponRacks.WeaponAdjustmentDef MayRequire="Aelanna.WeaponRacks">
<defName>ExampleDefName</defName>
<thingDef>ExampleDefName</thingDef>
<sizeFactor>1.0</sizeFactor>
<horizontalOffset>0.0</horizontalOffset>
<verticalOffset>0.0</verticalOffset>
<rotationHorizontal>0</rotationHorizontal>
<rotationVertical>0</rotationVertical>
</WeaponRacks.WeaponAdjustmentDef>
</Defs>
Using a WeaponAdjustmentDef does not require setting Weapon Racks as a dependency; it will be safely ignored if Weapon Racks is not loaded.
Credits & Links
As usual, many thanks to the members of the #mod-development channel on the Rimworld Discord server!
If you enjoy this mod, please check out [url=https://steamcommunity.com/id/aelanna/myworkshopfiles/?appid=294100]my other Rimworld mods on Steam Workshop[/url]!