Club Hammer: Difference between revisions

From PZwiki
(added CodeBox, Condition, See also, introduction, Weapon)
Line 34: Line 34:


==Condition==
==Condition==
The club hammer 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 (25 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the short blunt and maintenance skills.<br>
The club hammer has a maximum condition of 10. Its rate of degradation is influenced by the [[Skills|short blunt]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (25 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the short 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.
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|short blunt]] skills.
{{Durability weapon|25}}
{{Durability weapon|25}}



Revision as of 05:11, 29 December 2023

Club Hammer
Club Hammer
Club Hammer
General
Category Tool/Weapon
Encumbrance
Heavy Load
1
Equipped One-handed
Condition max. 10
Skill Short Blunt
Damage
Type SmallBlunt
Attack speed 1
Range 0.61–1 tiles
Damage 0.5–1
Knockback 0.5
Knockdown 0
Technical details
Base ID Base.ClubHammer
Too unwieldy to drive nails.
— In-game tooltip

A club hammer is a short blunt weapon.

Usage

The club hammer does not work in building or dismantling wooden objects unlike like the hammer, ball-peen hammer, or stone hammer which all are able to build and dismantle objects. The club hammer can only be used as a weapon, although it is categorized as a tool/weapon in the game.

Weapon

The club hammer can hit up to 1 enemy at a time (even with multi-hit enabled), dealing a maximum of 1 damage to enemies (unless a critical hit) from up to 1 tiles away at an attack speed of 1.

Condition

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

For how this is calculated, see: Condition
Maintenance skill Weapon skill Condition lower chance
0 0 1/25 (4%)
0 4 1/27 (4%)
0 8 1/29 (3%)
4 0 1/29 (3%)
8 0 1/33 (3%)
4 4 1/31 (3%)
4 8 1/33 (3%)
8 8 1/37 (3%)
10 10 1/39 (3%)

Distribution

Club hammers can be found in sheds, garages, warehouses, house closets, and tool shops.

Code

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

Source: ProjectZomboid\media\scripts\weapons.txt

Retrieved: Build 41.78.16
item ClubHammer
	{
	    DisplayCategory = ToolWeapon,
		MaxRange	=	1,
		WeaponSprite	=	ClubHammer,
		MinAngle	=	0.65,
		Type	=	Weapon,
		MinimumSwingTime	=	3,
		KnockBackOnNoDeath	=	TRUE,
		SwingAmountBeforeImpact	=	0.02,
		Categories	=	SmallBlunt,
		ConditionLowerChanceOneIn	=	25,
		Weight	=	1,
		SplatNumber	=	1,
		PushBackMod	=	0.5,
		SubCategory	=	Swinging,
		ConditionMax	=	10,
		MaxHitCount	=	1,
		DoorDamage	=	9,
		CanBarricade	=	TRUE,
		SwingAnim	=	Bat,
		DisplayName	=	Club Hammer,
		MinRange	=	0.61,
		SwingTime	=	3,
		KnockdownMod	=	0,
		SplatBloodOnNoDeath	=	TRUE,
		Icon	=	ClubHammer,
		RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        BreakSound  =   ClubHammerBreak,
        DoorHitSound = ClubHammerHit,
		HitSound = ClubHammerHit,
		HitFloorSound = ClubHammerHit,
		SwingSound = ClubHammerSwing,
        TreeDamage  =   0,
        MetalValue = 25,
        CriticalChance	=	20,
        CritDmgMultiplier = 2,
        MinDamage	=	0.5,
        MaxDamage	=	1,
        BaseSpeed = 1,
	    WeaponLength = 0.23,
	    AttachmentType = Hammer,
		Tooltip = Tooltip_no_nails,
    }

See also