Baseball Bat: Difference between revisions

From PZwiki
m (Distribution table update)
(27 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|The Game World|Items|Weapons|Melee weapons|Blunt weapons|Long blunt weapons|type=Weapon|version=Version 41|incver=78.16}}{{Infobox weapon
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
|display_name=Baseball Bat
{{Page version|41.78.16}}
|name_colour=Weapon
{{Infobox item
|name_text_colour=Weapon
|name=Baseball Bat
|image=BaseballBat_Model.png
|model=BaseballBat_Model.png
|image_width=200px
|icon=BaseballBat.png
|alternate_image=BaseballBat.png
|icon_name=Baseball Bat
|alternate_name=Baseball Bat
|model2=BaseballBatSpiked_Model.png
|alternate_link=
|icon2=BaseballBatNails.png
|alternate_image2=BaseballBatNails.png
|icon_name2=Spiked Baseball Bat
|alternate_name2=Spiked Baseball Bat
<!--GENERAL-->
|alternate_link2=Spiked Baseball Bat
|category=Sports
|category=Weapon
|weight=2
|weight=2
|equipped=Two-handed
|equipped=Two-handed
|type=Blunt
|attachment_type=Shovel
|min_range=0.61
|skill_type=Blunt
|max_range=1.5
<!--PROPERTIES-->
|swing_time=3
|material=<!-- E.g. Metal -->
|material_value=<!-- E.g. MetalValue attribute -->
|condition_max=15
|condition_max=15
|skill_type=Blunt
<!--DAMAGE-->
|damage_type=Blunt
|min_damage=0.8
|min_damage=0.8
|max_damage=1.1
|max_damage=1.1
|min_range=0.61
|max_range=1.5
|base_speed=1
|push_back=0.5
|push_back=0.5
|knockdown=2
|knockdown=2
|class_name=Base.BaseballBat
<!-- TECHNICAL -->
}}A '''baseball bat''' is a blunt melee [[weapon]].
|item_id=Base.BaseballBat
}}
{{Quote|text=Hell, if you lose your gun then use a bat. Just burst their heads like a fuckin' balloon.|author=[[KnoxTalk Radio#timestamp_9000|Mike on KnoxTalk]]}}
A '''baseball bat''' is a blunt melee [[weapon]].


==Usage==
==Usage==
Line 41: Line 48:


==Condition==
==Condition==
The baseball bat is a [[Skills#Blunt|blunt]] weapon, therefore being influenced by the Long blunt skill, as well as Strength and Fitness. It has a maximum condition of 15 and will be damaged depending on the player's maintenance skill. The chance of losing durability is: <code>1 in (20 + maintenance x 2)</code>
The baseball bat has a maximum condition of 15. Its rate of degradation is influenced by the [[Skills|long blunt]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (20 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the long blunt and maintenance skills.<br>
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|long blunt]] skills.
{{Durability weapon|20}}


===Repairing===
===Repairing===
Line 62: Line 71:
}}
}}


* Each level up to Carpentry level 7 will increase the [[Wood Glue]] repair chance up to 75%
* Each level up to Carpentry level 7 will increase the [[Wood Glue|wood glue]] repair chance up to 75%
* Each successive repair will reduce the chance of success.
* Each successive repair will reduce the chance of success.
* It should be noted that upgrading the {{PAGENAME}} to the [[Spiked Baseball Bat]] will reset the repair count to 0.
* It should be noted that upgrading the baseball bat to the [[Spiked Baseball Bat|spiked baseball bat]] will reset the repair count to 0.


