Server ToolsLauncherServer ListWiki Sign in Discord chat Download
Wiki menu

Baseball Bat

A wooden baseball bat made for hitting baseballs. Or, if there are none around, any suitable substitute.

Classname BaseballBat
Weight
566 g
Inventory size
1×7 7 slots
Worn or carried in
Shoulder, Melee slot
Durability
250
Spawns on
Chernarus, Livonia, Sakhal

Characteristics

Melee

Attack Health Shock Blood Reach
Light attack 15 21 100 1.8 m
Heavy attack 27 45 100 1.8 m
Sprint attack 27 45 100 3.7 m

Where it spawns

Spawns as loot on Chernarus, Livonia, Sakhal: Town, Village, School.

ChernarusLivoniaSakhal
Nominal 80 10 35
Minimum 50 5 30
Lifetime 4 h 4 h 4 h
Restock 0 0 0
Quantity · · ·
Loot category Tools Tools Tools
Places Town Village School Village Town Village
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.

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
<type name="BaseballBat">
    <nominal>80</nominal>
    <lifetime>14400</lifetime>
    <restock>0</restock>
    <min>50</min>
    <quantmin>-1</quantmin>
    <quantmax>-1</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="Town"/>
    <usage name="Village"/>
    <usage name="School"/>
</type>
types.xml · Livonia
<type name="BaseballBat">
    <nominal>10</nominal>
    <lifetime>14400</lifetime>
    <restock>0</restock>
    <min>5</min>
    <quantmin>-1</quantmin>
    <quantmax>-1</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="Village"/>
</type>
types.xml · Sakhal
<type name="BaseballBat">
    <nominal>35</nominal>
    <lifetime>14400</lifetime>
    <restock>0</restock>
    <min>30</min>
    <quantmin>-1</quantmin>
    <quantmax>-1</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="Town"/>
    <usage name="Village"/>
</type>

Crafting

Recipes are read from the game scripts. Some have extra conditions in code, those are marked partial.

Config

Classname
BaseballBat
Config class
CfgVehicles
Inherits from
Inventory_Base › Static › All
Model
\dz\weapons\melee\blunt\baseballbat.p3d
Defined in
Addons/weapons_melee.pbo::blunt/config.bin
Inventory slots
Shoulder, Melee