Project Zomboid

Project Zomboid

Firearms
2,251 Comments
GIRU 10 hours ago 
Would be nice for an updated version for latest build ! Thanks for the great mod
juliana1 4 Oct @ 8:45am 
Please update for 42.12
TikaTops 4 Oct @ 6:37am 
Need udpate for 42.12
Bedro45T 3 Oct @ 3:09pm 
This mod broke the mechanic system,an error pops up every time i right click on a car part,tested every mod and this one is main culprit,you cant repair or modify any car with this mod enabled
Rubber Flubber 2 Oct @ 4:52pm 
It's an issue with the repair recipes, TIS changed the formatting of them. I haven't removed my version of the mod yet because this issue persists.
cholgui 2 Oct @ 12:04pm 
does anyone know how to fix the bug that doesn't let u attach a gun to your holster/back if the condition isn't 10?
Rubber Flubber 2 Oct @ 11:23am 
All the weapons you mentioned I believe are vanilla ones aside from the changes this mod makes, so those might work regardless
Rubber Flubber 2 Oct @ 11:22am 
Oh sweet, I'll try it out too. I uploaded a fix for the mod, but if it works now I'll remove it.
✬𝒩ℴ𝓀𝒾𝒶✬ 2 Oct @ 9:25am 
I can confirm! Firearms now works with the new update. (by itself at least). the advanced trajectory mod is still non functional. I only tested three guns, the m9, a sawn off mossburg, and the m4. All worked without much issue, the m4 audio is slightly broken. Ill comment again if more serious issues arise, but as of now the mod works again.
✬𝒩ℴ𝓀𝒾𝒶✬ 2 Oct @ 9:04am 
Perhaps the new update to the unstable branch fixed the issues, time to check.
Shaggy 2 Oct @ 2:33am 
I got this mod without reading the comments so my b, but im still frustrated the mod crashes your game when aiming it literally ruined 10 hours of progress on one character. Welp, cool firearms tho
Sixty 1 Oct @ 10:25pm 
In Hyzo we TRUST
FURIA DE GH 1 Oct @ 6:22pm 
game crash when shoot in b42.12.0 :(
Pink Salmon 1 Oct @ 7:34am 
Game crashes when i shoot too :C
Powerhouse109 30 Sep @ 1:06pm 
Mine crashes when I shoot, too
IceCold 30 Sep @ 10:13am 
gamee craash when i shoot
kit_ma 30 Sep @ 3:59am 
mod is broken rn
Keinori 29 Sep @ 6:23pm 
Hyzooo, please update to 42.12 :steamsad: using the versions of your mod that include new weapons, when you right-click on an item that can be attached to the belt or back and it is damaged, the game returns an error message and the option to attach it does not appear in these cases.
Squidbilly 28 Sep @ 9:37pm 
dead mod
Ritualz 28 Sep @ 12:49pm 
It's the new location damage calculations. Renamed vanilla weapons still work normally (Beretta, Mossberg 500 etc). Shooting zombies in the torso with modded weapons work normally. Once you shoot a zombie in the head or arms/legs with a modded gun, the game freezes. The muzzle flash fixed nothing for me.
Mr.Krabs 28 Sep @ 9:45am 
so i added the muzzle flash but still crash after about 6 shots
Coffee 28 Sep @ 5:24am 
Yeah game crashes when I shoot :(
Duke 28 Sep @ 5:10am 
python hunter crashes the game
GONK DROID 28 Sep @ 4:40am 
if you use the Glock17 the game crashes
Rubber Flubber 28 Sep @ 2:07am 
@Hiram I'm not sure why that's the case for you, the 9mm suppressor on the Beretta is working fine for me.
leshi49 28 Sep @ 12:57am 
@Semidar It didn't work for me either. I added the code after the "IdleAnim" line and it worked.
Hiram 27 Sep @ 11:16pm 
Another thing that seems not to work : Suppressor, i tried with 9mm beretta, with % of suppressing changed from sandbox settings to 90%. Sound like normal shot and attract all zombies in the area like a normal shot
Shroom Snail 27 Sep @ 3:49pm 
I wouldn't recommend changing anything or using this mod at all atm as it makes repairs on vehicles impossible causing errors.
Semidar 27 Sep @ 3:35pm 
I tried with the Glock 17 and the game crashed, I set the parameter MuzzleFlashModelKey = muzzle_flash_handgun,
kleinrocke 27 Sep @ 3:26pm 
This mod seems to break vehicle mechanics for some reason. If it's the only mod I have installed, the only option on most vehicle components is 'Uninstall'. Even when I add the MuzzleFlashModelKey to all guns.
sito_cab 27 Sep @ 3:16pm 
When are you planning to update?
Hiram 27 Sep @ 1:44pm 
i can confirm that now work properly, without crash. I tried rifle, assault rifle and shotguns.
The important part is to be careful and to add the line to every single category weapon inside every each file.
As you said, inside every files there are a lot of weapon. I`ve missed some first time, and after i fixed them all, went smooth.
Bless upon you, may the Z never catch you!
Rubber Flubber 27 Sep @ 12:53pm 
muzzle_flash_varmint_rifle = lower caliber rifles and lever action rifles
muzzle_flash_revolver = M625
muzzle_flash_revolver_long = Anaconda, Python, M29, etc.
muzzle_flash_revolver_short = M36
muzzle_flash_hunting_rifle = Remington M24, M788, etc.
muzzle_flash_assault_rifle02 = 7.62x51 weapons
muzzle_flash_assault_rifle = AR-type weapons, AKs, SKS, SMGs
muzzle_flash_shotgun_double_barrel = Self explanatory
muzzle_flash_shotgun_sawed_off = Also self explanatory
muzzle_flash_shotgun = Pump-action shotguns
muzzle_flash_handgun = M9/Glock 17/Colt Ace
muzzle_flash_handgun02 = Colt M1911/Delta
muzzle_flash_handgun03 = Desert Eagle
Rubber Flubber 27 Sep @ 12:51pm 
For reference, here's a snippet from I think the same weapon yours is from.

/***********************Handling***********************/
MuzzleFlashModelKey = muzzle_flash_assault_rifle,
MaxRange = 25,
MinRange = 0.61,
MinAngle = 0.97,
MinSightRange = 2,
MaxSightRange = 10,

It may be that each gun needs the right muzzle model and I got lucky guessing each of mine, so I'll list what I assigned for each gun in my next comment.
Hiram 27 Sep @ 12:42pm 
@Rubber Flubber @Molto Inutile
I copy paste here the example section of Handling of the Assault Rifle file to see if you find mistakes to correct:

The lines is added as @rubber Flubber recommended under of Handling, using a comma. This is the copy paste (not formatted)

I m posting here to help others too, please correct if you see any mistake, because is not working for me

/***********************Handling***********************/
MuzzleFlashModelKey = muzzle_flash_assault_rifle,
MaxRange = 25,
MinRange = 0.61,
MinAngle = 0.985,
MinSightRange = 2,
MaxSightRange = 10,
MinimumSwingTime = 0.5,
SwingAmountBeforeImpact = 0,
ProjectileCount = 1,
SwingTime = 0.5,
AimingPerkCritModifier = 15,
MaxHitCount = 1,
ToHitModifier = 1.5,
-----
From here go on and on but i can`t use more than 1k characters lenght comment
Hiram 27 Sep @ 12:41pm 
@rubber flubber.
Thanks for your answer and to @MoltoInutile. (yes, im using FirearmBeta)
I`ve followed your istructions but sadly dind`t work.
ive added the command line to every txt file. I report them here for be more comprehensive:
AssultRifles
Deprecated Compat
Handguns
leverActionRifles
Revolvers
rifles
Shotguns
SMGs
Rubber Flubber 27 Sep @ 11:04am 
Yes thank you I forgot to mention that, my comment is about the beta branch
Molto Inutile 27 Sep @ 10:57am 
NOTE this is a fix for firearmsBETA, if you want the normal version its this steamapps\workshop\content\108600\2256623447\mods\Firearms\42.0\media\scripts\Items
Rubber Flubber 27 Sep @ 10:11am 
Yeah. Here's the ones I added it to: AssaultRifles, Handguns, LeverActionRifles, Revolvers, Rifles, Shotguns, SMGs, and for good measure I added it to Deprecated_Compat but I'm not sure if that's needed.
Hiram 27 Sep @ 9:43am 
@Rubber Flubber
Just to be sure, the lines need to be added only in the files that have as a name a category of weapon , yes? or to add to the txt file like ammo too ?
Rubber Flubber 27 Sep @ 9:29am 
@S一朵云飘过S Make sure you're adding a comma at the end of the line, that you're not adding it in a commented out section, and that you've got every gun. There are several in each .txt

I don't believe it matters too much what muzzle flash you choose for each gun type, just that they have one.
PinguBros-Capt´n 27 Sep @ 9:15am 
@Rubber Flubber yeah thx :steamthumbsup:
S一朵云飘过S 27 Sep @ 6:15am 
I wrote the muzzle light effect based on the brothers below. In order to save time, I wrote the same muzzle light effect. After I fired a few shots, the game crashed. Do I have to write the appropriate light effect? please
MrBean 27 Sep @ 2:14am 
I think Hyzo has given up on his Firearm mod
Rubber Flubber 27 Sep @ 1:51am 
As a disclaimer, there may be other things to add and tweak, I'm not sure, but this is what got the guns working again for me. No crashes, the guns do what I feel is an appropriate amount of damage, they function properly.
Rubber Flubber 27 Sep @ 1:49am 
You also don't need to use any fancy programming programs to do this, Notepad'll work fine since it's a .txt file.
Rubber Flubber 27 Sep @ 1:48am 
For simplicity's sake I just put it as the first entry under the Handling section of each gun so it was easy to find again
Rubber Flubber 27 Sep @ 1:47am 
Just whatever you think would work best for each model. Here's a list of the different ones I used.

MuzzleFlashModelKey = muzzle_flash_varmint_rifle
MuzzleFlashModelKey = muzzle_flash_revolver
MuzzleFlashModelKey = muzzle_flash_revolver_long
MuzzleFlashModelKey = muzzle_flash_revolver_short
MuzzleFlashModelKey = muzzle_flash_hunting_rifle
MuzzleFlashModelKey = muzzle_flash_assault_rifle02
MuzzleFlashModelKey = muzzle_flash_assault_rifle
MuzzleFlashModelKey = muzzle_flash_shotgun_double_barrel
MuzzleFlashModelKey = muzzle_flash_shotgun_sawed_off
MuzzleFlashModelKey = muzzle_flash_shotgun
MuzzleFlashModelKey = muzzle_flash_handgun
MuzzleFlashModelKey = muzzle_flash_handgun02
MuzzleFlashModelKey = muzzle_flash_handgun03
Rubber Flubber 27 Sep @ 1:46am 
If the mod developer doesn't update this, inside steamapps\workshop\content\108600\2256623447\mods\FirearmsBETA\42.0\media\scripts\Items there are different .txt files that contain the code of each gun. You need to open all of those and add the appropriate MuzzleFlashModelKey to each gun, then the mod'll work again.
CoyoteFloky 27 Sep @ 12:56am 
With the new patch B42.12, this mod is broken, the game freezes when i use weapons !