Project Zomboid

Project Zomboid

add Craft & Rules for use SledgeHammer [New Sandbox options!]
41 kommentarer
AuD  [ophavsmand] 29. apr. 2024 kl. 0:13 
**HOTFIX: item description is available in MP (sledgehammer)
AuD  [ophavsmand] 28. apr. 2024 kl. 7:17 
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  [ophavsmand] 28. apr. 2024 kl. 6:16 
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  [ophavsmand] 19. okt. 2023 kl. 1:43 
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 18. okt. 2023 kl. 12:17 
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  [ophavsmand] 29. aug. 2023 kl. 12:13 
yes, this mod it's for it, restrict the sledgeHammer for no admin
BroDimm 29. aug. 2023 kl. 10:11 
@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  [ophavsmand] 29. aug. 2023 kl. 9:29 
@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 29. aug. 2023 kl. 8:37 
i have sledge. how to use it. no menus
Ram 25. juli 2023 kl. 12:50 
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 3. juni 2023 kl. 18:49 
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 25. apr. 2023 kl. 6:29 
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  [ophavsmand] 12. apr. 2023 kl. 5:25 
**
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  [ophavsmand] 12. apr. 2023 kl. 5:19 
*********************************************************
** 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  [ophavsmand] 11. apr. 2023 kl. 12:54 
there is a small pb in my script sorry... update tomorrow... ^^
Melancholy Wayne 10. apr. 2023 kl. 4:08 
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  [ophavsmand] 10. apr. 2023 kl. 2:25 
@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  [ophavsmand] 4. apr. 2023 kl. 12:53 
**
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  [ophavsmand] 4. apr. 2023 kl. 12:48 
***************************************
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 3. apr. 2023 kl. 17:42 
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  [ophavsmand] 6. mar. 2023 kl. 7:33 
yes, i will rework this in the future, but before, i will rework can repair door mod ...
Eroge 6. mar. 2023 kl. 1:24 
Great MOD!Maybe considering make all the limitation settings configurable in sandbox options for server users?
i13e134c14 26. feb. 2023 kl. 3:06 
good mod i like it xD
Bar 22. feb. 2023 kl. 6:10 
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  [ophavsmand] 5. feb. 2023 kl. 4:28 
@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 4. feb. 2023 kl. 14:52 
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 18. jan. 2023 kl. 1:18 
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  [ophavsmand] 16. dec. 2022 kl. 5:21 
------------------------------------------------------
RESTRICTION FOR DESTROYE DOORS WITH MELEE WEAPON

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2902458630
------------------------------------------------------
Alex-117 6. dec. 2022 kl. 11:07 
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  [ophavsmand] 5. dec. 2022 kl. 3:06 
UPDATE craft:

Craft is downgraded, now : 5 packs of rods and 5 full blow torch (formerly 20 blow torch and 8 pack rods)
AuD  [ophavsmand] 1. dec. 2022 kl. 1:02 
---------------------------------------------
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 10. nov. 2022 kl. 21:11 
comeon its a game no a real life simulator, they apllied it in the server and now is a pain in the ass
AuD  [ophavsmand] 26. okt. 2022 kl. 1:43 
if you have good strength, you will destroy the object faster
Woori 26. okt. 2022 kl. 0:57 
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 10. sep. 2022 kl. 0:30 
Très sympa, merci =)
AuD  [ophavsmand] 29. aug. 2022 kl. 4:27 
You will need patience and skill!!
AuD  [ophavsmand] 29. aug. 2022 kl. 4:22 
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 26. aug. 2022 kl. 16:26 
ok thanks
AuD  [ophavsmand] 26. aug. 2022 kl. 11:46 
i will add a blueprint for sledgehammer crafting (in the future)
AuD  [ophavsmand] 26. aug. 2022 kl. 8:03 
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 25. aug. 2022 kl. 19:08 
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: