Project Zomboid

Project Zomboid

B42 Sledgehammers in Tool Stores
38 Comments
★Rainmaker★  [author] 1 Aug @ 12:40am 
You're very welcome :3
Euzio 1 Aug @ 12:27am 
Oh wow. I can't believe I did not come across this. Was just randomly looking through mods and decided to look through the collections you had (already using a few of the mods you made).

This would make base building so much better and accessible now. Thanks so much for this!
★Rainmaker★  [author] 15 Jul @ 9:52am 
@TEMPEST
Entirely doable.
TEMPEST 15 Jul @ 9:19am 
What do you think about adding crowbars too? I'm thinking about fire departments and police departments would have them to get people out of cars and stuff, and they're pretty common items in hardware stores? Do you think adding them to this mod is a good idea?
TEMPEST 13 Jul @ 6:25am 
I'm glad you're getting the gratitude and recognition you deserve; I can't believe how quickly you made this mod, but it's made a HUGE difference to the quality of my games. Thank you again.
★Rainmaker★  [author] 13 Jul @ 6:22am 
@[SC] tfengietuff
And people like you are the reason why I haven't given up on modding this game. :) You're most welcome, and thank you too.
[SC] tfengietuff 13 Jul @ 1:47am 
@★Rainmaker★ you people are the reason i play this game without destroying my pc, thank you:steamhappy:
Enraged_Ares 14 Jun @ 1:59pm 
TAKE MY POINTS !! :steamthumbsup:
TEMPEST 27 Mar @ 6:56am 
<bowing> We're not worthy! <bowing> Thanks Rainmaker. xXx
★Rainmaker★  [author] 27 Mar @ 6:50am 
And there we go. You now have sandbox options for fire stations and police stations as well. The default rate is set at 1.0 which is still 10-100 times higher than the vanilla value, but do with it as you please. :)
TEMPEST 25 Mar @ 9:15am 
You're awesome, have some more steam points!
★Rainmaker★  [author] 25 Mar @ 8:50am 
@TEMPEST
Sure thing. I'll give them a sandbox option as well. :)
TEMPEST 25 Mar @ 7:01am 
Hi! Me again. Is there any chance you can add sledgehammers to Firestations and maybe even some police stations? Firehouses should have them for breaking down doors. :)
★Rainmaker★  [author] 19 Mar @ 9:31pm 
There we go, sandbox options are in.

I also added warehouses to the increased spawns. In B41 I found almost all of my sledges in warehouses so it just made sense to me. :)
★Rainmaker★  [author] 18 Mar @ 11:02am 
I recently finally got around to studying how sandbox options work in PZ, and I'll be adding a few options for this mod some time in the near future.
I'm working on my gun mod at the moment though, and it will get first treatment for sandbox options and a couple of new guns.
Orange Elite 7 Feb @ 5:44pm 
thank you im so tired of the only way to find one in vanilla is the road construction event. jeeez
ForsakenShell 7 Feb @ 3:27pm 
Went looking for a cool store but couldn't find one. Went to a tool store instead.
¬¸¬

Great mod.
McSp00n 🥄 5 Feb @ 7:07am 
Aww, damn. Is it possible to look at what other modders have done? Would looking through (E.g. Chuckleberry's Skill Recovery Journal) help?
★Rainmaker★  [author] 5 Feb @ 6:46am 
Yeah, ChatGPT cannot program for PZ. This is a running meme on the PZ modding discord.

The lua that ChatGPT comes up with literally never works in PZ.
McSp00n 🥄 5 Feb @ 6:45am 
+1 to Glizda's suggestion. ChatGPT/CoPilot gave me some code. I'm really not much use as a programmer, so I cant verify this:
-Add a new option in the sandbox settings file (sandbox.lua).

[lua]
-- Add a new sandbox option for Sledgehammer spawn rate
SandboxOptions["SledgehammerSpawnRate"] = {
type = "number",
default = 50,
min = 1,
max = 100,
description = "Adjust the spawn rate of Sledgehammers in loot tables."
}

-Update the loot table code to use the sandbox option value:

[lua]
local sledgehammerSpawnRate = SandboxOptions["SledgehammerSpawnRate"]
table.insert(SuburbsDistributions["all"]["inventorymale"].items, "Base.Sledgehammer")
table.insert(SuburbsDistributions["all"]["inventorymale"].items, sledgehammerSpawnRate)
table.insert(SuburbsDistributions["all"]["inventoryfemale"].items, "Base.Sledgehammer")
table.insert(SuburbsDistributions["all"]["inventoryfemale"].items, sledgehammerSpawnRate)
★Rainmaker★  [author] 4 Feb @ 1:26pm 
Sure. Tell me how to write the lua for sandbox options.

Then I'll add it. :)
Glizda 4 Feb @ 1:24pm 
any way to decrease their spawn rate? feels kinda weird to find 5+ sledges in a tiny tool store imo, maybe consider adding sandbox options??
★Rainmaker★  [author] 4 Feb @ 7:50am 
Take literally two seconds to read what I said earlier today.
Štěpán Jelínek 4 Feb @ 7:47am 
can i use this in older save?
Blood 4 Feb @ 6:28am 
@M4ri Im crying.
m4ri 4 Feb @ 12:57am 
mod def works, had never found a single sledgehammer since hearing about B42 launching and as soon as I load this in my save TEN sledgehammers in one hardware store...
★Rainmaker★  [author] 3 Feb @ 9:14pm 
It can be added to a save but it will only affect tool stores you haven't visited yet.
mattyjax 3 Feb @ 8:47pm 
Can this be added to a current run? Thanks!
Regent 3 Feb @ 4:03pm 
As of writing in my game on normal rare settings i have not found a sledge in like 4-5warehouses, but have found probably every type of existing tool in them, the new loot system is a tad absurd, hopefully this mod fixes that
Helikopterek 3 Feb @ 9:29am 
Project zomboid devs only add realism to the game when it makes it harder lol why would a sledgehammer be that rare at a tool store
★Rainmaker★  [author] 3 Feb @ 4:25am 
To be clear, sledgehammers already have a chance to spawn in tool stores in vanilla PZ, but they may as well not have that chance because it's so tiny.

They're basically as rare as katanas now.
Honkiewithaboomstick 3 Feb @ 12:53am 
Wait they don't spawn in tool stores???
lmao
in2erpeace 2 Feb @ 7:25am 
LOVE U
Helikopterek 1 Feb @ 3:14pm 
are you telling me sledgehammers do not have a chance to spawn in tool stores lol
TEMPEST 1 Feb @ 10:31am 
THANK YOU. xXx
Lester Chaykin 1 Feb @ 8:02am 
Thank You !
Charon Rick 1 Feb @ 6:39am 
Well, this isn't Rainmaker but Dreammaker, then :spiffo:
Thank you, mate
Quilava 1 Feb @ 6:36am 
Base mod, hand down, no doubt :steamthumbsup::cool_seagull: