Server ToolsLauncherServer ListWiki Sign in Discord chat Download
Wiki menu

Power Generator

Portable gasoline-powered generator. Provides enough electricity to power a small home for as long as the fuel lasts.

Classname PowerGenerator
Section
Equipment
Weight
45 kg
Inventory size
10×10 100 slots
Durability
200
Spawns on
Chernarus, Livonia, Sakhal
2 variants

Characteristics

Compatibility

Attachment slots

Spark Plug

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.

ChernarusLivoniaSakhal
Nominal 80 80 40
Minimum 50 50 33
Lifetime 7 days 7 days 7 days
Restock 0 0 0
Quantity 20–70% 20–70% 20–70%
Loot category Tools Tools Tools
Places Industrial Industrial Industrial
Tiers · · Tier 2 Tier 3 Tier 4

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.

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="PowerGenerator">
    <nominal>80</nominal>
    <lifetime>604800</lifetime>
    <restock>0</restock>
    <min>50</min>
    <quantmin>20</quantmin>
    <quantmax>70</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="PowerGenerator">
    <nominal>40</nominal>
    <lifetime>604800</lifetime>
    <restock>0</restock>
    <min>33</min>
    <quantmin>20</quantmin>
    <quantmax>70</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"/>
    <value name="Tier2"/>
    <value name="Tier3"/>
    <value name="Tier4"/>
</type>

Variants

Power Generator PowerGenerator Chernarus 80Livonia 80Sakhal 40 This page
Power Generator PowerGeneratorStatic

The same item in other colors or versions. Each one has its own classname and loot settings.

Config

Classname
PowerGenerator
Config class
CfgVehicles
Inherits from
Inventory_Base › Static › All
Model
\DZ\gear\camping\power_generator.p3d
Defined in
Addons/gear_camping.pbo::config.bin