Project Zomboid

Project Zomboid

Worse Zombie Loot Condition
63 kommenttia
Refúgio Z 7 tuntia sitten 
Can you make an option where the zombies' items are broken and unusable?
REAL UMA PATRIOT 11.7. klo 19.01 
This is a fantastic mod and will now be a main-stay in my list.
If you ever have the time, I'd love to see a blacklist sandbox setting to preserve certain progression items for extremely low loot runs.
Mazmundie 2.6. klo 19.35 
dougburg that commet fully sold me on it, get way too much stuff with bandits
dougburg 14.5. klo 12.32 
Personally, i think this mod meshes extremely well with Bandits, because the Bandits have a lot of loot, with this mod it's all damaged, so if you can repair it, great, but if not, it's worthless. As an example I encountered three ninjas with Katanas, after they finally died, from ZEDs, not me, all those swords were broken, it's better.
dougburg 14.5. klo 12.24 
Bandit loot IS affected. I play with both mods, but not week one, just normal bandits and all the bandit loot is damaged.
Jack the Stripper 13.2. klo 14.11 
I think something's going on with the LoadGridsquare function for degrading corpse items. Every spawned corpse I've come across has 100% clothing.

Threw in a print statement for isCosmetic and to check if the item's an Accessory, and even when both were false the hole/damage generator didn't work.

When I replaced the 'if not cosmetic and not accessory' line with two separate if then return statements, everything started working again. The logic looks right, but lua isn't my strong suit so idk how it's evaluating the original statement.
Salty Oreos 5.2. klo 11.02 
Hey I think it spits out errors when zombies get on fire, not 100% certain if that's the cause tho
bubby_pz33 21.1. klo 16.04 
Has anyone used this with Week One? Im wondering if bandit loot is affected the same
MilaYanska 5.1. klo 15.08 
I tested the latest version on B42 and had no errors. Thanks a lot for the update! New sandbox options are great as well!
REAL UMA PATRIOT 5.1. klo 12.12 
Awesome mod, thanks for maintaining it.
rambozambo  [tekijä] 4.1. klo 23.39 
all changes from now on are just for B42. i'm not able to maintain both versions currently.
rambozambo  [tekijä] 4.1. klo 23.37 
@MilaYanska

The error occured on tights clothing items. I added a check so Accessory items are not affected. This should do the trick hopefully.

@all

i also added options to not damage reanimated players (need further testing) and disable additional damage to when a zombie dies (so it only damaged Clothing items on hit)
MilaYanska 4.1. klo 16.06 
@rambozambo

Here are the errors I get after killing a zombie (B42). I hope this helps! Unfortunately, I cannot post the full log - it is too long.

`Callframe at: addRandomHole
function: updateInventory -- file: worse-zombie-loot-condition.lua line # 20 | MOD: Worse Zombie Loot Condition
function: OnZombieDead -- file: worse-zombie-loot-condition.lua line # 45 | MOD: Worse Zombie Loot Condition
`

