RimWorld

RimWorld

Not enough ratings
Gun Magazines
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.1, 1.2, 1.3
File Size
Posted
Updated
396.253 KB
16 Apr, 2021 @ 2:48am
9 Feb, 2022 @ 10:02am
2 Change Notes ( view )

Subscribe to download
Gun Magazines

Description
# Description
Adds a simple gun magazine system that doesn't require any real resource to use, in line with other things in vanila RimWorld. In combat NPCs fire as long as there is still ammo in the chamber, reload, rinse and repeat. Weapons use ammo per projectile released, and burst fire weapons still retain this capability unchanged, well, as long as their volley doesn't use more ammo then is available in the magazine, then it will be cut short after the last bullet is used up.

# Features
* Simplistic ammo system that doesn't require any real ammo gathering. NPCs magically pull bullets out their pockets before loading them into their guns.
* NPCs have minimal cooldown between volleys as long as there is still ammo loaded.
* NPCs take aim between each volley anew, but this time is less than it would be in the same situation w/o the mod, as the cooldown period is skipped while the gun still has some ammo left, so only the warm-up period is entered there.
* NPCs enter the regular cooldown period on running out of ammo to reload.
* Ammo capacity and remaining ammo can be currently seen by inspecting the weapon stats.
* Compatible with most of modded weapons as long as they use the vanilla shooting verb; no modded weapons are supported explicitly as of yet though, but others may easily add patches to them in order to make them run on this system.
* Most of the vanilla weapons are made to use this system out of the box. I didn't however carefully tweak each of them, so I'd like to gather feedback on what needs to be changed for the greater good.

# Known issues
* Reportedly the chain shotgun can shoot more times than it has ammo loaded. Couldn't replicate, if you manage to please contact me!

# Planned
* Extended compatibility with "RunAndGun" and "Dual Wield".
* Controls to reload a given gun on demand.
* Ammo indicator.
* Patches to include certain modded weapons.
* User settings to tweak weapons magazine capacity.
* More options like ammo used per shot.
* Items like attacheable extended magazines and so on.

# For modders
In order to add support for this mod to your weapons you need to:
* Define this mod as a dependency in your mod's metadata.
* Add the component to your weapons: `ZzZomboRW.CompProperties_GunWithMagazines`.
* Define a stat for ammo capacity of the gun: `<ZzZomboRW_GunWithMagazines_MaxAmmo>10</ZzZomboRW_GunWithMagazines_MaxAmmo>`, replace the number with the maximum amount of ammo in the magazine. Goes into the `statBases` tag.
* ???
* PROFIT!
35 Comments
PremierVader 2 Nov, 2023 @ 2:03pm 
Hey can someone ask Mlie again to update and continue this mod please
Diamondman0607 20 Jun, 2023 @ 6:17pm 
does it work for 1.4
Sky 22 Apr, 2023 @ 2:23pm 
Any updates yet?
DisKorruptd 7 Oct, 2022 @ 2:22am 
I, the commissioner, have asked the author about having it continued by someone else, and he has said yes, I've asked Mlie and his group to continue it, here's hoping...
mrqwer4 6 Aug, 2022 @ 7:34am 
Doesnt work
JessieFeathers 26 Jun, 2022 @ 10:16pm 
This mod does not work at all, when colonists shoot they instantly are despawned. Or when you tell them to reload, they will be despawned. Using only vanilla guns
MoonAddict 21 Apr, 2022 @ 2:21pm 
I do hope you'll continue this mod as it is the only one of it's kind on the workshop right now.
All the tactical flexibility of CE mags with none of min-maxing logistical nightmares.
洪世友-害兽退治者 21 Apr, 2022 @ 6:44am 
Look good
ZzZombo  [author] 12 Apr, 2022 @ 9:05am 
I can't answer any of the questions, I do not currently have any capable computer. My work station was... lost... and the currently used laptop is dying. And due to the circumstances (if you get what I mean) out of my control getting new hardware is complicated. I have no modding plans in the foreseeable future, sorry, although I'd quite like to return to it (and playing RimWorld).
brucethemoose 24 Mar, 2022 @ 10:45am 
Some patch in this mod seems to be broken, with no mods other than the requriements and hugslib:

https://gist.github.com/HugsLibRecordKeeper/327abfafc9ed39e07d5e7a01a3474501