Beret: Difference between revisions

From PZwiki
m (Added code source)
(Added variants, updated code)
Line 9: Line 9:
| alternate_image=BeretGrey.png
| alternate_image=BeretGrey.png
| alternate_image2=BeretGreen.png
| alternate_image2=BeretGreen.png
| alternate_image3=HatBeretArmy.png
<!-- General -->
<!-- General -->
| category=Clothing
| category=Clothing
| weight=0.5
| weight=''See [[#Variants|Variants]]''
| body_location=Hat
| body_location=Hat
<!-- Speed -->
<!-- Speed -->
<!-- Protection -->
<!-- Protection -->
<!-- Insulation -->
<!-- Insulation -->
| insulation=0.3
| insulation=''See [[#Variants|Variants]]''
| wind_resistance=''See [[#Variants|Variants]]''
<!-- Technical details -->
<!-- Technical details -->
| class_name=Base.Hat_Beret<br>Base.Hat_BeretArmy
| class_name=''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 ==
{{Body location|body_location=Mask}}
{{Body location|body_location=Hat}}
 
==Variants==
There are three variants of the beret.
{| class="pztable sortable" style="text-align:center;"
! Icon
! Name
! width="50px" | [[File:Moodle_heavyLoad.png|link=|Weight]]
! width="50px" | [[File:UI_Heat_Protect.png|link=|Insulation]]
! width="50px" | [[File:UI_Wind_Protect.png|link=|Wind Resistance]]
! width="220px" | Base ID
|-
| <span id="Beret">[[File:BeretGrey.png]]</span>
| Beret
| 0.5
| 30%
| -
| {{ID|Base.Hat_Beret}}
|-
| <span id="ArmyBeret">[[File:BeretGreen.png]]</span>
| Army Beret
| 0.5
| 30%
| -
| {{ID|Base.Hat_BeretArmy}}
|-
| <span id="PeakedArmyCap">[[File:HatBeretArmy.png]]</span>
| Peaked Army Cap
| 0.3
| 15%
| 10%
| {{ID|Base.Hat_PeakedCapArmy}}
|-
|}
 


== Trivia ==
== Trivia ==
Line 30: Line 67:
== Code ==
== Code ==
'''''From clothing_hats.txt (Project Zomboid directory/media/scripts/clothing)'''''<br>
'''''From clothing_hats.txt (Project Zomboid directory/media/scripts/clothing)'''''<br>
[[File:BeretGrey.png|Beret]] ''Beret''
{{Retrieved|version=41|incver=65}}
{{Retrieved|version=41|incver=65}}
<pre> item Hat_Beret
<pre> item Hat_Beret
Line 43: Line 81:
BloodLocation = Head,
BloodLocation = Head,
Weight = 0.5,
Weight = 0.5,
</pre>
[[File:BeretGreen.png|Army Beret]] ''Army Beret''
{{Retrieved|version=41|incver=65}}
<pre> 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,
</pre>
[[File:HatBeretArmy.png|Peaked Army Cap]] ''Peaked Army Cap''
{{Retrieved|version=41|incver=65}}
<pre> item Hat_PeakedCapArmy
DisplayCategory = Accessory,
Type = Clothing,
DisplayName = Peaked Army Cap,
ClothingItem = Hat_PeakedCapArmy,
BodyLocation = Hat,
Icon = HatBeretArmy,
CanHaveHoles = false,
ChanceToFall = 60,
BloodLocation = Head,
Insulation = 0.15,
WindResistance = 0.1,
Weight = 0.3,
</pre>
</pre>


{{Navbox clothing}}
{{Navbox clothing}}

Revision as of 23:18, 22 January 2022

Beret
Beret
BeretGrey.png BeretGreen.png HatBeretArmy.png
General
Category Clothing
Encumbrance
Heavy Load
See Variants
Body location Hat
Insulation
Insulation See Variants
Wind resistance See Variants
Technical details
Item ID See Variants

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 Weight Insulation Wind Resistance Base ID
BeretGrey.png Beret 0.5 30% - Base.Hat_Beret
BeretGreen.png Army Beret 0.5 30% - Base.Hat_BeretArmy
HatBeretArmy.png Peaked Army Cap 0.3 15% 10% Base.Hat_PeakedCapArmy


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

From clothing_hats.txt (Project Zomboid directory/media/scripts/clothing)
Beret Beret Retrieved: Build 41.65

	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 Retrieved: Build 41.65

	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,

Peaked Army Cap Peaked Army Cap Retrieved: Build 41.65

	item Hat_PeakedCapArmy
		DisplayCategory	= Accessory,
		Type		= Clothing,
		DisplayName	= Peaked Army Cap,
		ClothingItem	= Hat_PeakedCapArmy,
		BodyLocation	= Hat,
		Icon		= HatBeretArmy,
		CanHaveHoles	= false,
		ChanceToFall	= 60,
		BloodLocation	= Head,
		Insulation	= 0.15,
		WindResistance	= 0.1,
		Weight		= 0.3,