Project Zomboid

Project Zomboid

OZ Meds (OUTDATED); NEW VERSION AVAILABLE — Immersive Meds
ereng1 30 Jun, 2019 @ 5:57am
Fixing issue with interaction barrels/traps/wall ect.
Hi there, for fix the issue with impossibility of interaction with barrels, traps, walls, and ect; you need copy file "ISWorldObjectContextMenu.lua" from "...\Steam\steamapps\common\ProjectZomboid\media\lua\client\ISUI" to "...\Steam\steamapps\workshop\content\108600\660074817\mods\OZMeds\media\lua\client\ISUI" I recommend to make backup of original file. After that in copied file you need add follow lines:



ISWorldObjectContextMenu.OZPerformInjectionAction = function(worldobjects, player, otherPlayer) if luautils.walkAdj(player, otherPlayer:getCurrentSquare()) then ISTimedActionQueue.add(OZPerformInjectionAction:new(player, otherPlayer)); end end


after these lines

ISWorldObjectContextMenu.onTakeGenerator = function(worldobjects, generator, player) local playerObj = getSpecificPlayer(player) if luautils.walkAdj(playerObj, generator:getSquare()) then ISTimedActionQueue.add(ISTakeGenerator:new(player, generator, 100)); end end

save and play :)


Last edited by ereng1; 30 Jun, 2019 @ 6:07am