Project Zomboid

Project Zomboid

Unbreakable Metal Fences + Gates! (Build 41+)
dtoxic 2022 年 12 月 25 日 下午 4:31
Question
Did something change? i built High wired fence and it's destructible

i do use some other mods,so maybe it;s a compatibility issue?

Improved Build Menu [Build 41.51+] (basic)
LeGourmetRevolution

could you please check?
< >
正在显示第 1 - 5 条,共 5 条留言
oscarpgodspear 2023 年 1 月 15 日 上午 10:46 
Checked, they are no compatible, you need to disable Improved Build and this mod will work, the good news is that once you build the door or the fence they stay unthumpable when you enable the Improved Build mod again.
dtoxic 2023 年 1 月 15 日 下午 12:47 
ok thx for the info
76561198392776101 2023 年 2 月 11 日 下午 9:18 
Can you add a setting where at some point the fence WILL break towards a certain amount of zombies? Like it can handle like 1 or maybe even 10 but it will eventually break when the entirety of the united ♥♥♥♥♥♥♥ states is surrounding your house's fence-line
cort.x 2024 年 1 月 5 日 下午 1:54 
I tried in a brand new save with only 3 mods but it doesnt work. I fix the more built code as you explain and I subcribe the mod but those fences are still breakable.

Here is the code, does it ok to you ?

function ISHighMetalFence:addPart(x, y, z, north, sprite)
local cell = getWorld():getCell()
if not north then
sq = cell:getGridSquare(x, y + 1, z)
else
sq = cell:getGridSquare(x + 1, y - 1, z)
end

self.javaObject = IsoThumpable.new(cell, sq, sprite, north, self)

self.javaObject:setThumpSound("ZombieThumpMetal")
self.javaObject:setIsThumpable(false)
sq:AddSpecialObject(self.javaObject)
self.javaObject:transmitCompleteItemToServer()
end
cort.x 2024 年 1 月 6 日 上午 10:48 
引用自 cort.x
I tried in a brand new save with only 3 mods but it doesnt work. I fix the more built code as you explain and I subcribe the mod but those fences are still breakable.

Here is the code, does it ok to you ?

function ISHighMetalFence:addPart(x, y, z, north, sprite)
local cell = getWorld():getCell()
if not north then
sq = cell:getGridSquare(x, y + 1, z)
else
sq = cell:getGridSquare(x + 1, y - 1, z)
end

self.javaObject = IsoThumpable.new(cell, sq, sprite, north, self)

self.javaObject:setThumpSound("ZombieThumpMetal")
self.javaObject:setIsThumpable(false)
sq:AddSpecialObject(self.javaObject)
self.javaObject:transmitCompleteItemToServer()
end
I tried different way and it works by putting "more built" at the mod load order bottom
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50