Beret: Difference between revisions

From PZwiki
m (Update image link)
m (Insert empty line above each {{Navbox}})
(22 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Languages}}
{{Header|Project Zomboid|Items|Clothing|Headwear|Hats}}
{{Header|The Game World|Items|Clothing|version=Version 41|incver=65}}
{{Page version|41.65}}
{{Infobox clothing
{{Infobox item
| display_name=Beret
|name=Beret
| name_colour=Clothing
|model=Beret_Grey_Model.png
| name_text_colour=Clothing
|icon=BeretGrey.png
| image=
|model2=BeretGreen_Model.png
| image_width=128px
|icon2=BeretGreen.png
| alternate_image=BeretGrey.png
|model3=Beret_Army_Model.png
| alternate_image2=BeretGreen.png
|icon3=HatBeretArmy.png
| alternate_image3=HatBeretArmy.png
|icon_name3=Army Beret
<!-- General -->
<!-- General -->
| category=Clothing
|category=Clothing
| weight=''See [[#Variants|Variants]]''
|weight=''See [[#Variants|Variants]]''
| body_location=Hat
|equipped=Hat
<!-- Speed -->
|insulation=''See [[#Variants|Variants]]''
<!-- Protection -->
|wind_resistance=''See [[#Variants|Variants]]''
<!-- Insulation -->
| insulation=''See [[#Variants|Variants]]''
| wind_resistance=''See [[#Variants|Variants]]''
<!-- Technical details -->
<!-- Technical details -->
| class_name=''See [[#Variants|Variants]]''
|item_id=''See [[#Variants|Variants]]''
| no_style=
}}
}}A '''beret''' is a hat with no protection and low insulation.
A '''beret''' is a hat with no protection and low insulation.


==Body location==
==Body location==
Line 29: Line 26:
==Variants==
==Variants==
There are three variants of the beret.
There are three variants of the beret.
{| class="pztable sortable" style="text-align:center;"
{| class="wikitable theme-red sortable" style="text-align: center;"
! Icon
! Icon
! Name
! Name
! width="50px" | [[File:Moodle_Icon_HeavyLoad.png|link=|Weight]]
! style="width: 50px;" | [[File:Moodle_Icon_HeavyLoad.png|link=|Encumbrance]]
! width="50px" | [[File:UI_Heat_Protect.png|link=|Insulation]]
! style="width: 50px" | [[File:UI_Heat_Protect.png|link=|Insulation]]
! width="50px" | [[File:UI_Wind_Protect.png|link=|Wind Resistance]]
! style="width: 50px" | [[File:UI_Wind_Protect.png|link=|Wind resistance]]
! width="220px" | Base ID
! style="width: 220px" | Item ID
|-
|-
| <span id="Beret">[[File:BeretGrey.png]]</span>
| <span id="Beret">[[File:BeretGrey.png]]</span>
Line 52: Line 49:
|}
|}


==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|Hat_Beret|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>Hat_Beret distribution
        <span class="mw-customtoggle-togglebox-Hat_Beret" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Hat_Beret">
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Containers}}
    ! Building / Room
    ! Container
    ! Rolls
    ! Chance
    |-
    | all
    | {{ll|locker}}
    | 4
    | 0.5
    |-
    | all
    | {{ll|wardrobe}}
    | 4
    | 0.5
    |-
    | clothingstorage
    | {{ll|crate}}
    | 4
    | 6.0
    |-
    | clothingstore
    | {{ll|counter}}
    | 4
    | 6.0
    |}
</div>
<div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Vehicles}}
    ! Vehicle Type/Location
    ! Rolls
    ! Chance
    |-
    | ClothingTruckBed
    | 4
    | 0.6
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Hat_Beret" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Hat_Beret|41.78.16-->
<!--BOT FLAG|Hat_BeretArmy|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>Hat_BeretArmy distribution
        <span class="mw-customtoggle-togglebox-Hat_BeretArmy" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Hat_BeretArmy">
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Containers}}
    ! Building / Room
    ! Container
    ! Rolls
    ! Chance
    |-
    | all
    | {{ll|locker}}
    | 4
    | 8.0
    |-
    | all
    | {{ll|militarycrate}}
    | 4
    | 10.0
    |-
    | armyhanger
    | {{ll|locker}}
    | 4
    | 10.0
    |-
    | armysurplus
    | {{ll|counter}}
    | 4
    | 4.0
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Hat_BeretArmy" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Hat_BeretArmy|41.78.16-->


==Trivia==
==Trivia==
Line 57: Line 146:


==Code==
==Code==
'''''From clothing_hats.txt (Project Zomboid directory/media/scripts/clothing)'''''<br>
[[File:BeretGrey.png|Beret]] ''Beret''
[[File:BeretGrey.png|Beret]] ''Beret''
{{Retrieved|version=41|incver=65}}
{{CodeBox
<pre>
| {{CodeSnip
item Hat_Beret
  | lang = java
DisplayCategory = Accessory,
  | line = true
Type = Clothing,
  | start = 349
DisplayName = Beret,
  | source = clothing_hats.txt
ClothingItem = Hat_Beret,
  | retrieved = true
BodyLocation = Hat,
  | version = 41.78.16
Icon = BeretGrey,
  | code =
CanHaveHoles = false,
item Hat_Beret
ChanceToFall = 60,
{
Insulation = 0.3,
    DisplayCategory = Accessory,
BloodLocation = Head,
Type = Clothing,
Weight = 0.5,
DisplayName = Beret,
</pre>
ClothingItem = Hat_Beret,
BodyLocation = Hat,
 
Icon = BeretGrey,
CanHaveHoles = false,
ChanceToFall = 60,
Insulation = 0.3,
BloodLocation = Head,
Weight = 0.5,
}
}}
}}
 
[[File:BeretGreen.png|Army Beret]] ''Army Beret''
[[File:BeretGreen.png|Army Beret]] ''Army Beret''
{{Retrieved|version=41|incver=65}}
{{CodeBox
<pre>
| {{CodeSnip
item Hat_BeretArmy
  | lang = java
DisplayCategory = Accessory,
  | line = true
Type = Clothing,
  | start = 363
DisplayName = Army Beret,
  | source = clothing_hats.txt
ClothingItem = Hat_BeretArmy,
  | retrieved = true
BodyLocation = Hat,
  | version = 41.78.16
Icon = BeretGreen,
  | code =
CanHaveHoles = false,
item Hat_BeretArmy
ChanceToFall = 60,
    {
Insulation = 0.3,
        DisplayCategory = Accessory,
BloodLocation = Head,
        Type = Clothing,
Weight = 0.5,
        DisplayName = Army Beret,
</pre>
        ClothingItem = Hat_BeretArmy,
        BodyLocation = Hat,
        Icon = BeretGreen,
        CanHaveHoles = false,
        ChanceToFall = 60,
        Insulation = 0.3,
        BloodLocation = Head,
        Weight = 0.5,
    }
}}
}}
 
==See also==


{{Navbox clothing}}
{{Navbox items|headwear}}

Revision as of 13:43, 25 April 2024

Spiffo controlyourself.png
This page was last updated for an older version (41.65).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
Beret
Beret Grey Model.png
BeretGreen Model.png
Beret Army Model.png
General
Category
Clothing
Encumbrance
Moodle Icon HeavyLoad.png
Equipped
Hat
Properties
Insulation
Wind resistance
Technical
Item ID

A beret is a hat with no protection and low insulation.

Body location

Protection Hat.png
  • Head

Variants

There are three variants of the beret.

Icon Name Encumbrance Insulation Wind resistance Item ID
BeretGrey.png Beret 0.5 30% - Base.Hat_Beret
BeretGreen.png Army Beret 0.5 30% - Base.Hat_BeretArmy

Distribution

The loot distributions can be found in the table(s) below.

Hat_Beret distribution Show / Hide
Containers
Building / Room Container Rolls Chance
all locker 4 0.5
all wardrobe 4 0.5
clothingstorage crate 4 6.0
clothingstore counter 4 6.0
Vehicles
Vehicle Type/Location Rolls Chance
ClothingTruckBed 4 0.6
Hat_BeretArmy distribution Show / Hide
Containers
Building / Room Container Rolls Chance
all locker 4 8.0
all militarycrate 4 10.0
armyhanger locker 4 10.0
armysurplus counter 4 4.0

Trivia

  • The beret was created as a French fashion clothing item but was also adopted by the US Army. By 1979, berets in the military were restricted to being worn by special forces and ranger units.

Code

Beret Beret

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\clothing\clothing_hats.txt

Retrieved: Build 41.78.16
item Hat_Beret
	{
	    DisplayCategory = Accessory,
		Type = Clothing,
		DisplayName = Beret,
		ClothingItem = Hat_Beret,
		BodyLocation = Hat,

		Icon = BeretGrey,
		CanHaveHoles = false,
		ChanceToFall = 60,
		Insulation = 0.3,
		BloodLocation = Head,
		Weight = 0.5,
	}

Army Beret Army Beret

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\clothing\clothing_hats.txt

Retrieved: Build 41.78.16
item Hat_BeretArmy
    {
        DisplayCategory = Accessory,
        Type = Clothing,
        DisplayName = Army Beret,
        ClothingItem = Hat_BeretArmy,
        BodyLocation = Hat,
        Icon = BeretGreen,
        CanHaveHoles = false,
        ChanceToFall = 60,
        Insulation = 0.3,
        BloodLocation = Head,
        Weight = 0.5,
    }

See also