Barbed Fence: Difference between revisions

From PZwiki
mNo edit summary
m (Automated Formatting)
 
(28 intermediate revisions by 7 users not shown)
Line 1: Line 1:
__NOTOC__
{{Header|Project Zomboid|Tiles|Barriers|Fences}}
{{languages|:Barbed Fence}}
{{Page version|41.78.16}}
{{header|The Game World|Items|Construction|Carpentry|version=Version 37|incver=13}}<!--Comment: This section is for the infobox which will be positioned on the right of the page. Image.png is the default question mark image-->{{Items
{{Infobox tile
|image = Barbed fence.png
|model=BarbedFence_Carpentry.png
|weight = ?
|icon=BarbedFence_Carpentry.png
|icon_name=Barbed Fence
|category=Fence
|size=1
|function=Slow down [[zombie]]s <br>Stop [[vehicles]]<br>Injure [[Player]]s
<!--Build-->
|build_skill=[[Carpentry]]
|build_level=5
|build_tool_tag=Hammer
|ingredients=<small>1 × [[File:Wire.png|20px|link=Barbed Wire]] [[Barbed Wire]]</small>
|tile_id=fencing_01_20
|tile_id2=fencing_01_21
}}
}}
<!--Comment: Description of Item and General Information-->Barbed wire fences can help wall off and defend an area, while still allowing you to see through them.
A '''barbed fence''' is a constructable fence tile.


==Overview==
The wooden fence is a small fence that can help block off an area, while still allowing the [[player]] to see over it. Zombies and players are both able to climb over low fences, in the same way they can jump through [[window]]s. Hoards are able to demolish a fence, if there are enough are pathing over the fence at once.


According to the LUA file Barbed Fence is supposed to have a chance to scratch, however, this is not implemented as of yet.  
Like all other small fences, a [[Sheet Rope|sheet rope]] can be attached, for the player to climb down the other side. Unlike other small fences, barbed fences have a 25% chance of scratching players when hopped over. Barbed fences do not injure zombies.


''(tooltip2.description = "Slows movement and can inflict surface wounds " )''
In order to place a barbed fence you will first need a [[Wooden Stake|wooden stake]] to be placed on the tile that you want to build a barbed fence on.


In addition to the [[Barbed_Wire|barbed wire]], you also will need a [[Wooden_Stake|wooden stake]] to be placed in order to make the barbed fence.
==Crafting==
Currently, each barbed wire will provide one tile of fencing, with or without the wooden stake.
===Carpentry===
 
{{Main|Carpentry}}
== Crafting ==
{{Crafting/sandbox2
{| class="wikitable sortable" style="text-align:center;"
|barbed_fence
|-
}}
! Output
! class="unsortable" | Ingredients
! class="unsortable" | Description
! Skill Level
{{RecipeLookup|1028}}
|}
==Code==
'''''From ISBuildMenu.lua (media/lua/client/BuildingObjects/ISUI)'''''
<nowiki>
local barbedOption = subMenu:addOption(getText("ContextMenu_Barbed_Fence"), worldobjects, ISBuildMenu.onBarbedFence, square, player);
local tooltip2 = ISBuildMenu.canBuild(0,0,0,0,1,5,barbedOption, player);
-- we add that we need a Barbed wire too
if not getSpecificPlayer(player):getInventory():contains("BarbedWire") and not ISBuildMenu.cheat then
tooltip2.description = tooltip2.description .. " <RGB:1,0,0>" .. getItemText("Barbed wire") .. " 0/1 ";
barbedOption.onSelect = nil;
barbedOption.notAvailable = true;
else
tooltip2.description = tooltip2.description .. " <RGB:1,1,1>" .. getItemText("Barbed wire") .. " 1 ";
end
tooltip2:setName(getText("ContextMenu_Barbed_Fence"));
tooltip2.description = getText("Tooltip_craft_barbedFenceDesc") .. tooltip2.description;
tooltip2:setTexture("fencing_01_20");
ISBuildMenu.requireHammer(barbedOption)


 
==History==
ISBuildMenu.onBarbedFence = function(worldobjects, square, player)
{| class="wikitable theme-red" width="550" style="text-align:center;"
-- sprite, northSprite, corner
local fence = ISWoodenWall:new("fencing_01_20", "fencing_01_21", nil);
-- we can place our fence every where
-- fence.canBeAlwaysPlaced = true;
fence.hoppable = true;
    fence.canBarricade = false
    fence.modData["xp:Woodwork"] = 5;
fence.modData["need:Base.BarbedWire"] = "1";
fence.player = player
fence.name = "Barbed Fence"
    getCell():setDrag(fence, player);
end
</nowiki>
 
== History ==
 
{| class="wikitable" width="550" style="text-align:center;"
|-
|-
! Alpha ||
! Alpha ||
|-
|-
| IWBUMS Build 35.7 || Fixed wired fence wire check before building
| IWBUMS Build 35.7 || Fixed wired fence wire check before building
Line 69: Line 42:
|}
|}


==Trivia==
*The barbed fence may play a role in looking after animals, expected in [[Build 42]]{{sup|Future}}
==See also==
*[[Carpentry]]
*[[Wooden stake]]


{{Navbox construction|carpentry}}


==See Also==
*[[Carpentry_Guide|Carpentry Guide]]
{{Navbox/Construction}}
[[Category:Spiffo's Construction Crew (Project)]]
[[Category:Spiffo's Construction Crew (Project)]]
[[Category:Carpentry]]

Latest revision as of 06:24, 14 April 2024

Project ZomboidTilesBarriersFencesBarbed Fence
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Barbed Fence
BarbedFence Carpentry.png
[[File:{{{icon2}}}||]]
[[File:{{{icon3}}}||]]
[[File:{{{icon4}}}||]]
[[File:{{{icon5}}}||]]
General
Category
Fence
Size
1 tile
Function
Slow down zombies
Stop vehicles
Injure Players
Build
Skill (level)
Tool(s)
Ingredients
Technical
Tile ID(s)
fencing_01_20 fencing_01_21

A barbed fence is a constructable fence tile.

Overview

The wooden fence is a small fence that can help block off an area, while still allowing the player to see over it. Zombies and players are both able to climb over low fences, in the same way they can jump through windows. Hoards are able to demolish a fence, if there are enough are pathing over the fence at once.

Like all other small fences, a sheet rope can be attached, for the player to climb down the other side. Unlike other small fences, barbed fences have a 25% chance of scratching players when hopped over. Barbed fences do not injure zombies.

In order to place a barbed fence you will first need a wooden stake to be placed on the tile that you want to build a barbed fence on.

Crafting

Carpentry

Main article: Carpentry
Product Ingredients Tools Requirements Workstation XP
BarbedFence Carpentry.png
Barbed Fence
BarbedWire.png Barbed Wire ×1
Hammer.png
Hammer (tag)
Carpentry 5 none 1.25 Carpentry

History

Alpha
IWBUMS Build 35.7 Fixed wired fence wire check before building
2.9.9.17 Increased the spawn rate

Trivia

  • The barbed fence may play a role in looking after animals, expected in Build 42Future

See also