Project Zomboid

Project Zomboid

Eggon's Hotkeys & Hot Actions
『Gecko』 4 Oct, 2022 @ 4:45am
Umbrella - Adjusting the script to not add an item while unequipping?
Hey there, I've noticed that there is a dupe-glitch with this mod (since its release).
Whenever someone uses the hotkey to unequip the umbrella, it will add one before unequipping the one, which will result into an unintentionally caused dupe (like running away from a zed, canceling the action due to wrong button press and so on).

Is there a way NOT to trigger this "add/remove item" logic? Which also kinda confuses me why it even exists in the first place, as opened/closed umbrellas are owning the same properties (weight in this case). If someone wants to place them manually, they should simply do it manually. Would at least get rid of the code segment causing a potential dupe glitch.

To make it more clear:
Umbrella equipped - button to "unequip umbrella" pressed - character triggers timedaction - (CRITICAL) code already adds another closed umbrella into the inventory - user manually interrupts this action - character now still has its umbrella equipped and a new one added by the script.


Nvm. Scripted out the quite useless part of the script to not switch the umbrella to a closed one.
If someone wants the script, DM me.
Last edited by 『Gecko』; 6 Oct, 2022 @ 8:41pm
< >
Showing 1-1 of 1 comments
Tezzomatic 2 Dec, 2022 @ 5:22am 
Very good, bug fix. TY. I have encountered the same issue & and I'm gettin alot of dupes in my inv. Ill shoot a DM for the fix, thanks
< >
Showing 1-1 of 1 comments
Per page: 1530 50