Server ToolsLauncherServer ListWiki Sign in Discord chat Download
Wiki menu

Truck Battery

12V rechargable truck battery has higher capacity then regular car battery. It can be used to power other appliances, if connected properly.

Classname TruckBattery
Weight
18 kg
Inventory size
5×3 15 slots
Durability
240
Spawns on
Chernarus, Livonia, Sakhal

Characteristics

Compatibility

Attachment slots

Metal Wire

Matched by config slots and lists. Game scripts block a few combinations on top of this.

Where it spawns

Spawns as loot on Chernarus, Livonia, Sakhal: Industrial. Also spawns on or inside other items: M3S Covered.

ChernarusLivoniaSakhal
Nominal 20 20 13
Minimum 10 10 8
Lifetime 8 h 8 h 8 h
Restock 6 min 6 min 6 min
Quantity 20–100% 20–100% 100–100%
Loot category Tools Tools Tools
Places Industrial Industrial Industrial
Tiers · · ·

Nominal is how many the economy keeps on the map, minimum is where restocking starts. Lifetime is how long an untouched item lies before cleanup.

Spawns with

Spawns with 0% to 35% damage.

Spawns on or inside

From cfgspawnabletypes.xml of the vanilla maps: the item can spawn attached to these items or in their cargo, with the chance set there.

types.xml

Vanilla entries from the mission files of each map. Paste one into db/types.xml of your mission to bring back the default.

types.xml · Chernarus, Livonia
<type name="TruckBattery">
    <nominal>20</nominal>
    <lifetime>28800</lifetime>
    <restock>360</restock>
    <min>10</min>
    <quantmin>20</quantmin>
    <quantmax>100</quantmax>
    <cost>100</cost>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
    <category name="tools"/>
    <usage name="Industrial"/>
</type>
types.xml · Sakhal
<type name="TruckBattery">
    <nominal>13</nominal>
    <lifetime>28800</lifetime>
    <restock>360</restock>
    <min>8</min>
    <quantmin>100</quantmin>
    <quantmax>100</quantmax>
    <cost>100</cost>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
    <category name="tools"/>
    <usage name="Industrial"/>
</type>
cfgspawnabletypes.xml · Chernarus, Livonia, Sakhal
<type name="TruckBattery">
    <damage min="0" max="0.35"/>
</type>

Config

Classname
TruckBattery
Config class
CfgVehicles
Inherits from
Inventory_Base › Static › All
Model
\dz\vehicles\parts\battery_truck.p3d
Defined in
Addons/vehicles_parts.pbo::config.bin
Inventory slots
TruckBattery, LargeBattery