Car Battery: Difference between revisions

From PZwiki
m (→‎Code: Bump to .16)
m (Minor cleanup)
Line 1: Line 1:
{{languages}}
{{Languages}}{{Header|The Game World|Items|Electricity and Engineering|type=Electric|version=Version 41|incver=78}}{{Infobox drainable
{{header|The Game World|Items|Electricity and Engineering|type=Electric|version=Version 41|incver=78}}{{Infobox drainable
|display_name=Car Battery
|display_name=Car Battery
|name_colour=electric
|name_colour=Electric
|name_text_colour=electric
|name_text_colour=Electric
|image=CarBattery.png
|image=CarBattery.png
|category=Item
|category=Item
Line 12: Line 11:
|contents=[[Electricity]]
|contents=[[Electricity]]
|class_name=[[#Item IDs|Item IDs]]
|class_name=[[#Item IDs|Item IDs]]
}}{{quote|text=Recharges while the engine is running. Drained by starting the engine, by active lights, siren and radio.|author=In-game description}}{{About|batteries required to power vehicles|batteries that power small appliances|Battery}}
}}{{Quote|text=Recharges while the engine is running. Drained by starting the engine, by active lights, siren and radio.|author=In-game description}}{{About|batteries required to power vehicles|batteries that power small appliances|Battery}}
A '''car battery''' is a drainable [[items|item]] forming an integral part of a [[vehicles|vehicle]].
A '''car battery''' is a drainable [[items|item]] forming an integral part of a [[vehicles|vehicle]].


==Usage==
==Usage==
A car battery can only be used in powering a vehicle and not other household [[electrical]]s.  
A car battery can only be used in powering a vehicle and not other household [[electrical]]s.
 
===Vehicles===
===Vehicles===
The car battery is installed underneath the [[hood]] and does not require any [[mechanics]] level or known [[Recipe Magazines|recipe]] to install or uninstall, however it does require the player to have a [[screwdriver]].  
The car battery is installed underneath the [[hood]] and does not require any [[mechanics]] level or known [[Recipe Magazines|recipe]] to install or uninstall, however it does require the player to have a [[screwdriver]].  
Line 29: Line 29:


==Distribution==
==Distribution==
Car batteries can very commonly be found under the hood of a vehicle, already installed. They can also be found inside gas stations, sheds, garages or mechanic.  
Car batteries can very commonly be found under the hood of a vehicle, already installed. They can also be found inside gas stations, sheds, garages or mechanic.


==Item IDs==
==Item IDs==
Line 110: Line 110:


==See also==
==See also==
*[[Mechanics]]
*[[Vehicles Guide]]
*[[Vehicles Guide]]
*[[Mechanics|Mechanics Guide]]


{{Navbox/Electricity and Engineering}}
{{Navbox equipment}}
{{Navbox vehicles}}
{{Navbox vehicles}}


[[Category:Vehicles and Mechanics (Project)]]
[[Category:Vehicles and Mechanics (Project)]]
[[Category:Electricals and Transmission (Project)]]
[[Category:Electricals and Transmission (Project)]]

Revision as of 12:03, 9 April 2023

Car Battery
Car Battery
General
Category Item
Encumbrance
Heavy Load
5.0
Function Start engine
Power accessories
Required tool Screwdriver
Capacity 100,000 units
Contents Electricity
Technical details
item ID Item IDs
Recharges while the engine is running. Drained by starting the engine, by active lights, siren and radio.
— In-game description
PlushSpiffo.pngThis article is about batteries required to power vehicles. For batteries that power small appliances, see Battery.

A car battery is a drainable item forming an integral part of a vehicle.

Usage

A car battery can only be used in powering a vehicle and not other household electricals.

Vehicles

The car battery is installed underneath the hood and does not require any mechanics level or known recipe to install or uninstall, however it does require the player to have a screwdriver.

The car battery is used to power the engine when starting the vehicle, therefore having a low or flat car battery will fail to start the vehicle. It's also used to power accessories when the engine isn't on, such as the headlights, heater, radio and siren.

Recharging

A car battery will automatically recharge while the engine is running. Otherwise, a flat car battery can be recharged by using a car battery charger, which requires the player to be standing on a powered tile, followed by simply right-clicking the car battery or charger and selecting "recharge".

Condition

The condition of a car battery is separate to the remaining power, although they can be easily mixed up. A car battery's condition determines its capacity and effectiveness at starting a vehicle engine.

Distribution

Car batteries can very commonly be found under the hood of a vehicle, already installed. They can also be found inside gas stations, sheds, garages or mechanic.

Item IDs

Car batteries can be found as one of three different types, each corresponding to a vehicle type. Therefore, a car battery for one vehicle type cannot be swapped with another vehicle type.

Vehicle type Class name
Standard Base.CarBattery1
Heavy-Duty Base.CarBattery2
Sport Base.CarBattery3

Code

From vehicleitems.txt (Project Zomboid directory/media/scripts/vehicles/) Retrieved: Build 41.78.16

    item CarBattery1
    {
        DisplayCategory = VehicleMaintenance,
        Weight	=	5,
        Type	=	Drainable,
        UseDelta	=	0.00001,
        UseWhileEquipped	=	FALSE,
        DisplayName	=	Car Battery,
        Icon	=	CarBattery,
        MetalValue = 1,
        cantBeConsolided = TRUE,
        VehicleType =   1,
        ConditionMax = 100,
        ChanceToSpawnDamaged = 30,
        MechanicsItem = TRUE,
        WorldStaticModel = CarBattery,
		Tags = CarBattery,
    }

    item CarBattery2
    {
        DisplayCategory = VehicleMaintenance,
        Weight	=	5,
        Type	=	Drainable,
        UseDelta	=	0.00001,
        UseWhileEquipped	=	FALSE,
        DisplayName	=	Car Battery,
        Icon	=	CarBattery,
        MetalValue = 1,
        cantBeConsolided = TRUE,
        VehicleType =   2,
        ConditionMax = 100,
        ChanceToSpawnDamaged = 30,
        MechanicsItem = TRUE,
        WorldStaticModel = CarBattery,
		Tags = CarBattery,
    }

    item CarBattery3
    {
        DisplayCategory = VehicleMaintenance,
        Weight	=	5,
        Type	=	Drainable,
        UseDelta	=	0.00001,
        UseWhileEquipped	=	FALSE,
        DisplayName	=	Car Battery,
        Icon	=	CarBattery  ,
        MetalValue = 1,
        cantBeConsolided = TRUE,
        VehicleType =   3,
        ConditionMax = 100,
        ChanceToSpawnDamaged = 30,
        MechanicsItem = TRUE,
        WorldStaticModel = CarBattery,
		Tags = CarBattery,
    }

See also