Jagged Alliance 3

Jagged Alliance 3

Revised Tactical Gear II
A minor bug and my makeshift fix for it
Hi permanent666, I found that Revised Tactical Gear II was cancelling the gas protectiveness of vanilla game's GasMaskenHelmets. I managed to locate the Lua snippet causing the problem (which can be found in \Code\OR_Inventory.lua) and fixed it, for the time being. I will post my solution below.

... function Inventory:GetItemInSlot(slot_name, base_class, left, top) local is_getting_gasmask = false if base_class and base_class == "GasMaskBase" and REV_IsMerc(self) then slot_name = "FaceItem" is_getting_gasmask = true end local item = REV_OriginaGetItemInSlot(self, slot_name, base_class, left, top) if is_getting_gasmask and not item then -- further check if the mask is in the head slot (in the cases of vanilla game's GasmaskenHelms and modders' combined mask helmets) local item_head = REV_OriginaGetItemInSlot(self, "Head", base_class, left, top) if item_head and item_head.object_class == "GasMaskBase" then item = item_head end end return item end

Hope it helps!
Last edited by yuhui2; 6 May @ 2:10am