Project Zomboid

Project Zomboid

[B42]Susceptible Trait - Airborne Infection
 This topic has been pinned, so it's probably important
FG  [developer] 4 Jun @ 6:46am
Bug report!
Bug report
< >
Showing 1-15 of 24 comments
Not quite a bug, but if you want to restore the handling for blue/green surgical masks rather than making them always use the green boxes, you might be able to use an OnTest helper that checks `item:getScriptItem()` and uses `getModelIndex()` and `getIconsForTexture()`?

(You could even use an item mapper to determine the output without having to make them separate recipes. I'm not 100% certain of how you'd make sure it's using the right type of box, though, so you might have to keep them as separate recipes.)
Okay, I was very wrong. You'd have to use item:getVisual():setTextureChoice() followed by item:synchWithVisual().

Also, a real bug: Surgical masks just don't work. Edit SusceptibleMaskData.lua and replace Hat_SurgicalMask_Blue with Hat_SurgicalMask and delete Hat_SurgicalMask_Green.
FG  [developer] 5 Jun @ 1:02am 
Originally posted by angelgirlsutures:
Okay, I was very wrong. You'd have to use item:getVisual():setTextureChoice() followed by item:synchWithVisual().

Also, a real bug: Surgical masks just don't work. Edit SusceptibleMaskData.lua and replace Hat_SurgicalMask_Blue with Hat_SurgicalMask and delete Hat_SurgicalMask_Green.


thank you fixed it!
I'll consider the method you shared!:steamfacepalm:
Can you make it compatible with They Knew if it not allready is? I lost my suseptible trait
please make sure to save translations .txt's in UTF-8 format, so they can work correctly, thx
Foxter 2 Jul @ 8:09am 
My gas mask is still at 0% even after replacing the filters
Noticed that the filters gave out before the masks protection meter gave out so I tried replacing it but when I did the filters were replaced but the masks protection fell to 0%
No idea how to fix it
seele 5 Jul @ 12:57pm 
vanilla crafted rag bandana doesnt seem to count as protection from air borne when put on face
Last edited by seele; 5 Jul @ 12:58pm
Whenever I start eating something, I take off whatever mask I'm wearing but don't eat. I need to take the mast off, eat, and put it back on. Unless it's a feature I thought the B41 mod had it so you would do these automatically instead of having to click to do each one.

Edit: this only applies when time is sped up. From what I've tested, drinking works fine (drank a juice box and soda) but eating will cause this problem
Last edited by EagerPlanes341; 23 Jul @ 7:17pm
So I don't know what conflict is causing it but this mod fully crashes my game when I use it. Like, it wouldn't even load. I get an error message saying that something went wrong and it tells me to check the console. I have a pretty beefy mod list so I'm sure it's just a compatibility issue but when I disable just this mod then my game works again (and this is whether or not my character has the trait). If you want, I can reproduce it and send you my console, but, at the same time, I don't think you care enough to dig through that much when it's more than likely just another mod causing the problem.
eating food actions while masked will cause your character to only unequip the mask. drinking and taking painkillers doesn't cause this issue, the character unequips the mask, does the action then reequips the mask.
Originally posted by DarkzKnight:
eating food actions while masked will cause your character to only unequip the mask. drinking and taking painkillers doesn't cause this issue, the character unequips the mask, does the action then reequips the mask.
Yes this please fix!!
Ok figured out a work around.

Delete the following file. The base game now includes removing and adding back masks.

steamapps\workshop\content\108600\3493150396\mods\s\42\media\lua\client\Susceptible\Patches\ISEatFoodAction_patch_auto_mask_management.lua
Originally posted by TheoryOfMadness:
Ok figured out a work around.

Delete the following file. The base game now includes removing and adding back masks.

steamapps\workshop\content\108600\3493150396\mods\s\42\media\lua\client\Susceptible\Patches\ISEatFoodAction_patch_auto_mask_management.lua
can confirm this, the problematic code seems to be the function to not remove the mask if there are chances of infection
Vanilla respirators are 1 time use. Changing filters does nothing.
FG  [developer] 8 Sep @ 8:04am 
@Kuzako_Avali TTV

Originally posted by Kuzako_Avali TTV:
Vanilla respirators are 1 time use. Changing filters does nothing.

It works well when using a gas filter.

If you use an oxygen tank

For items that use oxygen tanks, do not assemble the oxygen tank beforehand. Instead, wear the item without an oxygen tank, then open the Susceptible UI to insert the oxygen tank.
(Sorry, in this case, the unpleasantness coming from the corpse cannot be prevented.)
I'll fix it soon :>
< >
Showing 1-15 of 24 comments
Per page: 1530 50