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-8 of 8 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
< >
Showing 1-8 of 8 comments
Per page: 1530 50