Car Battery: Difference between revisions

From PZwiki
mNo edit summary
m (Automated CodeBox update)
(40 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{languages|Car Battery}}
{{Header|Project Zomboid|Vehicles|Vehicle parts}}
{{header|The Game World|Items|Electricity and Engineering|type=Electric|version=Version 39|incver=67.5}}{{Infobox drainable
{{Page version|41.78.16}}
|display_name = Car Battery
{{Infobox vehicle part
|name_colour = electric
|name=Car Battery
|text_colour = electric
|model=CarBattery_Model.png
|image = CarBattery_120px.png
|icon=CarBattery.png
|weight = 5.0
|icon_name=Car Battery
|primary_use = Start engine
|category=Vehicle Maintenance
|secondary_use = Power accessories
|weight=5.0
|max_units = 100,000
|function=Start engine<br>Power accessories
|contents = [[Electricity]]
|tool=[[Screwdriver]]
|class_name = [[#Item IDs|Item IDs]]
|condition_max=100
}}{{About|batteries required to power vehicles|batteries that power small appliances|[[Battery]]}}
|capacity=100,000
A '''car battery''' is a drainable [[items|item]] forming an integral part of a [[vehicles|vehicle]].
|item_id=Base.CarBattery1
|item_id2=Base.CarBattery2
|item_id3=Base.CarBattery3
|item_id_more=Item IDs
}}
{{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}}
A '''car battery''' is a drainable [[Items|item]] forming an integral part of a [[Vehicles|vehicle]]. It is used to start the engine, as well as run electrical components of the vehicle when the engine is off.


==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===
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 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 [[Light Bulb|headlights]], heater, [[radio]] and siren.
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]].
 
A charged car battery is needed to start the engine, therefore having a low or dead car battery will fail to start the vehicle. It's also used to power electric accessories when the engine isn't on, such as the [[Light Bulb|headlights]], [[heater]], [[radio]], and [[Noise|siren]]. Remember to turn these off when exiting a vehicle, or you could drain the battery and end up stranded.


===Recharging===
===Recharging===
Line 25: Line 32:


===Condition===
===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.
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 charge capacity and effectiveness at starting a vehicle engine. Lower condition batteries will hold less charge and fail to start the engine more often. A low condition battery will never explode or catch fire.


==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 shops. Car batteries can also be found in the trunks of [[Vehicles]]. These batteries are almost always at full condition.


==Item IDs==
==Item IDs==
Car batteries can be found as one of three different types, each corresponding to a [[Vehicles Guide#Types|vehicle type]]. Therefore, a car battery for one vehicle type cannot be swapped with another vehicle type.
Car batteries can be found as one of three different types, each corresponding to a [[Vehicles#Types|vehicle type]]. Therefore, a car battery for one vehicle type cannot be swapped with another vehicle type. For example, it is not possible to install a ''sport'' class battery in a ''standard'' class vehicle.
{| class="wikitable"
{| class="wikitable theme-red"
!Vehicle type
!Vehicle type
!Class name
!Item ID
|-
|-
|Standard
|Standard
|Base.CarBattery1
|{{ID|Base.CarBattery1}}
|-
|-
|Heavy-Duty
|Heavy-Duty
|Base.CarBattery2
|{{ID|Base.CarBattery2}}
|-
|-
|Sport
|Sport
|Base.CarBattery3
|{{ID|Base.CarBattery3}}
|}
|}
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 636
  | source = vehiclesitems.txt
  | retrieved = true
  | version = 41.78.16
  | code =
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,
    }
}}
}}


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


{{Navbox/Electricity and Engineering}}
{{Navbox equipment}}
{{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 10:22, 26 March 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Car Battery
CarBattery Model.png
General
Category
Vehicle Maintenance
Encumbrance
Moodle Icon HeavyLoad.png
5.0
Function
Start engine
Power accessories
Properties
Capacity
100,000
Max condition
100
Install/Uninstall
Tool(s)
Technical
Item ID
Base.CarBattery1
Base.CarBattery2
Base.CarBattery3

[See all]
PlushSpiffo.pngThis article is about batteries required to power vehicles. For batteries that power small appliances, see Battery.
Recharges while the engine is running. Drained by starting the engine, by active lights, siren, and radio.
— In-game description

A car battery is a drainable item forming an integral part of a vehicle. It is used to start the engine, as well as run electrical components of the vehicle when the engine is off.

Usage

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

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.

A charged car battery is needed to start the engine, therefore having a low or dead car battery will fail to start the vehicle. It's also used to power electric accessories when the engine isn't on, such as the headlights, heater, radio, and siren. Remember to turn these off when exiting a vehicle, or you could drain the battery and end up stranded.

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 charge capacity and effectiveness at starting a vehicle engine. Lower condition batteries will hold less charge and fail to start the engine more often. A low condition battery will never explode or catch fire.

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 shops. Car batteries can also be found in the trunks of Vehicles. These batteries are almost always at full condition.

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. For example, it is not possible to install a sport class battery in a standard class vehicle.

Vehicle type Item ID
Standard Base.CarBattery1
Heavy-Duty Base.CarBattery2
Sport Base.CarBattery3

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\vehicles\vehiclesitems.txt

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,
    }

See also