Window: Difference between revisions

From PZwiki
No edit summary
No edit summary
Line 67: Line 67:


== Code ==
== Code ==
<!--Comment: all the code related to the item found in txt files should be placed here-->
sound RemoveBrokenGlass
<!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.-->
{
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
category = Object,
<!--Comment: Add the retrieved template so both visitors and editors can tell how old the code is and whether or not it may need to be updated.-->
clip
{{Retrieved|version=39|incver=67.5}}
{
<!--Comment: Example code taken from file. Items.txt and Newitems.txt are usually the source of the information at this time for basic items. Nowiki is used to display the text only, example used is RoastingPan.-->
event = RemoveBrokenGlass,
<pre> item RoastingPan
}
Weight = 1.3,
}
Type = Normal,
DisplayName = Roasting Pan,
Icon = Roastingpan,
MetalValue = 60,</pre>


sound OpenWindow
{
category = Object,
clip
{
event = windowopen,
}
}
sound CloseWindow
{
category = Object,
clip
{
event = windowclose,
}
}
sound SmashWindow
{
category = Object,
clip
{
event = smashwindow,
volume = 0.56,
}
}
== See also ==
== 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. -->
<!--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. -->

Revision as of 23:28, 24 August 2021

Hammer.png
This article is currently under construction.
It is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well.
If this page has not been updated in a while, please replace this notice with {{Improve}}. Last edit was 24/08/2021.

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


?
?
?
General
Category ?
Encumbrance
Heavy Load
?
Function ?
Can store water ?
Rain factor ?
Bandage power
Bleeding
?
Alcohol
Drunk
?
Time to dry
Wet
?
Remote range ? tiles
Technical details
Base ID ?

An introduction to the item. Include links (example link is to Nails article) to other pages within the wiki where appropriate.

Usage

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

Template:Crafting table header |- |
| | | ||
||
||
||
||
||
||
||
||
||
||
Template:Crafting table footer

Distribution

Buildings

Can be found inside Counters in these buildings:

  • Fossoil
  • Grocery Store
  • Storage Unit
  • Zippee Store

Vehicles

Can be found in the trunk of vehicles with these professions:

  • Golf
  • Police
  • Taxi

Trivia

  • A list of interesting facts would go here

Gallery

Code

sound RemoveBrokenGlass { category = Object, clip { event = RemoveBrokenGlass, } }

sound OpenWindow { category = Object, clip { event = windowopen, } }

sound CloseWindow { category = Object, clip { event = windowclose, } }

sound SmashWindow { category = Object, clip { event = smashwindow, volume = 0.56, } }

See also

Template:Navbox/Construction




FurnitureWindow
WhiskeyHalf.png
This article may be in need of improvement.
Editors are encouraged to add any missing information to the article, while verifying that the article's current content is correct.
Health is 0.5
PlushSpiffo.pngThis article is about building windows. For vehicle windows, see Car Window.

A window allows the player and NPCs 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 window may be barricaded using planks, nails and a hammer, improving the players 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, 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.