==Distribution==
==Distribution==
Baseball bats are commonly found in [[Containers#Bedroom Storage|wardrobes]] of houses and [[Containers#Counters|counters]] in stores and bars, or rarely on zombie [[Containers#Corpses|corpses]].
The loot distributions can be found in the table(s) below.
and very rarely can appear in the trunk of vehicles
 
[[Louisville Bruiser]], a baseball factory located in north Louisville has an incredibly large amount of baseball bats.  


===Buildings===
<!--BOT FLAG|BaseballBat|41.78.16-->
{| class="pztable mw-collapsible" style="text-align:center; width:400px;"
{{clear}}
! colspan=4 |  
<div class="togglebox theme-red">
|-
    <div>BaseballBat distribution
!Building/Room
        <span class="mw-customtoggle-togglebox-BaseballBat" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div>
!Container
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-BaseballBat">
!Rolls
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
!Chance
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
|-
    |+ {{ll|Containers}}
|rowspan="2"|All
    ! Building / Room
|[[Containers#Corpse|Male Corpse]]
    ! Container
|1
    ! Rolls
|0.1
    ! Chance
|-
    |-
<!--|All-->
    | SafehouseLoot
|[[Containers#Bedrooms Storage|Wardrobe]]
    | {{ll|counter}}
|4
    | 4
|2
    | 10.0
|-
    |-
|rowspan="2"|Bar
    | all
|[[Containers#Shelves|Shelf]]
    | {{ll|Bag_WeaponBag}}
|4
    | 2
|2
    | 8.0
|-
    |-
<!--|Bar-->
    | all
|[[Containers#Counters|Counter]]
    | {{ll|dresser}}
|2
    | 4
|2
    | 0.1
|-
    |-
|Bedroom
    | all
|[[Containers#Bedrooms Storage|Wardrobe]]
    | {{ll|wardrobe}}
|2
    | 4
|2
    | 0.1
|-
    |-
|Changeroom
    | baseballstore
|[[Containers#Lockers|Locker]]
    | {{ll|shelves}}
|2
    | 4
|2
    | 10.0
|-
    |-
|Fossoil
    | batfactory
|[[Containers#Counters|Counter]]
    | {{ll|crate}}
|4
    | 4
|5
    | 10.0
|-
    |-
|Grocery Store
    | batfactory
|[[Containers#Counters|Counter]]
    | {{ll|crate}}
|4
    | 4
|5
    | 50.0
|-
    |-
|Storage Unit
    | batfactory
|[[Containers|All]]
    | {{ll|crate}}
|3
    | 4
|5
    | 20.0
|-
    |-
|Zippee Store
    | bedroom
|[[Containers#Counters|Counter]]
    | {{ll|crate}}
|1
    | 1
|5
    | 0.2
|-
    |-
|}
    | bedroom
    | {{ll|dresser}}
    | 4
    | 0.1
    |-
    | closet
    | {{ll|crate}}
    | 4
    | 2.0
    |-
    | closet
    | {{ll|crate}}
    | 4
    | 10.0
    |-
    | closet
    | {{ll|metal_shelves}}
    | 4
    | 0.1
    |-
    | drugshack
    | {{ll|counter}}
    | 4
    | 10.0
    |-
    | drugshack
    | {{ll|crate}}
    | 4
    | 10.0
    |-
    | schoolstorage
    | {{ll|crate}}
    | 4
    | 20.0
    |-
    | schoolstorage
    | {{ll|crate}}
    | 4
    | 50.0
    |-
    | schoolstorage
    | {{ll|crate}}
    | 4
    | 10.0
    |}
</div>
<div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Vehicles}}
    ! Vehicle Type/Location
    ! Rolls
    ! Chance
    |-
    | CarpenterTruckBed
    | 4
    | 1
    |-
    | ClothingTruckBed
    | 1
    | 1
    |-
    | DistilleryTruckBed
    | 1
    | 1
    |-
    | ElectricianTruckBed
    | 1
    | 1
    |-
    | FishermanTruckBed
    | 1
    | 1
    |-
    | FossoilTruckBed
    | 1
    | 1
    |-
    | GroceriesTruckBed
    | 1
    | 1
    |-
    | HeraldsTruckBed
    | 1
    | 1
    |-
    | MassGenFacTruckBed
    | 1
    | 1
    |-
    | MetalWelderTruckBed
    | 1
    | 1
    |-
    | PainterTruckBed
    | 1
    | 1
    |-
    | PoliceTruckBed
    | 1
    | 1
    |-
    | PostalTruckBed
    | 1
    | 1
    |-
    | RadioTruckBed
    | 1
    | 1
    |-
    | RangerTruckBed
    | 1
    | 1
    |-
    | SpiffoTruckBed
    | 1
    | 1
    |-
    | SurvivalistTruckBed
    | 1
    | 10
    |-
    | TaxiTruckBed
    | 1
    | 1
    |-
    | TransitTruckBed
    | 1
    | 1
    |-
    | TrunkHeavy
    | 1
    | 1
    |-
    | TrunkSports
    | 1
    | 1
    |-
    | TrunkStandard
    | 1
    | 1
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-BaseballBat" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|BaseballBat|41.78.16-->


==Crafting==  
==Crafting==


===What it can craft===
The '''baseball bat''' can be upgraded to a [[Spiked Baseball Bat|spiked baseball bat]] or be used to smash open a [[watermelon]].
The '''baseball bat''' can be upgraded to a [[Spiked Baseball Bat|spiked baseball bat]] or be used to smash open a [[watermelon]].
{{Crafting header|ing=3}}
{{Crafting/sandbox2
{{Crafting carpentry|009|ing=3}}
|spiked_baseball_bat
{{Crafting cooking|402|ing=3}}
|watermelon_chunks
|}
}}


==Trivia==
==Trivia==
Line 151: Line 300:


==Code==
==Code==
{{CodeBox|


===Item===
===Item===
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeSnip
{{Retrieved|version=41|incver=53}}
  | lang = java
<pre>
  | line = true
    item BaseballBat
  | start = 2310
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item BaseballBat
{
{
    DisplayCategory = Sports,
MaxRange = 1.25,
MaxRange = 1.25,
WeaponSprite = BaseballBat,
WeaponSprite = BaseballBat,
Line 185: Line 341:
RunAnim = Run_Weapon2,
RunAnim = Run_Weapon2,
         TwoHandWeapon = TRUE,
         TwoHandWeapon = TRUE,
         BreakSound  =  BreakWoodItem,
         BreakSound  =  BaseballBatBreak,
        DoorHitSound = BaseballBatHit,
HitSound = BaseballBatHit,
HitFloorSound = BaseballBatHit,
SwingSound = BaseballBatSwing,
         TreeDamage  =  1,
         TreeDamage  =  1,
CriticalChance = 40,
CriticalChance = 40,
Line 194: Line 354:
WeaponLength = 0.5,
WeaponLength = 0.5,
AttachmentType = Shovel,
AttachmentType = Shovel,
        {
}
</pre>
}}
 
===Repair===
===Repair===
'''''From fixing.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeSnip
{{Retrieved|version=41|incver=53}}
  | lang = java
<pre>
  | line = true
  | start = 173
  | source = fixing.txt
  | retrieved = true
  | version = 41.78.16
  | code =
fixing Fix Baseball Bat
fixing Fix Baseball Bat
Require : BaseballBat,
    {
Fixer : Woodglue=2; Woodwork=2,
      Require : BaseballBat,
Fixer : DuctTape=2,
 
Fixer : Glue=2,
      Fixer : Woodglue=2; Woodwork=2,
Fixer : Scotchtape=4,
      Fixer : DuctTape=2,
</pre>
      Fixer : Glue=2,
      Fixer : Scotchtape=4,
    }
}}
}}


==See also==
==See also==
*[[Chair Leg]]
*[[Golf Club]]
*[[Pickaxe Handle]]
*[[Spiked Baseball Bat]]
*[[Spiked Baseball Bat]]


{{Navbox weapons}}
{{Navbox items|blunt}}
 
 
[[Category:Sports]]

Revision as of 14:54, 24 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Baseball Bat
BaseballBat Model.png
BaseballBatSpiked Model.png
General
Category
Sports
Encumbrance
Moodle Icon HeavyLoad.png
2
Equipped
Two-handed
Slot attached
Back
Skill
Properties
Max condition
15
Performance
Damage type
Blunt
Damage
0.8–1.1
Range
0.61–1.5
Attack speed
1
Knockback
0.5
Knockdown
2
Technical
Item ID
Base.BaseballBat
Hell, if you lose your gun then use a bat. Just burst their heads like a fuckin' balloon.

A baseball bat is a blunt melee weapon.

Usage

Weapon

The baseball bat is particularly effective against lone zombies. It usually won't kill a standing zombie in one hit, but it has a high chance to knock them down, allowing players to follow up with a killing blow.

The baseball bat also has a long range (for a melee weapon), and is capable of keeping a small group of zombies at a distance while delivering killing blows. It is capable of hitting up to 2 zombies at once with Multi-Hit enabled. The baseball bat has a decent durability with 15 Max Condition and a low chance to lose durability when used. It's one of the better melee weapons in the game, and a great starter weapon.

Breaking doors

The baseball bat is not too effective at bashing down doors, dealing 5 damage per hit. For comparison, an axe deals 35 damage.

Chopping trees

The baseball bat is not recommended to cut trees, as it will only deal 1 damage to a tree per hit. For comparison, an axe deals 35 damage.

Condition

The baseball bat has a maximum condition of 15. Its rate of degradation is influenced by the long blunt and maintenance skills. The chance of losing durability can be simplified to the following formula: 1 in (20 + maintenanceMod × 2). Where "maintenanceMod" is calculated using the long blunt and maintenance skills.
Below is an example of the chance of losing durability at varying levels of the maintenance and long blunt skills.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Condition lower chance
0 0 1/20 (5%)
0 4 1/22 (5%)
0 8 1/24 (4%)
4 0 1/24 (4%)
8 0 1/28 (4%)
4 4 1/26 (4%)
4 8 1/28 (4%)
8 8 1/32 (3%)
10 10 1/34 (3%)

Repairing

Materials that can be used to repair the baseball bat, based on first time repairing.

Repair Baseball Bat
Woodglue.png
Potentially repairs: 20%
Chance of success: 35%
DuctTape.png
Potentially repairs: 10%
Chance of success: 95%
Glue.png
Potentially repairs: 10%
Chance of success: 95%
Scotchtape.png
Potentially repairs: 10%
Chance of success: 95%
  • Each level up to Carpentry level 7 will increase the wood glue repair chance up to 75%
  • Each successive repair will reduce the chance of success.
  • It should be noted that upgrading the baseball bat to the spiked baseball bat will reset the repair count to 0.

Distribution

The loot distributions can be found in the table(s) below.

BaseballBat distribution Show / Hide
Containers
Building / Room Container Rolls Chance
SafehouseLoot counter 4 10.0
all Bag_WeaponBag 2 8.0
all dresser 4 0.1
all wardrobe 4 0.1
baseballstore shelves 4 10.0
batfactory crate 4 10.0
batfactory crate 4 50.0
batfactory crate 4 20.0
bedroom crate 1 0.2
bedroom dresser 4 0.1
closet crate 4 2.0
closet crate 4 10.0
closet metal_shelves 4 0.1
drugshack counter 4 10.0
drugshack crate 4 10.0
schoolstorage crate 4 20.0
schoolstorage crate 4 50.0
schoolstorage crate 4 10.0
Vehicles
Vehicle Type/Location Rolls Chance
CarpenterTruckBed 4 1
ClothingTruckBed 1 1
DistilleryTruckBed 1 1
ElectricianTruckBed 1 1
FishermanTruckBed 1 1
FossoilTruckBed 1 1
GroceriesTruckBed 1 1
HeraldsTruckBed 1 1
MassGenFacTruckBed 1 1
MetalWelderTruckBed 1 1
PainterTruckBed 1 1
PoliceTruckBed 1 1
PostalTruckBed 1 1
RadioTruckBed 1 1
RangerTruckBed 1 1
SpiffoTruckBed 1 1
SurvivalistTruckBed 1 10
TaxiTruckBed 1 1
TransitTruckBed 1 1
TrunkHeavy 1 1
TrunkSports 1 1
TrunkStandard 1 1

Crafting

The baseball bat can be upgraded to a spiked baseball bat or be used to smash open a watermelon.

Product Ingredients Tools Requirements Workstation XP
BaseballBatNails.png
Spiked Baseball Bat
BaseballBat.png Baseball Bat ×1
Nails.png Nails ×5

Hammer.png
Hammer (tag)
none none none
WatermelonSmashed.png
Watermelon Chunks ×5
One of:
BaseballBat.png Baseball Bat ×1
Hammer.png Hammer ×1
Logs.png Log ×1
Plank.png Plank ×1
Sledgehamer.png Sledgehammer ×1
BaseballBatNails.png Spiked Baseball Bat ×1
HammerStone.png Stone Hammer ×1
Each of:
Watermelon.png Watermelon ×1
none none none 0.75 Cooking

Trivia

  • The baseball bat is a popular weapon used in various zombie apocalypse material, including: The Walking Dead, Zombieland, DayZ and 28 Days Later.

Gallery

Code

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

Item

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item BaseballBat
	{
	    DisplayCategory = Sports,
		MaxRange	=	1.25,
		WeaponSprite	=	BaseballBat,
		MinAngle	=	0.75,
		Type	=	Weapon,
		MinimumSwingTime	=	3,
		KnockBackOnNoDeath	=	TRUE,
		SwingAmountBeforeImpact	=	0.02,
		Categories	=	Blunt,
		ConditionLowerChanceOneIn	=	20,
		Weight	=	2,
		SplatNumber	=	1,
		PushBackMod	=	0.5,
		SubCategory	=	Swinging,
		ConditionMax	=	15,
		MaxHitCount	=	2,
		DoorDamage	=	5,
		IdleAnim	=	Idle_Weapon2,
		SwingAnim	=	Bat,
		DisplayName	=	Baseball Bat,
		MinRange	=	0.61,
		SwingTime	=	3,
		HitAngleMod	=	-30,
		KnockdownMod	=	2,
		SplatBloodOnNoDeath	=	FALSE,
		Icon	=	BaseballBat,
		RunAnim	=	Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =   BaseballBatBreak,
        DoorHitSound = BaseballBatHit,
		HitSound = BaseballBatHit,
		HitFloorSound = BaseballBatHit,
		SwingSound = BaseballBatSwing,
        TreeDamage  =   1,
		CriticalChance	=	40,
		critDmgMultiplier = 2,
		MinDamage	=	0.8,
		MaxDamage	=	1.1,
		BaseSpeed = 1,
		WeaponLength = 0.5,
		AttachmentType = Shovel,
	}

Repair

Source: ProjectZomboid\media\scripts\fixing.txt

Retrieved: Build 41.78.16
fixing Fix Baseball Bat
    {
       Require : BaseballBat,

       Fixer : Woodglue=2; Woodwork=2,
       Fixer : DuctTape=2,
       Fixer : Glue=2,
       Fixer : Scotchtape=4,
    }

See also