Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
This would make base building so much better and accessible now. Thanks so much for this!
Entirely doable.
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.
Sure thing. I'll give them a sandbox option as well. :)
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. :)
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.
¬¸¬
Great mod.
The lua that ChatGPT comes up with literally never works in PZ.
-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)
Then I'll add it. :)
They're basically as rare as katanas now.
lmao
Thank you, mate