Sledgehammer: Difference between revisions

From PZwiki
(Replaced Navigation System with Header Version, Confirmed and Updated Code to include metal value, Updated Weapon Template Cleared Old Categories except weapon category.)
m (Automated CodeBox update)
(48 intermediate revisions by 18 users not shown)
Line 1: Line 1:
__NOTOC__
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
{{languages|Sledgehammer}}
{{Page version|41.78.16}}
{{header|The Game World|Items|Tools|version=Version 37|incver=8}}{{Weapons|image = Sledgehammer.png |weapontype = Melee |ammo = None|hands = One/Two handed|weight = 6.0|mindamage = 2|maxdamage = 3|condition = 10|degrade = 40|id = Sledgehammer}}The '''Sledgehammer''' is a two-handed blunt melee weapon that can deal a great amount of damage at the cost of being cumbersome. It is a highly risky weapon to use because of the weight on the person that [[Moodles#Heavy_Load|continuously weighs down on the player]] and slows them down. The sledgehammer is unable to be used while [[Moodles#Endurance|exhausted]].
{{Infobox item
<br><br>
|name=Sledgehammer
The sledgehammer has the highest max damage output of all weapons as well as the highest average damage. It is plagued with the longest swing time of all melee weapons, requiring the player to plan his attacks against zombies.
|model=Sledgehammer_Model.png
<br><br>
|icon=Sledgehammer.png
Sledgehammers are usually found in crates and metal shelving. The sledgehammer's durability is exceptionally good and it takes a long time to break a Sledgehammer. (1/40 chance of durability loss)
|icon_name=Sledgehammer
<br><br>
|model2=Sledgehammer02_Model.png
The sledgehammer also functions as an effective door-breaker and tree chopper. It has the ability to do 40 door damage compared to the [[Axe|Axe's]] 35. It can also provide manually 10 tree damage.
|icon2=Sledgehammer2.png
<br><br>
|icon_name2=Sledgehammer
The sledgehammer is one of the few weapons that can attack 3 zombies at a time, and is a triple attack weapon ''(compared to the [[Baseball Bat|baseball bat]] which can hit 2)''. Attacking however with a sledgehammer is extremely tricky due to its swing speed and care should be taken as a extremely tired character cannot swing the sledgehammer.
<!--General-->
<br><br><br>
|category=Tool/Weapon
== Destruction of Blocks ==
|weight=6
|function=Destroy walls
|equipped=Two-handed
|condition_max=10
|attachment_type=BigBlade
|skill_type=Blunt
<!--DAMAGE-->
|type=Blunt
|min_range=0.7
|max_range=1.35
|base_speed=0.9
|min_damage=2
|max_damage=3
|push_back=1
|knockdown=3
<!--TECHNICAL-->
|item_id=Base.Sledgehammer<br>Base.Sledgehammer2
}}


The sledgehammer can also be used to destroy walls, doors, windows and other miscellaneous objects, this is done by right clicking and activating the "Destroy" function on the equipped Sledgehammer. Then a red box will appear. Right click on a structure that will be highlighted with red under the cursor, and then destroy. After a short animation the structure will be destroyed.
A '''sledgehammer''' is a [[Weapons#Heavy|heavy]], two-handed, blunt melee weapon.


[[File:Sledgehammer-Article-Image1.png|center|(Left) Showing the Destroy function on the sledgehammer. (Right) Showing the destruction of a wall.]]
==Usage==
<br><br>
===Weapon===
== Alternate Uses ==
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 [[Moodles#Endurance|exhaust]] the user, and cannot be used once the character is exhausted.
The sledgehammer like the baseball bat can be used to smash a watermelon.
 
{| class="wikitable sortable" style="text-align:center;"
===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.
! Name
 
! class="unsortable" | Recipe
===Chopping trees===
! class="unsortable" | Description
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.
{{RecipeLookup|2015}}
 
===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.
 
==Condition==
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.
 
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|long blunt]] skills.
{{Durability weapon|40}}
 
===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.
{{Fixing weapon
|item=Sledgehammer
|woodglue=2
|woodgluerepairs=55
|woodgluechance=100
|woodwork=2
|ducttape=2
|ducttaperepairs=20
|ducttapechance=95
|glue=3
|gluerepairs=10
|gluechance=95
|scotchtape=4
|scotchtaperepairs=10
|scotchtapechance=95
}}
 
==Crafting==
The sledgehammer can be used to smash a watermelon into chunks.
{{Crafting header|ing=2}}
{{Crafting cooking|402|ing=2}}
|}
|}
<br><br>
== Materials to Repair ==


{| class="wikitable" style="text-align:center;"  
==Distribution==
The loot distributions can be found in the table(s) below.
 
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
! colspan="4" | Containers
|-
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|SafehouseLoot
|[[counter]]
|4
|0.5
|-
|-
! Item Repaired
|all
! 1st Repair Materials = <br> 55% Repaired, 100% Success
|[[toolcabinet]]
!  <br> 20% Repaired, 95% Success
|4
!  <br> 10% Repaired, 95% Success
|0.01
!  <br> 10% Repaired, 95% Success
|-
|-
|[[File:Sledgehammer.png|32px]] <br>
|armyhanger
[[Sledgehammer]]
|[[counter]]  
| [[File:Woodglue.png|32px]]<br>
|4
[[Wood Glue]] <small>(2 Uses)</small><br>
|0.01
<small>(Requires Carpentry Level 2)</small>
| [[File:DuctTape.png|32px]]<br>
[[Duct Tape]] <small>(2 Uses)</small>
| [[File:Glue.png|32px]]<br>
[[Glue]] <small>(3 Uses)</small>
| [[File:MATERIALScotchTape.png|32px]]<br>
[[Adhesive Tape]] <small>(4 Uses)</small>
|-
|-
|drugshack
|[[counter]]
|4
|0.01
|-
|firestorage
|[[metal_shelves]]
|4
|0.01
|-
|garagestorage
|[[counter]]
|4
|0.01
|-
|generalstore
|[[metal_shelves]]
|4
|0.01
|-
|pawnshop
|[[counter]]
|4
|0.01
|}
|}
<br><br>
=== Repair Code ===


  <nowiki>
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,
    }
}}
 
===Repair===
[[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
     fixing Fix Sledgehammer
    {
      Require : Sledgehammer,


       Require : Sledgehammer,
      Fixer : Woodglue=2; Woodwork=2,
      Fixer : DuctTape=2,
      Fixer : Glue=3,
      Fixer : Scotchtape=4,
    }
}}
 
[[File:Sledgehammer2.png]] {{ID|Base.Sledgehammer2}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 204
  | source = fixing.txt
  | retrieved = true
  | version = 41.78.16
  | code =
    fixing Fix Sledgehammer2
    {
       Require : Sledgehammer2,


       Fixer : Woodglue=2; Woodwork=2,
       Fixer : Woodglue=2; Woodwork=2,
Line 62: Line 289:
       Fixer : Glue=3,
       Fixer : Glue=3,
       Fixer : Scotchtape=4,
       Fixer : Scotchtape=4,
</nowiki>
    }
<br><br>
}}
== Code ==
}}
<nowiki>
item Sledgehammer
MaxRange = 1.9,
WeaponSprite = Sledgehammer,
MinAngle = 0.2,
Type = Weapon,
MinimumSwingTime = 4,
EnduranceMod = 6,
KnockBackOnNoDeath = TRUE,
SwingAmountBeforeImpact = 0.04,
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="wikitable" width="550" style="text-align:center;"
==History==
{| class="wikitable theme-red" width="550" style="text-align:center;"
|-
|-
! Alpha |Description 
! 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 115: Line 304:
|0.2.0a|| Sledgehammer added
|0.2.0a|| Sledgehammer added
|}
|}
== References ==
 
<references/>
==Gallery==
{{Navbox/Tools}}
<gallery>
{{Navbox/Weapons}}
Sledgehammer-Article-Image1.png|(Left) Showing the Destroy function on the sledgehammer. (Right) Showing the destruction of a wall.
[[Category:Weapons]]
</gallery>
 
{{Navbox equipment|tools}}
{{Navbox weapons|blunt}}
 
[[Category:Tools]]
[[Category:Carpentry tools]]
[[Category:Spiffo's Construction Crew (Project)]]

Revision as of 11:32, 26 March 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: Durability
Maintenance skill Weapon skill Durability 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 XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
WatermelonSmashed.png
Watermelon Chunks x5
0.75 Cooking none
(keep)
Watermelon.png
Watermelon
(consumed)

Distribution

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

Containers
Building/Room Container Rolls Chance
SafehouseLoot counter 4 0.5
all toolcabinet 4 0.01
armyhanger counter 4 0.01
drugshack counter 4 0.01
firestorage metal_shelves 4 0.01
garagestorage counter 4 0.01
generalstore metal_shelves 4 0.01
pawnshop counter 4 0.01

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