Sledgehammer: Difference between revisions

From PZwiki
(PZ Updater automated execution(task: deploy ReLookup, eid: bbe36ea779279a4d1aa2afc4e4238b3d))
(Add distro table)
 
(48 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{languages|Sledgehammer}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
{{header|The Game World|Items|Weapons|Melee Weapons|type=Weapon|version=Version 37|incver=8}}
{{Page version|41.78.16}}
{{Improve}}
{{Infobox item
{{Outdated}}
|name=Sledgehammer
{{Infobox weapon
|model=Sledgehammer_Model.png
|display_name=Sledgehammer
|icon=Sledgehammer.png
|name_colour=Weapon
|icon_name=Sledgehammer
|name_text_colour=Weapon
|model2=Sledgehammer02_Model.png
|image=Sledgehammer_Model.png
|icon2=Sledgehammer2.png
|image_width=200px
|icon_name2=Sledgehammer
|alternate_image=Sledgehammer.png
<!--General-->
|alternate_name=Baseball Bat
|category=Tool/Weapon
|alternate_link=
|category=Weapon
|weight=6
|weight=6
|function=Destroy walls
|function=Destroy walls
|equipped=Two-handed
|equipped=Two-handed
|condition_max=10
|attachment_type=BigBlade
|skill_type=Blunt
<!--DAMAGE-->
|type=Blunt
|type=Blunt
|min_range=0.7
|min_range=0.7
|max_range=1.9
|max_range=1.35
|swing_time=3
|base_speed=0.9
|condition_max=10
|min_damage=2
|min_damage=0.8
|max_damage=3
|max_damage=1.2
|push_back=1
|push_back=1
|knockdown=3
|knockdown=3
|class_name=Base.Sledgehammer
<!--TECHNICAL-->
}}A '''sledgehammer''' is a two-handed blunt melee weapon.
|item_id=Base.Sledgehammer<br>Base.Sledgehammer2
__TOC__
}}
A '''sledgehammer''' is a [[Weapons#Heavy|heavy]], two-handed, blunt melee weapon.
 
==Usage==
===Weapon===
The sledgehammer has one of the highest average and maximum damage of all weapons, but has a very slow attack speed. The sledgehammer is one of the few weapons that can hit 3 [[zombie]]s at once (with multi-hit enabled), for comparison, a [[Baseball Bat|baseball bat]] can only hit 2 zombies at once. It is heavy, must be equipped in two hands, and will quickly [[Endurance|exhaust]] the user, and cannot be used once the character is exhausted.
 
===Breaking doors===
The sledgehammer is very effective at breaking [[door]]s, dealing 40 damage to them, compared to an [[axe]] dealing 35 damage. Alternatively, the destroy function can be used to destroy doors instantly.
 
===Chopping trees===
The sledgehammer is better at chopping down trees than most melee weapons, dealing 10 damage, but still not as effective as the [[axe]] which deals 35 damage.
 
===Destruction of tiles===
Destroying [[tiles]], such as walls, doors, and other miscellaneous objects, is a function exclusive to the sledgehammer. To destroy tiles, click "Destroy" on the {{key|{{abbr|RMB|Right Mouse Button}}}} contextual menu while having the sledgehammer equipped. A red box will appear, highlighting the tile to destroy.


== Usage ==
==Condition==
=== Weapon ===
The sledgehammer has a maximum condition of 10. 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 (40 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the long blunt and maintenance skills.
The sledgehammer has the highest average and maximum damage of all weapons, the downside being the longest swing time among all melee weapons. The sledgehammer is one of the few weapons that can hit 3 zombies at once(for comparison, a [[Baseball Bat|baseball bat]] can only hit 2 zombies at once), but it must be used carefully due to the character unable to swing the sledgehammer when [[Moodles#Endurance|exhausted]].
=== Breaking Doors ===
The sledgehammer is very effective at breaking doors, dealing 40 damage to them, compared to an [[Axe|Axe]] dealing 35 damage.


=== Chopping Trees ===
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|long blunt]] skills.
The sledgehammer is better at chopping down trees that most melee weapons, dealing 10 damage, but still not as effective as the [[Axe]] which deals 35 damage.
{{Durability weapon|40}}
=== Destruction of Blocks ===
Destroying blocks, such as walls, doors and other miscellaneous objects, is a function exclusive to the sledgehammer. To destroy blocks, click "Destroy" on the right-click menu while having the Sledgehammer equipped. A red box will appear, highlighting the block you are about to destroy.


== Condition ==
===Repairing===
The sledgehammer is a blunt weapon, therefore being influenced by the blunt skills: accuracy, guard and maintenance. The sledgehammer's durability is exceptionally good and it takes a long time to break a sledgehammer with the chance of losing durability being 1 in 40, or just 2.5% per hit.
It should be noted that repairing the sledgehammer makes following repairs less likely to succeed and can, if repaired numerous times, cause reduced durability instead of increased.
=== Repairing ===
{{Fixing weapon
{{Fixing weapon
|item=Sledgehammer
|item=Sledgehammer
Line 60: Line 69:
}}
}}


It should be noted that repairing the sledgehammer makes following repairs less likely to succeed and can, if repaired numerous times, cause reduced durability instead of increased.
==Crafting==
The sledgehammer can be used to smash a watermelon into chunks.
{{Crafting/sandbox2
|watermelon_chunks
}}
 
==Distribution==
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|Sledgehammer|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Sledgehammer distribution
        <span class="mw-customtoggle-togglebox-Sledgehammer" 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>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Sledgehammer">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | Bag_ToolBag
    | {{ll|Bag_ToolBag}}
    | 0.42%
    |-
    | SafehouseLoot
    | {{ll|counter}}
    | 2.81%
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 1.65%
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 2.81%
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 2.81%
    |-
    | SafehouseLoot
    | {{ll|wardrobe}}
    | 2.81%
    |-
    | SurvivorCache1
    | {{ll|counter}}
    | 2.81%
    |-
    | SurvivorCache2
    | {{ll|counter}}
    | 2.81%
    |-
    | ToolsCache1
    | {{ll|ToolsBox}}
    | 1.65%
    |-
    | all
    | {{ll|crate}}
    | 0.41%
    |-
    | all
    | {{ll|toolcabinet}}
    | 1.65%
    |-
    | armyhanger
    | {{ll|counter}}
    | 1.65%
    |-
    | armyhanger
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | closet
    | {{ll|crate}}
    | 1.65%
    |-
    | construction
    | {{ll|crate}}
    | 1.65%
    |-
    | drugshack
    | {{ll|counter}}
    | 1.65%
    |-
    | drugshack
    | {{ll|crate}}
    | 1.65%
    |-
    | factory
    | {{ll|crate}}
    | 1.65%
    |-
    | factory
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | farmstorage
    | {{ll|crate}}
    | 1.65%
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | firestorage
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | garagestorage
    | {{ll|counter}}
    | 1.65%
    |-
    | garagestorage
    | {{ll|crate}}
    | 1.65%
    |-
    | garagestorage
    | {{ll|locker}}
    | 1.65%
    |-
    | garagestorage
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | generalstore
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | generalstore
    | {{ll|shelves}}
    | 1.65%
    |-
    | generalstorestorage
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 1.65%
    |-
    | gigamart
    | {{ll|shelves}}
    | 1.65%
    |-
    | kitchen
    | {{ll|crate}}
    | 1.65%
    |-
    | loggingfactory
    | {{ll|crate}}
    | 1.65%
    |-
    | loggingfactory
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | pawnshop
    | {{ll|counter}}
    | 1.65%
    |-
    | pawnshop
    | {{ll|crate}}
    | 1.65%
    |-
    | pawnshop
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | pawnshop
    | {{ll|shelves}}
    | 1.65%
    |-
    | pawnshopstorage
    | {{ll|crate}}
    | 1.65%
    |-
    | pawnshopstorage
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | shed
    | {{ll|crate}}
    | 1.65%
    |-
    | shed
    | {{ll|locker}}
    | 1.65%
    |-
    | shed
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | storageunit
    | {{ll|crate}}
    | 1.65%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | toolstore
    | {{ll|counter}}
    | 1.65%
    |-
    | toolstore
    | {{ll|crate}}
    | 1.65%
    |-
    | toolstore
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | toolstore
    | {{ll|shelves}}
    | 1.65%
    |-
    | toolstorestorage
    | {{ll|crate}}
    | 1.65%
    |-
    | toolstorestorage
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | warehouse
    | {{ll|crate}}
    | 1.65%
    |-
    | warehouse
    | {{ll|metal_shelves}}
    | 1.65%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Sledgehammer" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Sledgehammer|41.78.16-->
 
<!--BOT FLAG|Sledgehammer2|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Sledgehammer2 distribution
        <span class="mw-customtoggle-togglebox-Sledgehammer2" 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>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Sledgehammer2">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis: 30%;">
    {| class="wikitable theme-red sortable" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | Bag_ToolBag
    | {{ll|Bag_ToolBag}}
    | 0.42%
    |-
    | SafehouseLoot
    | {{ll|counter}}
    | 2.81%
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 1.65%
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 2.81%
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 2.81%
    |-
    | SafehouseLoot
    | {{ll|wardrobe}}
    | 2.81%
    |-
    | SurvivorCache1
    | {{ll|counter}}
    | 2.81%
    |-
    | SurvivorCache2
    | {{ll|counter}}
    | 2.81%
    |-
    | ToolsCache1
    | {{ll|ToolsBox}}
    | 1.65%
    |-
    | all
    | {{ll|crate}}
    | 0.41%
    |-
    | all
    | {{ll|toolcabinet}}
    | 1.65%
    |-
    | armyhanger
    | {{ll|counter}}
    | 1.65%
    |-
    | armyhanger
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | closet
    | {{ll|crate}}
    | 1.65%
    |-
    | construction
    | {{ll|crate}}
    | 1.65%
    |-
    | drugshack
    | {{ll|counter}}
    | 1.65%
    |-
    | drugshack
    | {{ll|crate}}
    | 1.65%
    |-
    | factory
    | {{ll|crate}}
    | 1.65%
    |-
    | factory
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | farmstorage
    | {{ll|crate}}
    | 1.65%
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | firestorage
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | garagestorage
    | {{ll|counter}}
    | 1.65%
    |-
    | garagestorage
    | {{ll|crate}}
    | 1.65%
    |-
    | garagestorage
    | {{ll|locker}}
    | 1.65%
    |-
    | garagestorage
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | generalstore
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | generalstore
    | {{ll|shelves}}
    | 1.65%
    |-
    | generalstorestorage
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 1.65%
    |-
    | gigamart
    | {{ll|shelves}}
    | 1.65%
    |-
    | kitchen
    | {{ll|crate}}
    | 1.65%
    |-
    | loggingfactory
    | {{ll|crate}}
    | 1.65%
    |-
    | loggingfactory
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | pawnshop
    | {{ll|counter}}
    | 1.65%
    |-
    | pawnshop
    | {{ll|crate}}
    | 1.65%
    |-
    | pawnshop
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | pawnshop
    | {{ll|shelves}}
    | 1.65%
    |-
    | pawnshopstorage
    | {{ll|crate}}
    | 1.65%
    |-
    | pawnshopstorage
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | shed
    | {{ll|crate}}
    | 1.65%
    |-
    | shed
    | {{ll|locker}}
    | 1.65%
    |-
    | shed
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | storageunit
    | {{ll|crate}}
    | 1.65%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | toolstore
    | {{ll|counter}}
    | 1.65%
    |-
    | toolstore
    | {{ll|crate}}
    | 1.65%
    |-
    | toolstore
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | toolstore
    | {{ll|shelves}}
    | 1.65%
    |-
    | toolstorestorage
    | {{ll|crate}}
    | 1.65%
    |-
    | toolstorestorage
    | {{ll|metal_shelves}}
    | 1.65%
    |-
    | warehouse
    | {{ll|crate}}
    | 1.65%
    |-
    | warehouse
    | {{ll|metal_shelves}}
    | 1.65%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Sledgehammer2" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Sledgehammer2|41.78.16-->
 
Sledgehammers can also be found at randomly spawning manhole and roadwork events, both on the ground and in the trunk of the vehicle.
 
==Code==
{{CodeBox|
 
===Item===
[[File:Sledgehammer.png]] {{ID|Base.Sledgehammer}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 2868
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Sledgehammer
{
    DisplayCategory = ToolWeapon,
MaxRange = 1.35,
WeaponSprite = SledgeHammer,
MinAngle = 0.8,
Type = Weapon,
MinimumSwingTime = 4,
EnduranceMod = 4,
KnockBackOnNoDeath = TRUE,
SwingAmountBeforeImpact = 0.04,
Categories = Blunt,
ConditionLowerChanceOneIn = 40,
Weight = 6,
SplatNumber = 3,
PushBackMod = 1,
SubCategory = Swinging,
ConditionMax = 10,
MaxHitCount = 3,
DoorDamage = 40,
IdleAnim = Idle_Weapon2,
CantAttackWithLowestEndurance = TRUE,
SwingAnim = Heavy,
DisplayName = Sledgehammer,
MinRange = 0.7,
SwingTime = 2,
HitSound = SledgehammerHit,
HitFloorSound = SledgehammerHit,
SwingSound = SledgehammerSwing,
DoorHitSound = SledgehammerHit,
KnockdownMod = 3,
SplatBloodOnNoDeath = FALSE,
Icon = Sledgehamer,
RunAnim = Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =  SledgehammerBreak,
        TreeDamage  =  10,
        MinDamage = 2,
        MaxDamage = 3,
        MetalValue = 120,
        AlwaysKnockdown = TRUE,
        CritDmgMultiplier = 2,
        BaseSpeed = 0.9,
      WeaponLength = 0.65,
      RequiresEquippedBothHands = TRUE,
      AttachmentType = BigBlade,
        Tags = Sledgehammer,
}
}}
 
[[File:Sledgehammer2.png]] {{ID|Base.Sledgehammer2}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 2917
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Sledgehammer2
    {
        DisplayCategory = ToolWeapon,
        MaxRange = 1.35,
        WeaponSprite = SledgeHammer02,
        MinAngle = 0.8,
        Type = Weapon,
        MinimumSwingTime = 4,
        EnduranceMod = 4,
        KnockBackOnNoDeath = TRUE,
        SwingAmountBeforeImpact = 0.04,
        Categories = Blunt,
        ConditionLowerChanceOneIn = 40,
        Weight = 6,
        SplatNumber = 3,
        PushBackMod = 1,
        SubCategory = Swinging,
        ConditionMax = 10,
        MaxHitCount = 3,
        DoorDamage = 40,
        IdleAnim = Idle_Weapon2,
        CantAttackWithLowestEndurance = TRUE,
        SwingAnim = Heavy,
        DisplayName = Sledgehammer,
        MinRange = 0.7,
        SwingTime = 2,
        HitSound = SledgehammerHit,
        HitFloorSound = SledgehammerHit,
SwingSound = SledgehammerSwing,
        DoorHitSound = SledgehammerHit,
        KnockdownMod = 3,
        SplatBloodOnNoDeath = FALSE,
        Icon = Sledgehammer2,
        RunAnim = Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =  SledgehammerBreak,
        TreeDamage  =  10,
        MetalValue = 120,
        MinDamage = 2,
        MaxDamage = 3,
        AlwaysKnockdown = TRUE,
        CritDmgMultiplier = 2,
        BaseSpeed = 0.9,
        WeaponLength = 0.65,
        RequiresEquippedBothHands = TRUE,
        AttachmentType = BigBlade,
        Tags = Sledgehammer,
    }
}}


== Distribution ==
===Repair===
Sledgehammers are usually found in crates and metal shelves.
[[File:Sledgehammer.png]] {{ID|Base.Sledgehammer}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 194
  | source = fixing.txt
  | retrieved = true
  | version = 41.78.16
  | code =
    fixing Fix Sledgehammer
    {
      Require : Sledgehammer,


== Crafting ==
      Fixer : Woodglue=2; Woodwork=2,
Due to the item being a blunt weapon, it can be used to smash a watermelon.
      Fixer : DuctTape=2,
{{Crafting header|ing=2}}<!-- Automatically generated by ReLookup. Subject RecipeLookup: 2015 -->
      Fixer : Glue=3,
{{Crafting/core|ing=2
      Fixer : Scotchtape=4,
| product_image = [[File:Watermelon_Chunks.png|link=Watermelon Chunks|Watermelon Chunks]] | product_name = [[Watermelon Chunks]] | product_quantity = x5
    }
| xp = <!-- Not present in the old template. Please fill in manually. -->
| sl = ''none''
| req =  
| f1 = [[File:Watermelon.png|link=Watermelon|Watermelon]] | i1 = [[Watermelon]] | q1 = x1 | tag1 = (consumed)
| f2 = [[File:BaseballBat.png]] | i2 = [[Weapons#Blunt Weapon|Blunt Weapon]]<br>or<br>[[Log]] | q2 = x1
}}
}}
|}


<del>todo: add sledgehammer metalwork/smithing craft or remove this notice</del>
[[File:Sledgehammer2.png]] {{ID|Base.Sledgehammer2}}<br>
== Code ==
{{CodeSnip
<nowiki>
  | lang = java
item Sledgehammer
  | line = true
MaxRange = 1.9,
  | start = 204
WeaponSprite = Sledgehammer,
  | source = fixing.txt
MinAngle = 0.2,
  | retrieved = true
Type = Weapon,
  | version = 41.78.16
MinimumSwingTime = 4,
  | code =
EnduranceMod = 6,
    fixing Fix Sledgehammer2
KnockBackOnNoDeath = TRUE,
    {
SwingAmountBeforeImpact = 0.04,
      Require : Sledgehammer2,
Categories = Blunt,
ConditionLowerChanceOneIn = 40,
Weight = 6,
SplatN.umber = 1,
PushBackMod = 1,
MaxDamage = 3,
SubCategory = Swinging,
ConditionMax = 10,
MaxHitCount = 3,
DoorDamage = 40,
IdleAnim = Idle_Weapon2,
CantAttackWithLowestEndurance = TRUE,
SwingAnim = Sledgehammer,
WeaponWeight = 6,
DisplayName = Sledgehammer,
MinRange = 0.7,
SwingTime = 4,
DoorHitSound = sledgehammer,
MinDamage = 2,
KnockdownMod = 3,
SplatBloodOnNoDeath = FALSE,
Icon = Sledgehamer,
RunAnim = Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  = PZ_WoodSnap,
        TreeDamage  = 10,
        MetalValue = 120,
</nowiki>
== History ==


{| class="pztable" width="550" style="text-align:center;"
      Fixer : Woodglue=2; Woodwork=2,
      Fixer : DuctTape=2,
      Fixer : Glue=3,
      Fixer : Scotchtape=4,
    }
}}
}}
 
==History==
{| class="wikitable theme-red" width="550" style="text-align:center;"
|-
|-
! colspan="2" |Alpha  
! colspan="2" |Alpha
|-
|-
|Build 26|| The sledgehammer will lose condition when used to destroy things.
|Build 26|| The sledgehammer will lose condition when used to destroy things.
Line 131: Line 728:
|}
|}


== Gallery ==
==Gallery==
[[File:Sledgehammer-Article-Image1.png|center|(Left) Showing the Destroy function on the sledgehammer. (Right) Showing the destruction of a wall.]]
<gallery>
Sledgehammer-Article-Image1.png|(Left) Showing the Destroy function on the sledgehammer. (Right) Showing the destruction of a wall
</gallery>
 
==See also==
 
{{Navbox items|blunt}}
 
 


{{Navbox/Tools}}
{{Navbox/Weapons}}
{{Navbox_weapons}}
[[Category:Tools]]
[[Category:Tools]]
[[Category:Carpentry tools]]
[[Category:Spiffo's Construction Crew (Project)]]
[[Category:Spiffo's Construction Crew (Project)]]

Latest revision as of 05:45, 5 May 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Sledgehammer
Sledgehammer Model.png
Sledgehammer02 Model.png
General
Category
Tool/Weapon
Encumbrance
Moodle Icon HeavyLoad.png
6
Equipped
Two-handed
Slot attached
Back
Function
Destroy walls
Skill
Properties
Max condition
10
Performance
Damage
2–3
Range
0.7–1.35
Attack speed
0.9
Knockback
1
Knockdown
3
Technical
Item ID
Base.Sledgehammer
Base.Sledgehammer2

A sledgehammer is a heavy, two-handed, blunt melee weapon.

Usage

Weapon

The sledgehammer has one of the highest average and maximum damage of all weapons, but has a very slow attack speed. The sledgehammer is one of the few weapons that can hit 3 zombies at once (with multi-hit enabled), for comparison, a baseball bat can only hit 2 zombies at once. It is heavy, must be equipped in two hands, and will quickly exhaust the user, and cannot be used once the character is exhausted.

Breaking doors

The sledgehammer is very effective at breaking doors, dealing 40 damage to them, compared to an axe dealing 35 damage. Alternatively, the destroy function can be used to destroy doors instantly.

Chopping trees

The sledgehammer is better at chopping down trees than most melee weapons, dealing 10 damage, but still not as effective as the axe which deals 35 damage.

Destruction of tiles

Destroying tiles, such as walls, doors, and other miscellaneous objects, is a function exclusive to the sledgehammer. To destroy tiles, click "Destroy" on the RMB contextual menu while having the sledgehammer equipped. A red box will appear, highlighting the tile to destroy.

Condition

The sledgehammer has a maximum condition of 10. 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 (40 + 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/40 (3%)
0 4 1/42 (2%)
0 8 1/44 (2%)
4 0 1/44 (2%)
8 0 1/48 (2%)
4 4 1/46 (2%)
4 8 1/48 (2%)
8 8 1/52 (2%)
10 10 1/54 (2%)

Repairing

It should be noted that repairing the sledgehammer makes following repairs less likely to succeed and can, if repaired numerous times, cause reduced durability instead of increased.

Repair Sledgehammer
Woodglue.png
Potentially repairs: 55%
Chance of success: 100%
DuctTape.png
Potentially repairs: 20%
Chance of success: 95%
Glue.png
Potentially repairs: 10%
Chance of success: 95%
Scotchtape.png
Potentially repairs: 10%
Chance of success: 95%

Crafting

The sledgehammer can be used to smash a watermelon into chunks.

Product Ingredients Tools Requirements Workstation XP
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

Distribution

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

Sledgehammer distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
Bag_ToolBag Bag_ToolBag 0.42%
SafehouseLoot counter 2.81%
SafehouseLoot crate 1.65%
SafehouseLoot crate 2.81%
SafehouseLoot metal_shelves 1.65%
SafehouseLoot metal_shelves 2.81%
SafehouseLoot wardrobe 2.81%
SurvivorCache1 counter 2.81%
SurvivorCache2 counter 2.81%
ToolsCache1 ToolsBox 1.65%
all crate 0.41%
all toolcabinet 1.65%
armyhanger counter 1.65%
armyhanger metal_shelves 1.65%
closet crate 1.65%
construction crate 1.65%
drugshack counter 1.65%
drugshack crate 1.65%
factory crate 1.65%
factory metal_shelves 1.65%
farmstorage crate 1.65%
farmstorage metal_shelves 1.65%
firestorage metal_shelves 1.65%
garagestorage counter 1.65%
garagestorage crate 1.65%
garagestorage locker 1.65%
garagestorage metal_shelves 1.65%
generalstore metal_shelves 1.65%
generalstore shelves 1.65%
generalstorestorage metal_shelves 1.65%
generalstorestorage shelves 1.65%
gigamart shelves 1.65%
kitchen crate 1.65%
loggingfactory crate 1.65%
loggingfactory metal_shelves 1.65%
pawnshop counter 1.65%
pawnshop crate 1.65%
pawnshop metal_shelves 1.65%
pawnshop shelves 1.65%
pawnshopstorage crate 1.65%
pawnshopstorage metal_shelves 1.65%
shed crate 1.65%
shed locker 1.65%
shed metal_shelves 1.65%
storageunit crate 1.65%
storageunit metal_shelves 1.65%
toolstore counter 1.65%
toolstore crate 1.65%
toolstore metal_shelves 1.65%
toolstore shelves 1.65%
toolstorestorage crate 1.65%
toolstorestorage metal_shelves 1.65%
warehouse crate 1.65%
warehouse metal_shelves 1.65%
Sledgehammer2 distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
Bag_ToolBag Bag_ToolBag 0.42%
SafehouseLoot counter 2.81%
SafehouseLoot crate 1.65%
SafehouseLoot crate 2.81%
SafehouseLoot metal_shelves 1.65%
SafehouseLoot metal_shelves 2.81%
SafehouseLoot wardrobe 2.81%
SurvivorCache1 counter 2.81%
SurvivorCache2 counter 2.81%
ToolsCache1 ToolsBox 1.65%
all crate 0.41%
all toolcabinet 1.65%
armyhanger counter 1.65%
armyhanger metal_shelves 1.65%
closet crate 1.65%
construction crate 1.65%
drugshack counter 1.65%
drugshack crate 1.65%
factory crate 1.65%
factory metal_shelves 1.65%
farmstorage crate 1.65%
farmstorage metal_shelves 1.65%
firestorage metal_shelves 1.65%
garagestorage counter 1.65%
garagestorage crate 1.65%
garagestorage locker 1.65%
garagestorage metal_shelves 1.65%
generalstore metal_shelves 1.65%
generalstore shelves 1.65%
generalstorestorage metal_shelves 1.65%
generalstorestorage shelves 1.65%
gigamart shelves 1.65%
kitchen crate 1.65%
loggingfactory crate 1.65%
loggingfactory metal_shelves 1.65%
pawnshop counter 1.65%
pawnshop crate 1.65%
pawnshop metal_shelves 1.65%
pawnshop shelves 1.65%
pawnshopstorage crate 1.65%
pawnshopstorage metal_shelves 1.65%
shed crate 1.65%
shed locker 1.65%
shed metal_shelves 1.65%
storageunit crate 1.65%
storageunit metal_shelves 1.65%
toolstore counter 1.65%
toolstore crate 1.65%
toolstore metal_shelves 1.65%
toolstore shelves 1.65%
toolstorestorage crate 1.65%
toolstorestorage metal_shelves 1.65%
warehouse crate 1.65%
warehouse metal_shelves 1.65%

Sledgehammers can also be found at randomly spawning manhole and roadwork events, both on the ground and in the trunk of the vehicle.

Code

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

Item

Sledgehammer.png Base.Sledgehammer
Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item Sledgehammer
	{
	    DisplayCategory = ToolWeapon,
		MaxRange	=	1.35,
		WeaponSprite	=	SledgeHammer,
		MinAngle	=	0.8,
		Type	=	Weapon,
		MinimumSwingTime	=	4,
		EnduranceMod	=	4,
		KnockBackOnNoDeath	=	TRUE,
		SwingAmountBeforeImpact	=	0.04,
		Categories	=	Blunt,
		ConditionLowerChanceOneIn	=	40,
		Weight	=	6,
		SplatNumber	=	3,
		PushBackMod	=	1,
		SubCategory	=	Swinging,
		ConditionMax	=	10,
		MaxHitCount	=	3,
		DoorDamage	=	40,
		IdleAnim	=	Idle_Weapon2,
		CantAttackWithLowestEndurance	=	TRUE,
		SwingAnim	=	Heavy,
		DisplayName	=	Sledgehammer,
		MinRange	=	0.7,
		SwingTime	=	2,
		HitSound = SledgehammerHit,
		HitFloorSound = SledgehammerHit,
		SwingSound = SledgehammerSwing,
		DoorHitSound	=	SledgehammerHit,
		KnockdownMod	=	3,
		SplatBloodOnNoDeath	=	FALSE,
		Icon	=	Sledgehamer,
		RunAnim	=	Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =   SledgehammerBreak,
        TreeDamage  =   10,
        MinDamage	=	2,
        MaxDamage	=	3,
        MetalValue = 120,
        AlwaysKnockdown = TRUE,
        CritDmgMultiplier = 2,
        BaseSpeed = 0.9,
      	WeaponLength = 0.65,
      	RequiresEquippedBothHands = TRUE,
      	AttachmentType = BigBlade,
        Tags = Sledgehammer,
	}

Sledgehammer2.png Base.Sledgehammer2
Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item Sledgehammer2
    {
        DisplayCategory = ToolWeapon,
        MaxRange	=	1.35,
        WeaponSprite	=	SledgeHammer02,
        MinAngle	=	0.8,
        Type	=	Weapon,
        MinimumSwingTime	=	4,
        EnduranceMod	=	4,
        KnockBackOnNoDeath	=	TRUE,
        SwingAmountBeforeImpact	=	0.04,
        Categories	=	Blunt,
        ConditionLowerChanceOneIn	=	40,
        Weight	=	6,
        SplatNumber	=	3,
        PushBackMod	=	1,
        SubCategory	=	Swinging,
        ConditionMax	=	10,
        MaxHitCount	=	3,
        DoorDamage	=	40,
        IdleAnim	=	Idle_Weapon2,
        CantAttackWithLowestEndurance	=	TRUE,
        SwingAnim	=	Heavy,
        DisplayName	=	Sledgehammer,
        MinRange	=	0.7,
        SwingTime	=	2,
        HitSound = SledgehammerHit,
        HitFloorSound = SledgehammerHit,
		SwingSound = SledgehammerSwing,
        DoorHitSound = SledgehammerHit,
        KnockdownMod	=	3,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	Sledgehammer2,
        RunAnim	=	Run_Weapon2,
        TwoHandWeapon = TRUE,
        BreakSound  =   SledgehammerBreak,
        TreeDamage  =   10,
        MetalValue = 120,
        MinDamage	=	2,
        MaxDamage	=	3,
        AlwaysKnockdown = TRUE,
        CritDmgMultiplier = 2,
        BaseSpeed = 0.9,
        WeaponLength = 0.65,
        RequiresEquippedBothHands = TRUE,
        AttachmentType = BigBlade,
        Tags = Sledgehammer,
    }

Repair

Sledgehammer.png Base.Sledgehammer
Source: ProjectZomboid\media\scripts\fixing.txt

Retrieved: Build 41.78.16
fixing Fix Sledgehammer
    {
       Require : Sledgehammer,

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

Sledgehammer2.png Base.Sledgehammer2
Source: ProjectZomboid\media\scripts\fixing.txt

Retrieved: Build 41.78.16
fixing Fix Sledgehammer2
    {
       Require : Sledgehammer2,

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

History

Alpha
Build 26 The sledgehammer will lose condition when used to destroy things.
RC 2.9.8a Melee weapons debuffed.
0.2.0a Sledgehammer added

Gallery

See also