Project Zomboid

Project Zomboid

Internal Rifle Magazine
32 Comments
JF 14 Jul @ 7:09pm 
no se como arreglar las carpetas del juego para que el mod funcione correctamente

alguna ayuda por favor?
JF 14 Jul @ 5:06pm 
hola, instale el mod como hago que funcione correctamente?
moodwany 26 Oct, 2024 @ 12:19pm 
Does this work with like:
Totally Guns (Arms of 3rd Republic, Axis Firearms)
VFE
and etc
Johnny Dollar  [author] 27 May, 2024 @ 12:26pm 
@Nibel-K
Just tested, and it's not this mod causing that.
If you have any gun overhaul mods, sometimes they change the weapon upgrade system where you need custom modded items to change attachments.
Nibel-K 24 May, 2024 @ 1:13pm 
Not sure if it is cause of this mod but now i cannot customize ny guns (add and remove attachments)
vsnegupal 5 Nov, 2023 @ 12:33am 
Greetings. Can you please give me permission to include this mod in the modpack for my personal server? There will be a link to this mod in the modpack description, and I will always be in touch for original mod authors. You can post your approval/disapproval here or in private messages.
55zanaris99 7 May, 2023 @ 5:33pm 
Does this work with VFE?
ScriptedMarine 2 Dec, 2022 @ 7:00am 
Sorry for russian, but
Я, наверное, не в том порядке загрузил модификации, что ли... Почему на MSR 700 вместимость на 10 патронов, а у MSR788 тем паче на 20?? Я вроде не устанавливал никаких оружейных модов..
Aurora Wolf 29 Oct, 2022 @ 3:23pm 
hi, i don't think this mod works on the msr788 rifle (the .308 one), is it because this mod is out dated?
Johnny Dollar  [author] 4 Sep, 2022 @ 5:12am 
@FrancisPJ
Hello Francis, thank you very much for your kind words.
It's been quite some time since I worked on this mod, but I remember having the same problem with Firearms B41.

I believe I changed this by changing the Mod ID instead of the folder name or title name.

As an example for simplicity, Firearms B41 would be loaded before InternalRifleMagazine because of the alphabet, but Vanilla Firearms would be loaded after.
Once again, this has something to do with the Mod ID instead of folder name or title name.

Feel free to mess around with the code as much as you want to.
Finally, if all else fails, you could go into the Vanilla Firearms files and change the values there.

Just make sure to make it in a separate folder, so your changes won't get overwritten once the mod updates.
KarpJoe 3 Sep, 2022 @ 8:59pm 
Love your mod. If I wanted to force yours to overwrite another, Vanilla Firearms Expansion, how would I go about doing that? Would I need to make a version that has a different name? I just tested activating yours after VFE but it didn't work sadly.
Upsilon2514 20 Jun, 2022 @ 12:51pm 
Like the mod, I hated having 3 rounds only. Although I wish you would've just made a 5 round magazine instead of built in one for the MSR788. Now I have a bunch of empty .308 magazines lying around cluttering my storage. Would love an alternate version of this mod that included that.
Денчик 29 May, 2022 @ 5:00am 
Is it possible to integrate this mod (code) into the game files?
Ronald McDonald 20 May, 2022 @ 9:57am 
in case you're at all interested, you can check it out https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2809797111
Ronald McDonald 20 May, 2022 @ 9:57am 
@Johnny Dollar some changes I made include allowing the sawed-off double-barrel to be wielded one-handed with a tool or flashlight in your offhand. it can also be put in a vanilla holster now too, freeing up the back slot for a melee weapon or something. I like the idea of the sawed-off DB shotgun being a last-resort 2-shot deal with super limited range, but basically 100% chance to hit just about anything in the room as long as it's generally in front and within about 8 feet haha. the sawd-off pump shotgun has medium range, and does extra damage to doors for 'master-key' entry through wooden house doors.

all guns have different aim skill scaling now, so some are user-friendly at low level but don't scale up as much, and others are more for high-aim skill characters that are gun-focused.
Ronald McDonald 20 May, 2022 @ 9:54am 
@Johnny Dollar
thanks! yeah, i was looking at the github page and saw that they used the */ to comment stuff out. Was pretty sure that's what you'd done. I have made all manner of other little tweaks to the other vanilla guns now as part of my own mod, which hopefully will make all of them more "worth using" in their own ways. tried to make their pros/cons more distinguished so that there's always a better tool for a given job, rather than just having 2-3 guns that are the all-around 'best' period.

