Project Zomboid

Project Zomboid

HydroCraft b41 Continued
sreese4 Mar 23, 2022 @ 7:21am
Is there a way to get this to work with Arsenal / Brita's?
I was wondering if there were a way to disable the built in guns in hydrocraft and use the guns from Arsenal 26 and Brita's Weapon pack?

The game will load with both, but it creates a conflict because the ammo from one doesn't work in the other.

I love the features that get added through this mod, but there is such a love for Brita's people aren't willing to switch from one to the other.
< >
Showing 1-15 of 17 comments
sreese4 Mar 23, 2022 @ 7:22am 
I just saw your response to my post, but I'm sure this is a question for multiple servers.

Is it possible to make a mod that overwrites your mod settings for guns so it'll work in multiplayer and not need to be removed with every update?
Hugo Qwerty Mar 23, 2022 @ 8:06am 
Probably; but I'm new to PZ modding so I don't know how to do that.

An update to HC has just dropped, this now makes it easier to remove HC guns from zombie corpses (different from the advice I gave 5 minutes ago!). Open \media\lua\client\SpawnOnZeds.lua and set SPAWN_HC_GUNS to false. They might still spawn in police / army containers but they won't spawn on zeds.

This update also makes a change to how loot spawns on zeds, as a result the amount of Britas weapons on zombies should be as intended (previously they used to spawn at much higher rates).

I'm working on a new hunting system for Hydrocraft that will allow any guns to be used for hunting (vanilla, Hydrocraft, Britas, and any other mod).
sreese4 Mar 23, 2022 @ 8:25am 
Hugo, you're great. Thank you for adding that option too. Will that setting overwrite with mod updates?
bjaebjoch Mar 23, 2022 @ 9:28am 
Thank you for this easy fix.
Hugo Qwerty Mar 23, 2022 @ 3:15pm 
@sreese4 - Yes. We're looking into a settings system to let people set preferences for Hydrocraft, but I don't know how long that will take.
sreese4 Mar 23, 2022 @ 4:05pm 
I looked into writing my own mod to overwrite the settings so they would work, but I don't think I can because all the variables and such are local.
Hugo Qwerty Mar 23, 2022 @ 5:49pm 
I can change that. I need to tweak the SpawnOnZeds.lua code soon anyway, so I can remove the local from SPAWN_MONEY and SPAWN_HC_GUNS - I assume that's what you want to change. Or maybe I can create a function to let anyone change them, but restrict the value to true or false. I can't guarantee code won't ever change in future, so it's possible we'll do something that stops your mod from working - but we won't do that deliberately.

You might be able to edit the gun values in ProceduralDistributions_HC.lua (line 2926 & 2927) by replicating our code but using values of 0 - so they'll be in the loot list but should never actually spawn.
Hugo Qwerty Mar 25, 2022 @ 4:06am 
Coming Soon: an option in the Sandbox settings to disable the Hydrocraft guns.
sreese4 Mar 25, 2022 @ 11:36am 
That is awesome, thank you
KaNoSki Mar 26, 2022 @ 3:09am 
Originally posted by hugo9cf:
Coming Soon: an option in the Sandbox settings to disable the Hydrocraft guns.
Man that will be grat change, cant wait :D
mrsnugglebunny Mar 30, 2022 @ 3:24pm 
Pretty sure incompatibilities run deeper than just the gun spawns. Brita's claims that any mod that adds suppressors is incompatible with their own ones, as both mods' suppressors break and become nonfunctional. So unless that info is out of date/too general or HC does some kind of voodoo that somehow sidesteps the issue, the two mods will be incompatible in the "♥♥♥♥♥ broke yo" way.
Hugo Qwerty Mar 31, 2022 @ 2:05pm 
@mrsnugglebunny, I don't know if it counts as voodoo, but Hydrocraft silencers work by checking a weapon each time the player equips it to see if it has a silencer - if it does we edit the gun's sound volume, sound radius and swing sound, if it does not have a silencer we reset to default (in case it previously had one but no longer does). It only checks vanilla and HC guns and ignores every other weapon. I don't see how it could possibly impact any other silenced guns, but I'm relatively new to PZ modding so I wouldn't like to say it definitely can't.
mrsnugglebunny Mar 31, 2022 @ 7:42pm 
So after screwing around in debug mode for a while, I've found out these things:

1) Brita's guns and suppressors are FULLY FUNCTIONAL: no issues have been found in the 3 or ways I've tested
2) Hydrocraft guns are PARTIALLY FUNCTIONAL: while the base gun (tested with AA12) performs fine, attaching a silencer causes an endless cascade of errors while equipped, and the silencer does nothing. A look through the log points to the errors stemming from GunFighter (prerequisite mod for Brita), which I assume is from the differing suppressor code
3) No idea about vanilla guns, couldn't find them in the item list. Pretty sure Brita's disables/converts those anyway

So, as long as no HC suppressors are used, Brita and Hydrocraft are almost fully compatible. At least in this regard.
sreese4 Apr 1, 2022 @ 3:50am 
Yes MrSnuggle, that is what I found in my testing as well. Hence why I thought if we just disabled hydrocraft guns the two would be work without issue. I guess I should have clarified guns and gun accessories.
Hawtchick Apr 1, 2022 @ 11:11pm 
so i should not use any suppressor with the Hydricraft tag in the itme description hehe or is there any other way to know which silencer belongs to which mods ?
< >
Showing 1-15 of 17 comments
Per page: 1530 50