`java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
...
rambozambo  [tekijä] 3.1. klo 11.57 
@Gex there are sandbox options. you can try lowering the "Clothing Holes" to less than the default. But i haven't tested much on b42. but in theory the lesser hits it takes and the lower this sandbox options is, it is more likely to only produce a few holes. but with the current implementation there will always be at least one hole added to each clothing item when a zombie dies. i'll add more sandbox options when i start a run in B42 to balance things.

Currently not playing experimental, only made it for you guys so it works in a minimum state already. but a run is on the horizon :D
Gex 3.1. klo 10.44 
Thank's for your work! You can add the chance of clothing damage to the settings so that some items will randomly remain intact.???
doodad 3.1. klo 6.10 
Thank you very much for your work!
rambozambo  [tekijä] 3.1. klo 3.25 
There is indeed some error when killing a zombie. it is caused by a Clothing item when the game is unable to add an additional hole. it doesn't seem to break anything while i was testing, so best to ignore it until fixed. i'll investigate further when i got time
tilarium 3.1. klo 1.41 
@Mila the erros are likely mod conflicts going on. I've got an every increasing list of mods and don't see any error boxes.
rambozambo  [tekijä] 3.1. klo 0.14 
@doodad i used the horde mod to find out the new structure and messed up. i restored the files for B41 but can't test right now. if someone can confirm B41 works again - thx!

@MilaYanska i removed adding extra blood which was indeed very annoying

@MilaYanska can you post a from the log files what the error is? i tested a little bit, but currently not active playing the game. but i'll fix issues when you show me the error logs
MilaYanska 2.1. klo 15.57 
Also, i noticed i get a bunch of errors on every zed death. Great mod and idea, tough!
MilaYanska 2.1. klo 14.59 
Zombies seem to bleed when you shove them with this mod installed. Not sure if this was intended...
doodad 31.12.2024 klo 9.36 
Hey friend, seems like the b42 update borked the mod folder directory organization - the 42 folder looks good but the main directory only has some loose files from HordeNight and no worse zombie loot conditon mod files, thus making the mod unavailable for 41
tilarium 31.12.2024 klo 8.27 
@rambozambo Working find for me in B42. Thank you
doodad 31.12.2024 klo 7.36 
Thank you for the mod by the way, it's just one of those mods that feel like it should be an option in vanilla.
doodad 31.12.2024 klo 7.35 
However, I play with the Improved Melee Combat mod which gives a chance for your currently held weapon (spears, long+short blades) to get stuck in the zombie you just hit. When that happens, the weapon that could have been at full condition will now go through the condition reduction logic and will, usually, be reduced to a very low condition. It makes long/short blades and spears veeery risky to use, and ultimately inferior to blunt weapons.

It's not really a "bug" per se, it's just how the mechanics of these two mods interact together that create this new mechanic. Now, I wonder, is there any way to make these recently stuck weapons not lose condition upon the zombie dying/getting hit? Is there even any way to check for this in the API? It would make for a nice sandbox option.

(sorry for double post, character limit)
doodad 31.12.2024 klo 7.34 
I love this mod! Makes clothes an actual resource and tailoring becomes actually useful. No longer can you just run around and get dressed up from random zombies.

One "issue" I found, if you can call it that, is the way that the mod calculates weapon condition reduction for stuck weapons. From what I can understand, when a zombie dies/gets hit, any weapons on the zombie will get damaged. This is of course intended behaviour - weapons stuck in zombies will get their condition lowered by a random amount depending on the sandbox settings.
rambozambo  [tekijä] 31.12.2024 klo 3.17 
Let me know if it works
Łukasz 21.12.2024 klo 6.15 
Are there plans to upgrade to 42?
Slizop 15.10.2024 klo 5.22 
could you give a brief description of what each sandbox setting actually does? Also, is there a way to make it only affect zombie bodies and not human bodies?
MK is lame n geh 22.6.2024 klo 15.00 
Bruh, nice mod but I can't set settings in a way that all clothes will have at least 2 holes and still won't dissapear from zombie from time to time. It's either clothes dissapear coz get destroyed or not all zombie clothes have holes
Łukasz 13.2.2024 klo 12.09 
This is nice mod, but after few hits clothes are destroyed to zero points. They just vanish from zombie body while fighting, it doesn't look very realistic.
BeeBro 3.8.2023 klo 4.04 
Great mod. Love it
TancredTerror 12.5.2023 klo 1.02 
Hello @rambozambo and thank you for this great mod !
On my server, there are lots of errors with your mods when we add an existing save into the server map files before to launch.
By this way, Worse Zombie Loot Condition generate lots of errors when player approach a corpse added with the save file and not killed directly into the game.
Do you know how to fix this please ?
Thank you :)
Sebastianech04 20.3.2023 klo 12.39 
Hello!
When i changer or modify anything of the values and save, the change dont take effect and put in the default value.
Paddy 27.2.2023 klo 11.41 
Been using this mod since when you first uploaded this. Truly one of the best mods along with 10 years later and trash and corpses. These three mods combined make one hell of an immersive experience
rambozambo  [tekijä] 24.2.2023 klo 22.56 
@UattO should also work with cloths added via mods

i'm currently waiting for the next PZ patch where they finally add a event where you can hook into zombie creation. this might be a goof starting point to move from adding holes on hit to reduce the condition on spawn. this will also significantly improve performance since i should be able to remove using onGridSquare logic. but lets see. PZ devs are good but slow in adding stuff for modding.
nIKNAKNUIE 19.2.2023 klo 6.21 
This looks perfect for a primitive survival build.
UattO 9.1.2023 klo 10.30 
Hi, is this mod working with mods that add clothes?
rambozambo  [tekijä] 8.1.2023 klo 12.28 
@Amroth Eldarion yes the mod in my case was intended to 99% destroy everything. it's just a personal preference.

but with that said there are sure some issues with the current logic and some things are just working out of random things i tried to get the mod working. since i haven't run enough tests i'm pretty unsure if all options in sandbox are working as intended.

i might switch to reducing conditions on spawn, which would work better but i haven't found a way to do it with any of the available modding logic.

if your interested the code is available here: https://github.com/ngc-corp/worse-zombie-loot-condition

i'm also looking for a solution to reduce lighter uses a.s.o. - feel free to contribute :)

grettings
bjorg bjorgenson 7.1.2023 klo 16.33 
@space is cool - yup
space is cool 7.1.2023 klo 14.41 
does this apply to brita's gear on zombies?
Amroth 6.1.2023 klo 15.09 
I took a peek, and apparently the settings can be customized, but still, default settings render zombie clothes practically entirely unusable, rather than "rarely in good condition".
Amroth 6.1.2023 klo 13.56 
I believe this mod is essential in a way, but something is off with its implementation. If I play without it, there is too much of an abundance of intact clothing options. If play with it, literally EVERYTHING on EVERY zombie will be completely destroyed.

It's 0.5% chance that I find something which is damaged, they're almost always destroyed.
Psyche 5.1.2023 klo 12.13 
Hi, @rambozambo, I found an issue in the mod. Whenever I jaw-stab a zombie it damages the hunting knife significantly. Can that feature be turned off? Thanks :)
XpaDDer 27.10.2022 klo 16.33 
@rrambozambo some people on my server asked if it was possible, is fine as it is buuuut, a nice option to have
rambozambo  [tekijä] 27.10.2022 klo 13.53 
@XpaDDer

not yet. why do you want this? respawn in the same world an kill you zedself to not loose any equipment?

but it might be possible if there is any property on the zed to determine that this was a player before. i have a look into it for the next update. lately a bit busy...
XpaDDer 26.10.2022 klo 16.29 
This also affects player zeds, is there any option to remove that?
Гнидкинс 5.10.2022 klo 12.26 
What I want to say, the mod is cool if you play 3/6/12 months later, etc. in this case zombies look really cool and for me the atmosphere of the apoceksis feels much better, but if you play the default apocalypse, then this is at least strange. It would be sooooo cool if u added a progression of clothing damage on the dead over time. But again, cool mod, really
TOTALLY NOT A SKELETON 1.10.2022 klo 13.24 
After playing with this mod for a bit, I now consider it an essential. It's especially great when playing with something like 10 years later.
Dapper Pan Man 27.9.2022 klo 15.29 
One thing I noticed is that sometimes a piece of clothing just disappears on zombie death. I'm assuming it's because their condition drops below zero from all the damage. It's kinda funny when zombie pants go poof all of a sudden but looks janky at the same time. Any way to keep them pants on? :spiffo: