Crash Helmet: Difference between revisions

From PZwiki
mNo edit summary
(Added a code section and clothing navbox.)
Line 24: Line 24:
| class_name = item Hat_CrashHelmet
| class_name = item Hat_CrashHelmet
}}
}}
The '''Crash Helmet''' is a helmet used by motorcyclists. Crash helmets have numerous colour variations.
The '''Crash Helmet''' is a helmet worn by motorcyclists. Crash helmets have numerous color variations.


==Usage==
==Usage==
Crash Helmets completely protects the wearer's head from scratches and bites. Motorcycle helmets provide a great amount of insulation and wind resistance. The helmet has a very low chance of falling off when the wearer is attacked.
Crash Helmets completely protect the wearer's head from scratches and bites. Motorcycle helmets provide a great amount of insulation and wind resistance. The helmet also has a very low chance of falling off when the wearer is attacked.
==Distribution==
==Distribution==
Crash helmets can be found on motorcyclist [[zombie]]s.
Crash helmets can be found on motorcyclist [[zombie]]s.
Line 34: Line 34:
{{Body location|body_location=Hat}}
{{Body location|body_location=Hat}}


== Code ==
<!--Comment: all the code related to the item found in txt files should be placed here-->
<!--COMMENT: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.-->
'''''From clothing_hats.txt (Project Zomboid directory/media/scripts/clothing)'''''


<!--COMMENT: Be sure to include this "Retrieved" template, filling in the version of the game the code was retrieved.-->
{{Retrieved|version=41|incver=56}}
<pre>  item Hat_CrashHelmet
{
Type = Clothing,
DisplayName = Crash Helmet,
ClothingItem = Hat_CrashHelmet,
BodyLocation = Hat,
Icon = HelmetCrash,
BloodLocation = Head,
CanHaveHoles = false,
        BiteDefense = 100,
        ScratchDefense = 100,
        ChanceToFall = 0,
        Insulation = 0.8,
        WindResistance = 0.8,
}
</pre>


{{clear}}
{{Navbox clothing}}

Revision as of 17:19, 19 November 2021

Profession engineer.png
This is a testing feature.
This article is about an item or mechanic that is currently in testing and not part of the stable version of the game.
The Game WorldItemsClothingCrash Helmet
Crash Helmet
Crash Helmet
Crash Helmet Icon
General
Category Clothing
Encumbrance
Heavy Load
1.0
Body location Hat
Protection
Scratch defense 100
Bite defense 100
Insulation
Insulation 0.8
Wind resistance 0.8
Technical details
Item ID item Hat_CrashHelmet

The Crash Helmet is a helmet worn by motorcyclists. Crash helmets have numerous color variations.

Usage

Crash Helmets completely protect the wearer's head from scratches and bites. Motorcycle helmets provide a great amount of insulation and wind resistance. The helmet also has a very low chance of falling off when the wearer is attacked.

Distribution

Crash helmets can be found on motorcyclist zombies.

Body location

Protection Hat.png
  • Head

Code

From clothing_hats.txt (Project Zomboid directory/media/scripts/clothing)

Retrieved: Build 41.56

  item Hat_CrashHelmet
	{
		Type = Clothing,
		DisplayName = Crash Helmet,
		ClothingItem = Hat_CrashHelmet,
		BodyLocation = Hat,
		Icon = HelmetCrash,
		BloodLocation = Head,
		CanHaveHoles = false,
        BiteDefense = 100,
        ScratchDefense = 100,
        ChanceToFall = 0,
        Insulation = 0.8,
        WindResistance = 0.8,
	}