CONT
Johnny Dollar  [author] 17 May, 2022 @ 1:41pm 
@Ronald McDonald
Most of the time, PZ mods tend to overwrite each other alphabetically, meaning if you named yours something that comes before "i" as in internal, then my mod would overwrite yours.

Because my mod only affects the bolt action rifles, I think you should make your own complete overhaul and remove mine from your server to avoid conflicts.

Feel free to copy the code you found in my script and use it in your own, and thank you for reaching out!
Johnny Dollar  [author] 17 May, 2022 @ 1:41pm 
@Ronald McDonald
Hello Ronald McDonald!
It's always great to see someone else interested in modding for PZ, and it's a great game to learn since it's simple most of the time.

You're correct.
For the VarmintRifle, the magazine is already commented out from vanilla with "*/" so all I did there was change the capacity from 3 to 5.

With the HuntingRifle I just commented the line that says MagazineType = Base.308Clip,
and then once again changed the capacity from 3 to 5.
A very simple tweak, but it has to be done as a mod since messing with vanilla files directly rarely works out instead of overwriting with a new script.

CONT.
Ronald McDonald 17 May, 2022 @ 7:36am 
@Johnny Dollar
hey, I just wanted to ask you a quick question- I think I figured out how you achieved this in the items.txt file, and I wanted to double check if I've understood it correctly. You've just basically removed the line of code that specifies a magazine at all, correct? you put the "*/" at the start and end of the "magazinetype" variable line or whatever to occlude it from the settings, right?

I'm making my own mod that is a balance overhaul of all the vanilla weapons, and I'm trying to understand how some of it works. I am fairly sure that this is what your mod did to that script file, and want to either remove this mod from our modpack to prevent conflict with my new one. We've loved playing with your mod, but I'm worried it will create conflicts with mine if I start making edits to the bolt action rifle stats such as sound radius, damage, etc...
Kafkatrap 23 Feb, 2022 @ 3:18am 
Does this mod remove the 3 round .388 magazines?

If the guns have an internal magazine with the mod you wouldn't want that trash lying around :P
Royinszki 18 Jan, 2022 @ 1:25am 
How can we make it compatible with the "Vanilla Firearm Expansion" mod ?
Johnny Dollar  [author] 7 Jan, 2022 @ 11:32am 
@LancerBlitz
You're very welcome!
۞ Kalif 7 Jan, 2022 @ 8:19am 
Just want to say, appreciate the God's work
single cell organism 2 Jan, 2022 @ 8:26pm 
wonderful stuff, thank you
Johnny Dollar  [author] 2 Jan, 2022 @ 7:52pm 
@quincee
Correct!
Just like old rifles, and many modern hunting rifles, it doesn't have a box magazine that you stick in, but you load the bullets into the gun, which holds them instead!

Exactly like famous rifles from other games and history, such as the Mosin Nagant, and Kar98 and the SKS like you mentioned.
single cell organism 2 Jan, 2022 @ 6:28pm 
OK, I'm going to seem like an illiterate idiot here, but to straighten this out; this mod makes it so weapons that should be able to loaded without a magazine - bolt actions, things like Garands, SKS etc (I know, SKS rifles are not in the game) can be loaded one bullet at a time without a magazine? Because this has been grinding my gears in the game.
Johnny Dollar  [author] 20 Dec, 2021 @ 5:01am 
@temitime
Thank you very much for letting us know!
charlie 20 Dec, 2021 @ 1:43am 
i have figured out the problem. conflicts with vanilla weapons expanded. unfortunately i enjoy the changes that mod brings so i wont be using this mod (as much as i would like to use them together). thank you for your time and effort.
Johnny Dollar  [author] 20 Dec, 2021 @ 12:26am 
@temitime
Then you have to find out why it's not working for you.
A large group of friends and I have been using the mod together, and it works just fine.
Make a test save with only this mod enabled, and enable all your other mods until you find the one breaking the mod.
Hope it works out for you :)
charlie 19 Dec, 2021 @ 10:09pm 
does not work. just tested. very unfortunate
Johnny Dollar  [author] 13 Dec, 2021 @ 6:30am 
@Pantufla
Most likely!
BurbujaPEEK 13 Dec, 2021 @ 6:23am 
works with 41.60?