Project Zomboid

Project Zomboid

zombies don't thump some walls [B42]
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
vsnegupal  [udvikler] 7. jan. kl. 21:55
Suggestion for possible authors
Here's the code from Indestructible Log Walls, which worked perfectly in B41:
local old_onLogWall = ISBuildMenu.onLogWall ISBuildMenu.onLogWall = function(...) local old_wallNew = ISWoodenWall.new ISWoodenWall.new = function(...) local wall = old_wallNew(...) wall.isThumpable = false return wall end old_onLogWall(...) ISWoodenWall.new = old_wallNew end
I suppose if someone could adapt it to the logic I'm promoting here,
he'd be
a real human bean...
and a real hero.
Sidst redigeret af vsnegupal; 8. jan. kl. 2:11
< >
Viser 1-2 af 2 kommentarer
UnCheat 8. jan. kl. 2:15 
I did try to put on server folder but it did not work:

local oldNew = ISBuildIsoEntity.new local unthumpableTable = { "BrickWallLvl1", "BrickWallLvl2", "BrickWindowFrameLvl1", "BrickWindowFrameLvl2", "LogWall", "MetalBigMetalFence", "MetalWallLvl1", "MetalWallLvl2", "MetalWindowFrameLvl1", "MetalWindowFrameLvl2", "StoneWall", "StoneWindowFrame", "WoodDoorFrameLvl1", "WoodenWallLvl2", "WoodenWallLvl3", "WoodenWindowFrameLvl2", "WoodenWindowFrameLvl3", "WoodenPole" } local isSet = {} for _, v in ipairs (isSet) do isSet[v] = true end ISBuildIsoEntity.new = function(self,character, objectInfo, buildPanelLogic) local o = oldNew(self,character, objectInfo, buildPanelLogic) print(o.name) if isSet[(o.name)] then o.isThumpable = false end return o end
Sidst redigeret af UnCheat; 8. jan. kl. 2:24
vsnegupal  [udvikler] 8. jan. kl. 2:31 
i'll test it soon
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50