Project Zomboid

Project Zomboid

Superb Survivors!
CorruptedMushroom 16 Jan, 2022 @ 1:36am
Invicible NPCs. Fix by me
How to fix:
1) Install subpar survivors(it fixes a lot of stuff in this mod)

2) Go to: F:\SteamLibrary\steamapps\workshop\content\108600\2521330369\mods\Subpar-Survivors\media\lua\client\2_Other\SuperSurvivorUpdate.lua

3) Find:
if (ZombRand(0,100) < victim:getBodyPartClothingDefense(bindex, b3, b4)) then b = false; victim:addHoleFromZombieAttacks(BloodBodyPartType.FromIndex(bindex)); end

4) Replace it with:
if (ZombRand(0,100) < victim:getBodyPartClothingDefense(bindex, b3, b4)) then b = false; --victim:addHoleFromZombieAttacks(BloodBodyPartType.FromIndex(bindex)); end

5) Find:
victim:splatBloodFloorBig(0.4); victim:splatBloodFloorBig(0.4); victim:splatBloodFloorBig(0.4);
6) Replace it with:
--victim:splatBloodFloorBig(0.4); --victim:splatBloodFloorBig(0.4); --victim:splatBloodFloorBig(0.4);

It helped me. I also used fixes from https://gtm.steamproxy.vip/workshop/filedetails/discussion/1905148104/3198118671855714410/

UPD:
Old npcs near you can be invicible, need to despawn them, but all new npc will work fine like in iwbums version

UPD2: small fixes
Last edited by CorruptedMushroom; 17 Jan, 2022 @ 11:01am
< >
Showing 1-5 of 5 comments
GIGI 16 Jan, 2022 @ 8:38am 
thanks very well
32Alpha 16 Jan, 2022 @ 10:42am 
This works perfectly. Thank you.
Rachey 16 Jan, 2022 @ 3:45pm 
I did as you said and now when i load the game (both old saves and new game) they crash or load after 2 mins, and when it loads it gives me tons of errors and extreme lag, i don't know why.
Plus i thing i don't get, in the discussion you linked the guy said to not use subpar survivor with that fix, what im i missing?

Anyway i still want to thank you for your commitment on fixing an unsupported mod
Last edited by Rachey; 16 Jan, 2022 @ 3:45pm
CorruptedMushroom 17 Jan, 2022 @ 10:28am 
Originally posted by Rachey:
I did as you said and now when i load the game (both old saves and new game) they crash or load after 2 mins, and when it loads it gives me tons of errors and extreme lag, i don't know why.
Plus i thing i don't get, in the discussion you linked the guy said to not use subpar survivor with that fix, what im i missing?

Anyway i still want to thank you for your commitment on fixing an unsupported mod
it works stable in new saves
HardwiredMike 17 Jan, 2022 @ 8:07pm 
Originally posted by CorruptedMushroom:
How to fix:
1) Install subpar survivors(it fixes a lot of stuff in this mod)

2) Go to: F:\SteamLibrary\steamapps\workshop\content\108600\2521330369\mods\Subpar-Survivors\media\lua\client\2_Other\SuperSurvivorUpdate.lua

3) Find:
if (ZombRand(0,100) < victim:getBodyPartClothingDefense(bindex, b3, b4)) then b = false; victim:addHoleFromZombieAttacks(BloodBodyPartType.FromIndex(bindex)); end

4) Replace it with:
if (ZombRand(0,100) < victim:getBodyPartClothingDefense(bindex, b3, b4)) then b = false; --victim:addHoleFromZombieAttacks(BloodBodyPartType.FromIndex(bindex)); end

5) Find:
victim:splatBloodFloorBig(0.4); victim:splatBloodFloorBig(0.4); victim:splatBloodFloorBig(0.4);
6) Replace it with:
--victim:splatBloodFloorBig(0.4); --victim:splatBloodFloorBig(0.4); --victim:splatBloodFloorBig(0.4);

It helped me. I also used fixes from https://gtm.steamproxy.vip/workshop/filedetails/discussion/1905148104/3198118671855714410/

UPD:
Old npcs near you can be invicible, need to despawn them, but all new npc will work fine like in iwbums version

UPD2: small fixes

Use Notepad++ and it is line 409 to find it easier
< >
Showing 1-5 of 5 comments
Per page: 1530 50