Hood: Difference between revisions
m (Remove 120px) |
No edit summary |
||
Line 1: | Line 1: | ||
{{languages|Hood}} | {{languages|Hood}} | ||
{{header|The Game World|Items|type=Mechanic|version=Version | {{header|The Game World|Items|type=Mechanic|version=Version 41|incver=78}}{{Stub}}{{Infobox vehicle part | ||
|display_name = Hood | |display_name = Hood | ||
|name_colour = mechanic | |name_colour = mechanic | ||
Line 16: | Line 16: | ||
Having a hood fitted in a [[multiplayer]] game allows it to be locked using the [[Car Key|car key]], preventing other players from scrapping the vehicle for parts. | Having a hood fitted in a [[multiplayer]] game allows it to be locked using the [[Car Key|car key]], preventing other players from scrapping the vehicle for parts. | ||
==Code== | |||
'''''From vehicleitems.txt (Project Zomboid directory/media/scripts/vehicles/)''''' | |||
{{Retrieved|version=41|incver=78}} | |||
<pre> | |||
item EngineDoor1 | |||
{ | |||
DisplayCategory = VehicleMaintenance, | |||
Weight = 15.0, | |||
Type = Normal, | |||
DisplayName = Hood, | |||
Icon = EngineDoor, | |||
VehicleType = 1, | |||
ChanceToSpawnDamaged = 25, | |||
ConditionMax = 100, | |||
MechanicsItem = TRUE, | |||
WorldStaticModel = CarHood, | |||
} | |||
item EngineDoor2 | |||
{ | |||
DisplayCategory = VehicleMaintenance, | |||
Weight = 15.0, | |||
Type = Normal, | |||
DisplayName = Hood, | |||
Icon = EngineDoor, | |||
VehicleType = 2, | |||
ChanceToSpawnDamaged = 25, | |||
ConditionMax = 100, | |||
MechanicsItem = TRUE, | |||
WorldStaticModel = CarHood, | |||
} | |||
item EngineDoor3 | |||
{ | |||
DisplayCategory = VehicleMaintenance, | |||
Weight = 15.0, | |||
Type = Normal, | |||
DisplayName = Hood, | |||
Icon = EngineDoor, | |||
VehicleType = 3, | |||
ChanceToSpawnDamaged = 25, | |||
ConditionMax = 100, | |||
MechanicsItem = TRUE, | |||
WorldStaticModel = CarHood, | |||
}</pre> | |||
==Item IDs== | ==Item IDs== |
Revision as of 07:15, 24 February 2023
A hood is an item as part of a vehicle.
Usage
A hood is fitted onto the front of a vehicle to protect the engine from collisions.
Having a hood fitted in a multiplayer game allows it to be locked using the car key, preventing other players from scrapping the vehicle for parts.
Code
From vehicleitems.txt (Project Zomboid directory/media/scripts/vehicles/) Retrieved: Build 41.78
item EngineDoor1 { DisplayCategory = VehicleMaintenance, Weight = 15.0, Type = Normal, DisplayName = Hood, Icon = EngineDoor, VehicleType = 1, ChanceToSpawnDamaged = 25, ConditionMax = 100, MechanicsItem = TRUE, WorldStaticModel = CarHood, } item EngineDoor2 { DisplayCategory = VehicleMaintenance, Weight = 15.0, Type = Normal, DisplayName = Hood, Icon = EngineDoor, VehicleType = 2, ChanceToSpawnDamaged = 25, ConditionMax = 100, MechanicsItem = TRUE, WorldStaticModel = CarHood, } item EngineDoor3 { DisplayCategory = VehicleMaintenance, Weight = 15.0, Type = Normal, DisplayName = Hood, Icon = EngineDoor, VehicleType = 3, ChanceToSpawnDamaged = 25, ConditionMax = 100, MechanicsItem = TRUE, WorldStaticModel = CarHood, }
Item IDs
Vehicle type | Class name |
---|---|
Standard | Base.EngineDoor1 |
Heavy-Duty | Base.EngineDoor2 |
Sport | Base.EngineDoor3 |