Project Zomboid

Project Zomboid

Superb Survivors!
CorruptedMushroom 2022 年 1 月 16 日 上午 1:36
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://psteamcommunity.yuanyoumao.com/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
最后由 CorruptedMushroom 编辑于; 2022 年 1 月 17 日 上午 11:01
< >
正在显示第 1 - 5 条,共 5 条留言
GIGI 2022 年 1 月 16 日 上午 8:38 
thanks very well
32Alpha 2022 年 1 月 16 日 上午 10:42 
This works perfectly. Thank you.
Rachey 2022 年 1 月 16 日 下午 3:45 
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
最后由 Rachey 编辑于; 2022 年 1 月 16 日 下午 3:45
CorruptedMushroom 2022 年 1 月 17 日 上午 10:28 
引用自 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 2022 年 1 月 17 日 下午 8:07 
引用自 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://psteamcommunity.yuanyoumao.com/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
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50