Ranger Hat: Difference between revisions

From PZwiki
No edit summary
(→‎Code: code box update)
Line 24: Line 24:
{{Body location|body_location=Hat}}
{{Body location|body_location=Hat}}
== Code ==
== Code ==
'''''From clothing_hats.txt (Project Zomboid directory/media/scripts/clothing)'''''
{{CodeBox
{{Retrieved|version=41|incver=65}}
| {{CodeSnip
<pre> item Hat_Ranger
  | lang = java
DisplayCategory = Accessory,
  | line = true
Type = Clothing,
  | start = 0
DisplayName = Ranger Hat,
  | source = clothing_hats.txt
ClothingItem = Hat_Ranger,
  | retrieved = true
BodyLocation = Hat,
  | version = 41
Icon = HatRanger,
  | incver = 65
CanHaveHoles = false,
  | code =
ChanceToFall = 40,
item Hat_Ranger
BloodLocation = Head,
{
Insulation = 0.45,
  DisplayCategory   = Accessory,
WindResistance = 0.40,
  Type             = Clothing,
WaterResistance = 0.25,
  DisplayName       = Ranger Hat,
</pre>
  ClothingItem     = Hat_Ranger,
  BodyLocation     = Hat,
  Icon             = HatRanger,
  CanHaveHoles     = false,
  ChanceToFall     = 40,
  BloodLocation     = Head,
  Insulation       = 0.45,
  WindResistance   = 0.40,
  WaterResistance   = 0.25,
}
  }}
}}
 
==Trivia==
==Trivia==
*The ranger hat isn't available for selection by those with the park ranger [[occupation]] in the character creation menu.
*The ranger hat isn't available for selection by those with the park ranger [[occupation]] in the character creation menu.

Revision as of 12:07, 8 January 2024

The Game WorldItemsClothingRanger Hat
Ranger Hat
HatRanger.png
General
Category Clothing
Encumbrance
Heavy Load
1.0
Body location Hat
Insulation
Insulation 0.45
Wind resistance 0.40
Water resistance 0.25
Technical details
Item ID Base.Hat_Ranger

The Ranger Hat is a hat that's used by park rangers throughout Knox Country.

Usage

The ranger hat provides a decent amount of insulation, wind resistance and a minor amount of water resistance. Ranger hats have a high chance of being knocked off of the wearer when they're attacked.

Distribution

Ranger hats can be found on ranger zombies.

Body location

Protection Hat.png
  • Head

Code

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.65
item Hat_Ranger
{
  DisplayCategory   = Accessory,
  Type              = Clothing,
  DisplayName       = Ranger Hat,
  ClothingItem      = Hat_Ranger,
  BodyLocation      = Hat,
  Icon              = HatRanger,
  CanHaveHoles      = false,
  ChanceToFall      = 40,
  BloodLocation     = Head,
  Insulation        = 0.45,
  WindResistance    = 0.40,
  WaterResistance   = 0.25,
}

Trivia

  • The ranger hat isn't available for selection by those with the park ranger occupation in the character creation menu.