Project Zomboid

Project Zomboid

add Craft & Rules for use SledgeHammer [New Sandbox options!]
41 Comments
AuD  [author] Apr 29, 2024 @ 12:13am 
**HOTFIX: item description is available in MP (sledgehammer)
AuD  [author] Apr 28, 2024 @ 7:17am 
Some sandbox options have changed, for those who have set up the old version, perhaps you should recheck your sandbox options.

If you encounter a problem, error, or something unexpected, like a sandbox option not working as it should, let me know and I'll fix it.
AuD  [author] Apr 28, 2024 @ 6:16am 
UPDATE:

Adds description to sandbox options.

Adds more sandbox options.

Adds a description on the sledgehammer items, everything is summarized in this description.

Added a "say" on the character's head when starting the action destroy with the sledgehammer, this will tell you the level of solidity of the object, and if it will be more or less difficult for you.

In the sandbox options, you can modify each sandbox options independently, several difficulty levels are accessible, the difficult level is slightly more difficult than the old version, otherwise, you can make this mod as you want.
AuD  [author] Oct 19, 2023 @ 1:43am 
Hi! the code is simple however, if you are isAdmin() or if not isAdmin(), then it must come from something else... as if you were permanently considered as admin, I would do a test to see, I set myself admin , test, then set player, and test again, if it works internally it should work everywhere
Sirze Oct 18, 2023 @ 12:17pm 
Hey, nice mod! I'm using it on my community server. Just one thing that I discovered...
I noticed that you wrote: "Admin mode retains the original sledgehammer usage." I've been testing it with a non-admin account, but it seems like I'm considered an admin because the account was initially set as an admin. Even after using the /setaccesslevel command to demote from admin to player, I still can't play with this mod as a normal player.
AuD  [author] Aug 29, 2023 @ 12:13pm 
yes, this mod it's for it, restrict the sledgeHammer for no admin
BroDimm Aug 29, 2023 @ 10:11am 
@AuD i intentionally disable 'allowdestructionbysledgehammer' to prevent the tool's exploits. If i enable it, will it overwritten by addRulesSledgeHammer (your mod)?

i only use the addRulesSledgeHammer one
AuD  [author] Aug 29, 2023 @ 9:29am 
@BroDimm you need to activate the destroye action in sandbox options, otherwise this work like vanilla, right click on object to destroye
@Ram ty, for next update too
@Jasdan i think for nect update
BroDimm Aug 29, 2023 @ 8:37am 
i have sledge. how to use it. no menus
Ram Jul 25, 2023 @ 12:50pm 
The English translation is hard to understand, and the formatting style does not match the game.

I suggest using these:

IGUI_sledgeBroken = "My Sledgehammer is broken.",
IGUI_notStrongForThat = "I'm not strong enough to use a Sledgehammer. (level ",
IGUI_notStrongForThat2 = " is required)",
IGUI_noSledge = "I don't have a Sledgehammer.",
IGUI_imExhausted = "I'm too exhausted to continue.",
IGUI_noMoreLong = "It's almost broken.",
IGUI_missed = "I failed.",
IGUI_sledgeDestroyed = "The Sledgehammer was destroyed.",
IGUI_tooFarSledge = "Retry the action.",
IGUI_OtherSafeHouseforbidden = "You can't use a Sledgehammer in another player's safehouse.",
Jasdan Jun 3, 2023 @ 6:49pm 
Small rquest:
Can objects destroyed with the Sledgehammer leave behind some of the junk materials they drop when dismantling them?
Not the good stuff like Wooden Planks or Metal Sheets, but something?
I would appreciate to have that functionality.
Melancholy Wayne Apr 25, 2023 @ 6:29am 
Thank you for your work.
The current settings are functioning properly on the multiplayer server, including the speed penalty for canceling safe houses, which adds more diversity to our gameplay.
Thank you very much.:steamthumbsup:
AuD  [author] Apr 12, 2023 @ 5:25am 
**
I haven't tested this option but it should work fine >> UseSledgeHammerInOtherSafeHouseIsforbidden = true.

--
Je n'ai pas testé cette option mais elle devrait fonctionner correctement >> UseSledgeHammerInOtherSafeHouseIsforbidden = true.

**

@Melancholy Wayne
AuD  [author] Apr 12, 2023 @ 5:19am 
*********************************************************
** UPDATE: fix some bugs and sandbox options is better, more options !!

Now, if lessPenaltyInYourSafeHouse = true, you will have to real bonus in your safehouse, it's normal for the gameplay ^^, is not only in your safehouse (inside),this is valid around your safehouse, everything is configurable, even the prohibition to use the sledgehammer in the opponent's safehouse ....

----------------------------------------------------------------

maintenant, si lessPenaltyInYourSafeHouse = true, vous aurez de vrais bonus dans votre safehouse, c'est normal pour le gameplay ^^, n'est pas que dans votre safehouse (inside), c'est valable autour de votre safehouse, tout est paramétrable, même l'interdiction d'utiliser la masse dans le refuge de l'adversaire ....

*********************************************************
AuD  [author] Apr 11, 2023 @ 12:54pm 
there is a small pb in my script sorry... update tomorrow... ^^
Melancholy Wayne Apr 10, 2023 @ 4:08am 
OH! Thank you for your thoughtfulness, and for the very useful sandbox settings.

My friends and I are able to use them properly on the dedicated server, the only downside is that the speed of using the sledgehammer to dismantle items is still too slow.

I hope there is an option to remove the speed penalty because the speed of dismantling is quite important for construction enthusiasts.

Finally, thank you again for all the updates you have made.:steamthumbsup:
AuD  [author] Apr 10, 2023 @ 2:25am 
@Melancholy Wayne hey, if you have a feedback, or an opinion, or a suggestion to share with me, do not hesitate!! did i improve the mod correctly for your case?
AuD  [author] Apr 4, 2023 @ 12:53pm 
**
I reviewed this quickly, if there is a problem, or small nuances to be made, let me know ;)

--

J'ai revu ça rapidement, s'il y a un problème, ou des petites nuances à apporter, faites le moi savoir ;)
AuD  [author] Apr 4, 2023 @ 12:48pm 
***************************************
UPDATE :

- I added a lot of sandbox options (all explanations in the description of this mod)

- globally, you will be able to edit the options in order to facilitate or not the use of the mass

- admins now have full rights without having to use the cheat menu

- if you intentionally cut the "destroy" action, you will no longer suffer the penalties.

--------------------------------------------------
--------------------------------------------------

- J'ai ajouté pas mal d'options sandbox (toutes les explications dans la description de ce mod)

- globalement, vous pourrez éditer les options afin de faciliter ou non l'utilisation de la masse

- les admins ont maintenant tous les droits sans avoir à utiliser le menu de triche

- si vous coupez intentionnellement l'action "détruire", vous ne subirez plus les malus.

***************************************
Melancholy Wayne Apr 3, 2023 @ 5:42pm 
This mod is really great and solves many inconveniences in the game. It is worthy of praise!
I really like how it balances the rules for using a sledgehammer, but is it possible to add an option to adjust the destruction speed of the sledgehammer?
Because sometimes when we are building houses, we need to frequently use the sledgehammer to correct misplaced objects, and the destruction speed affects the difficulty of doing so.
AuD  [author] Mar 6, 2023 @ 7:33am 
yes, i will rework this in the future, but before, i will rework can repair door mod ...
Eroge Mar 6, 2023 @ 1:24am 
Great MOD!Maybe considering make all the limitation settings configurable in sandbox options for server users?
i13e134c14 Feb 26, 2023 @ 3:06am 
good mod i like it xD
Bar Feb 22, 2023 @ 6:10am 
Its funny to see people complain about something being to realistic and then in the next comment say this isn't realistic enough xD

Thanks for this mod, its not perfect but at least you are attempting to solve a major issue in PZ
AuD  [author] Feb 5, 2023 @ 4:28am 
@P_menta

Thank you man ;) , that's exactly it, it's been a year, to the day, since I discovered the lua.

and actually I review all my mods once I learn, at the moment, the one that takes my time is avatar offline.

I would eventually review this sledgehammer mod, with Sandbox options etc...
P_menta Feb 4, 2023 @ 2:52pm 
Hi Aud, I follow your evolution as a programmer, even though I'm not one, you started making simple mods and made very nice thing later, you kept improving them, surprising even experienced modders with your ideas.
I quote you as an example for everyone looking to start in this modding scenario, start simple, learn and then make something great.
Don't let comments like the one below affect you. If you don't like the mod, just don't use it.
I can see how your mods are made for your community/server, with their tastes and ideas, some mods are not made for all players, you should make that more clear. (as some people do not like read the description)
Dismellion Jan 18, 2023 @ 1:18am 
You gotta check out how to mod games, no offense.
The whole condition section smells with "maybe yes, maybe not, I don't know".
This mod is a serious mess gamedev wise.
AuD  [author] Dec 16, 2022 @ 5:21am 
------------------------------------------------------
RESTRICTION FOR DESTROYE DOORS WITH MELEE WEAPON

https://steamcommunity.com/sharedfiles/filedetails/?id=2902458630
------------------------------------------------------
Alex-117 Dec 6, 2022 @ 11:07am 
Why theres no damage acummulation? i mean if this tries to be a "real use" simulator, once i try to beat one door dow and fail, next time should be easier because, i already hit the door before
AuD  [author] Dec 5, 2022 @ 3:06am 
UPDATE craft:

Craft is downgraded, now : 5 packs of rods and 5 full blow torch (formerly 20 blow torch and 8 pack rods)
AuD  [author] Dec 1, 2022 @ 1:02am 
---------------------------------------------
UPDATE:

Penalty balancing.
The loss of happiness has been removed.
replaced by stress.
If you succeed in your action, you lose boredom instead of adding it.
now you can practice destroy action with strength level 5.
The mass is damaged a little less quickly.
----------------------------------------------
Alex-117 Nov 10, 2022 @ 9:11pm 
comeon its a game no a real life simulator, they apllied it in the server and now is a pain in the ass
AuD  [author] Oct 26, 2022 @ 1:43am 
if you have good strength, you will destroy the object faster
Woori Oct 26, 2022 @ 12:57am 
Could you consider about fatigue penalty of sledge hammers rules ? I understand every penalties sledge bring to me but the fatigues are too much.. in the game, fatigue decreases melee dmg very sharply and needs to get some sleep as time goes on
Of course its tiring when Im using some big things like sledge hammer but we are just in the game !!
and the fatigue system in this game bring too much penalty
FoxHound / Nathan Hawn Sep 10, 2022 @ 12:30am 
Très sympa, merci =)
AuD  [author] Aug 29, 2022 @ 4:27am 
You will need patience and skill!!
AuD  [author] Aug 29, 2022 @ 4:22am 
update:

- added mag metal working vol4 for craft the sledgeHammer (keep)
- added possible random fails related to skills and bonus gived (bonus is calculate related to skills/targetedObject/random )
-level objects related to targeted object
pgames-food Aug 26, 2022 @ 4:26pm 
ok thanks
AuD  [author] Aug 26, 2022 @ 11:46am 
i will add a blueprint for sledgehammer crafting (in the future)
AuD  [author] Aug 26, 2022 @ 8:03am 
Maybe I will add to the recipe somes items, or add variations, all depends on the rarity of the added elements, but i want a good balance for survival based.
pgames-food Aug 25, 2022 @ 7:08pm 
hi the recipe and usage/breakage is a nice idea and balanced i think.
if a player doesn't have 4 hammers yet, could maybe 4 golf clubs be used as an alternative recipe? :lunar2019piginablanket: