Window: Difference between revisions

From PZwiki
No edit summary
m (Automated Formatting)
 
(30 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{Notice|Underconstruction}}
{{Header|Project Zomboid|Tiles|Barriers|Windows}}
It's Muff3ntop again, The old information is below this in the wiki, it gives some basic stuff but is not organized well. Time to update this to build 41
{{Page version|41.78.16}}
{{About|building windows|vehicle windows|Car Window|the business|Window (business)}}
{{Infobox tile
|name=Window
|model=Tile_Window_1.png
|icon=Tile_Window_1.png
|model2=Tile_Window_2.png
|icon2=Tile_Window_2.png
|model3=Tile_Window_3.png
|icon3=Tile_Window_3.png
|model4=Tile_Window_4.png
|icon4=Tile_Window_4.png
|model5=Tile_Window_5.png
|icon5=Tile_Window_5.png
<!--Move-->
|move_skill=[[Carpentry]]
|move_level=2
|move_tool=Crowbar
|weight=10
|item_id=movables_fixtures_windows_01_1
}}
A '''window''' is a tile used to provide access and vision through a wall.


<!--COMMENT: This section is for the language and the format of the page. The languages section is used for linking pages. The syntax for each page (regardless of language) will be: {{languages}}, linking every subpage with "/##" at the end, where "##" is the language code. E.g. "Nails/es" and "Nails/fr" even if there are redirects. -->
==Usage==
{{languages}}
A window allows the [[player]] to see, shoot, and enter specific buildings. [[Sheet Rope|Sheet ropes]] allow the player to descend out a window to ground level if the window is above the first floor. A large sound cue is also made when a window is broken, which can act as an alert to the player. It can take as little as 20 in-game minutes for a zombie to smash an unbarricaded window.
<!--COMMENT: The header template goes below the language template, there should be NOTHING in between. The format can be seen in the header template with a working explanation. The header connects categories and Version number. PLEASE ENTER THE VERSION AND INCREMENT NUMBER WHEN YOU MAKE OR EDIT A PAGE. It helps everyone else know how old the page is version-wise -->
{{header|The Game World|Items|type=Default|version=Version 39|incver=67.5|hidecat=true}}
<!--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. The information can be pulled from the relevant items.txt file in [Project Zomboid/media/scripts]. For more info on how to use the infobox, see: https://pzwiki.net/wiki/Template:Infobox_normal.  
-->{{Infobox normal
|display_name=?
|name_colour=See: [[Template:Infobox_nc]] for a list of available colour codes.
|name_text_colour=See: [[Template:Infobox_nc]] for a list of available colour codes.
|image=image.png
|alternate_image=image.png{{!}}32px
|alternate_name=?
|alternate_link=
|category=?
|weight=?
|function=?
|can_store_water=?
|rain_factor=?
|bandage_power=?
|alcohol=?
|wet_cooldown=?
|remote_range=?
|class_name=?
}}<!--COMMENT: General introductory for the item-->
An introduction to the item. Include [[Nails|links]] (example link is to Nails article) to other pages within the wiki where appropriate.  


<!--COMMENT: This is where the 'Table Of Contents' will go if it is needed-->
Windows can be [[barricade]]d using [[planks]], or metal. Barricading a window increases the time it will take for a zombie to break into a building. Metal sheet barricades will block vision entirely, while planks will reduce vision as more are added. Metal bar barricades do not inhibit vision.
__TOC__


== Usage ==
[[Curtains]] can be made out of sheets, or can be found pre-existing on the window, and are used to block vision windows. When covered, the window's line of sight is blocked from inside and outside. The curtains can only be opened and closed from the inside.
This section should contain all the uses for the item. Don't be afraid to separate topics into different sections, no matter how little information there might be.


== Crafting ==
Windows can be smashed by a player, dropping [[Broken Glass|broken glass]] onto the floor. there is also broken glass left in the window, the player must remove the broken glass from the window via the context menu, otherwise they may be cut while climbing through it. A weapon must be equipped for this option to be available. Breaking a window using your bare hands guarantees bleeding.
<!--Comment: Code in crafting template which uses item, see RecipeLookup Template for full list-->
{{Crafting table header}}
{{RecipeLookup|1008}}
{{Crafting table footer}}


== Distribution ==
Any open or smashed window can be climbed through, though it is not recommended to climb through windows on the second floor or above without an attached [[sheet rope]], or the player risks severe injury. Both players and zombies can climb through an open or smashed window.
<!--Comment: The locations this item can be found she be placed here. Precise values that can be put into tables can be found in the distribution.lua and vehicledistribution.lua files. -->
=== Buildings ===
Can be found inside [[Containers#Counters|Counters]] in these buildings:
*Fossoil
*Grocery Store
*Storage Unit
*Zippee Store


=== Vehicles ===
==Crafting==
Can be found in the trunk of [[vehicles]] with these professions:
Windows can not be crafted, and can only be picked up from already existing houses using the pick up option. This requires a [[crowbar]], and level 2 [[carpentry]]. The risk of breaking the window decreases as the players carpentry skill increases.
*Golf
*Police
*Taxi


== Trivia ==
==Code==
<!--Comment: a list of interesting facts directly related to the item-->
{{CodeBox|
* A list of interesting facts would go here
{{CodeSnip
  | lang = lua
  | line = false
  | retrieved = true
  | version = 41.78.16
  | code =
        if window:isSmashed() and not window:isGlassRemoved() and not barricade then
            if test == true then return true; end
            local option = context:addOption(getText("ContextMenu_RemoveBrokenGlass"), worldobjects, ISWorldObjectContextMenu.onRemoveBrokenGlass, window, player);
            if not playerObj:getPrimaryHandItem() then
                option.notAvailable = true
                local tooltip = ISWorldObjectContextMenu.addToolTip()
                tooltip.description = getText("Tooltip_RemoveBrokenGlassNoItem")
                option.toolTip = tooltip
            end
        end
end
}}


== Gallery ==
}}
<!--Comment: add relevant images into the container below, separated onto a different line. Captions are optional-->
<gallery>
Image.png|An example caption
Image.png|Another example caption
</gallery>


== Code ==
==See also==
sound RemoveBrokenGlass
*[[Wooden Window Frame]]
{
*[[Doors]]
category = Object,
clip
{
event = RemoveBrokenGlass,
}
}


sound OpenWindow
[[Category:Spiffo's Construction Crew (Project)]]
{
category = Object,
clip
{
event = windowopen,
}
}
 
sound CloseWindow
{
category = Object,
clip
{
event = windowclose,
}
}
 
sound SmashWindow
{
category = Object,
clip
{
event = smashwindow,
volume = 0.56,
}
}
== See also ==
<!--Comment: Location of links to relevant guides or other pages that may not have been mentioned on this page but still relate to the item in some way. -->
* [[Survival Guide]]
<!--Comment: Navbox placement here code example = {{Navbox/Construction}}-->
{{Navbox/Construction}}
 
<!--Comment: Any categories that this item may belong to, but are not included in the header can be listed here-->
[[Category:Boilerplates]]
 
 
 
 
 
 
{{languages|Window}}
{{header|Furniture|version=Version 41|incver=50}}
{{notice|improvement}}
[[File:window.jpg|thumb|Health is 0.5]]
{{About|building windows|vehicle windows|Car Window}}
A '''window''' allows the [[player]] and [[NPC|NPCs]] to see, shoot and enter specific buildings. [[Sheet Rope|Sheet ropes]] allow the player to descend out a window to ground level if the window is above the first floor.
 
A window may be [[barricade]]d using [[Plank|planks]], [[Nails|nails]] and a [[Hammer|hammer]], improving the players [[Skills|carpentry skill]]. Each barricade gives the window increased health. A maximum of 8 barricades can be done, 4 on the outside and 4 on the inside. Without barricades, a window is very frail and testing has shown that it takes as little as 20 in-game minutes for a zombie to smash open a window.
 
'''[[Curtains]]''' can be made out of sheets or can be found pre-existing on the window and are used to cover windows.  When covered, the window's line of sight is blocked from inside and outside. The curtains can only be opened and closed from the inside.
 
Climbing through windows is an ability that was added in version 0.2.0a. Both zombies and players can enter structures in this manner. As of 0.2.0R, it will be possible to snipe out of a window with a ranged weapon.
 
Windows can be instantly "smashed" by a survivor, dropping [[Broken Glass|broken glass]], for a quick escape but smashing the window has a chance cutting that character. Breaking a window using your bare hands guarantees bleeding. If a window is broken, the player can clear the broken glass to make sure they will not get cut. A weapon must be equipped for this option to be available. Furthermore, windows can be jumped out of from higher stories but will usually lead to severe injuries even if the survivor jumped out from only the second floor. Zombies can also leap out of windows from higher floors, but the injuries they get are lesser than the injuries a survivor may get.
 
===Removing Windows===
A [[crowbar]] can be used to remove windows from buildings by using the Pick-Up toggle mode.
[[category:tiles]]

Latest revision as of 13:24, 14 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
PlushSpiffo.pngThis article is about building windows. For vehicle windows, see Car Window. For the business, see Window (business).
Window
Tile Window 1.png
Tile Window 2.png
Tile Window 3.png
Tile Window 4.png
Tile Window 5.png
General
Category
Furniture
EncumbranceMoodle Icon HeavyLoad.png
10
Move
Skill (level)
Tool(s)
Crowbar
Technical
Item ID(s)
movables_fixtures_windows_01_1

A window is a tile used to provide access and vision through a wall.

Usage

A window allows the player to see, shoot, and enter specific buildings. Sheet ropes allow the player to descend out a window to ground level if the window is above the first floor. A large sound cue is also made when a window is broken, which can act as an alert to the player. It can take as little as 20 in-game minutes for a zombie to smash an unbarricaded window.

Windows can be barricaded using planks, or metal. Barricading a window increases the time it will take for a zombie to break into a building. Metal sheet barricades will block vision entirely, while planks will reduce vision as more are added. Metal bar barricades do not inhibit vision.

Curtains can be made out of sheets, or can be found pre-existing on the window, and are used to block vision windows. When covered, the window's line of sight is blocked from inside and outside. The curtains can only be opened and closed from the inside.

Windows can be smashed by a player, dropping broken glass onto the floor. there is also broken glass left in the window, the player must remove the broken glass from the window via the context menu, otherwise they may be cut while climbing through it. A weapon must be equipped for this option to be available. Breaking a window using your bare hands guarantees bleeding.

Any open or smashed window can be climbed through, though it is not recommended to climb through windows on the second floor or above without an attached sheet rope, or the player risks severe injury. Both players and zombies can climb through an open or smashed window.

Crafting

Windows can not be crafted, and can only be picked up from already existing houses using the pick up option. This requires a crowbar, and level 2 carpentry. The risk of breaking the window decreases as the players carpentry skill increases.

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide
Retrieved: Build 41.78.16
if window:isSmashed() and not window:isGlassRemoved() and not barricade then
            if test == true then return true; end
            local option = context:addOption(getText("ContextMenu_RemoveBrokenGlass"), worldobjects, ISWorldObjectContextMenu.onRemoveBrokenGlass, window, player);
            if not playerObj:getPrimaryHandItem() then
                option.notAvailable = true
                local tooltip = ISWorldObjectContextMenu.addToolTip()
                tooltip.description = getText("Tooltip_RemoveBrokenGlassNoItem")
                option.toolTip = tooltip
            end
        end
	end

See also