Sledgehammer: Difference between revisions

From PZwiki
(Updated "Code" section as well as weapon's stats. Verified information everywhere else, so I removed the {{Outdated}} notice. Have not yet updated "History" section.)
Line 1: Line 1:
{{languages|Sledgehammer}}
{{languages|Sledgehammer}}
{{header|The Game World|Items|Weapons|Melee Weapons|type=Weapon|version=Version 37|incver=8}}
{{header|The Game World|Items|Weapons|Melee Weapons|type=Weapon|version=Version 41|incver=77}}
{{Improve}}
{{Improve}}
{{Outdated}}
{{Infobox weapon
{{Infobox weapon
|display_name=Sledgehammer
|display_name=Sledgehammer
Line 18: Line 17:
|type=Blunt
|type=Blunt
|min_range=0.7
|min_range=0.7
|max_range=1.9
|max_range=1.35
|swing_time=3
|swing_time=4
|condition_max=10
|condition_max=10
|min_damage=0.8
|min_damage=2
|max_damage=1.2
|max_damage=3
|push_back=1
|push_back=1
|knockdown=3
|knockdown=3
Line 79: Line 78:


== Code ==
== Code ==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
  <nowiki>
  <nowiki>
item Sledgehammer
item Sledgehammer
MaxRange = 1.9,
{
WeaponSprite = Sledgehammer,
    DisplayCategory = ToolWeapon,
MinAngle = 0.2,
MaxRange = 1.35,
Type = Weapon,
WeaponSprite = SledgeHammer,
MinimumSwingTime = 4,
MinAngle = 0.8,
EnduranceMod = 6,
Type = Weapon,
KnockBackOnNoDeath = TRUE,
MinimumSwingTime = 4,
SwingAmountBeforeImpact = 0.04,
EnduranceMod = 4,
Categories = Blunt,
KnockBackOnNoDeath = TRUE,
ConditionLowerChanceOneIn = 40,
SwingAmountBeforeImpact = 0.04,
Weight = 6,
Categories = Blunt,
SplatN.umber = 1,
ConditionLowerChanceOneIn = 40,
PushBackMod = 1,
Weight = 6,
MaxDamage = 3,
SplatNumber = 3,
SubCategory = Swinging,
PushBackMod = 1,
ConditionMax = 10,
SubCategory = Swinging,
MaxHitCount = 3,
ConditionMax = 10,
DoorDamage = 40,
MaxHitCount = 3,
IdleAnim = Idle_Weapon2,
DoorDamage = 40,
CantAttackWithLowestEndurance = TRUE,
IdleAnim = Idle_Weapon2,
SwingAnim = Sledgehammer,
CantAttackWithLowestEndurance = TRUE,
WeaponWeight = 6,
SwingAnim = Heavy,
DisplayName = Sledgehammer,
DisplayName = Sledgehammer,
MinRange = 0.7,
MinRange = 0.7,
SwingTime = 4,
SwingTime = 2,
DoorHitSound = sledgehammer,
HitSound = SledgehammerHit,
MinDamage = 2,
HitFloorSound = SledgehammerHit,
KnockdownMod = 3,
SwingSound = SledgehammerSwing,
SplatBloodOnNoDeath = FALSE,
DoorHitSound = SledgehammerHit,
Icon = Sledgehamer,
KnockdownMod = 3,
RunAnim = Run_Weapon2,
SplatBloodOnNoDeath = FALSE,
        TwoHandWeapon = TRUE,
Icon = Sledgehamer,
        BreakSound = PZ_WoodSnap,
RunAnim = Run_Weapon2,
        TreeDamage = 10,
TwoHandWeapon = TRUE,
        MetalValue = 120,
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,
}
 
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,
    }
 
</nowiki>
</nowiki>
== History ==
== History ==

Revision as of 08:55, 22 October 2022

WhiskeyHalf.png
This article may be in need of improvement.
Editors are encouraged to add any missing information to the article, while verifying that the article's current content is correct.
Sledgehammer
Sledgehammer
Baseball Bat
General
Category Weapon
Encumbrance
Heavy Load
6
Function Destroy walls
Equipped Two-handed
Condition max. 10
Skill Long Blunt
Damage
Type Blunt
Attack speed 4
Range 0.7–1.35 tiles
Damage 2–3
Knockback 1
Knockdown 3
Technical details
Base ID Base.Sledgehammer

A sledgehammer is a two-handed blunt melee weapon.

Usage

Weapon

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 can only hit 2 zombies at once), but it must be used carefully due to the character unable to swing the sledgehammer when exhausted.

Breaking Doors

The sledgehammer is very effective at breaking doors, dealing 40 damage to them, compared to an Axe dealing 35 damage.

Chopping Trees

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.

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

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.

Repairing

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%

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.

Distribution

Sledgehammers are usually found in crates and metal shelves.

Crafting

Due to the item being a blunt weapon, it can be used to smash a watermelon.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
Watermelon Chunks
Watermelon Chunks x5
none Watermelon
Watermelon x1
(consumed)
BaseballBat.png
Blunt Weapon
or
Log x1

Code

From items_weapons.txt (Project Zomboid directory/media/scripts/)

	
	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,
	}

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,
    }


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

(Left) Showing the Destroy function on the sledgehammer. (Right) Showing the destruction of a wall.

Template:Navbox/Tools Template:Navbox/Weapons