Club Hammer: Difference between revisions

From PZwiki
No edit summary
m (Automated Formatting)
(28 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{underconstruction}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}}
{{languages|{{PAGENAME}}}}
{{Page version|41.78.16}}
{{header|Project Zomboid|Items|Weapons|Melee Weapons|type=Weapon|version=Version 41|incver=55}}
{{Infobox item
{{Infobox weapon
|name=Club Hammer
|display_name=Club Hammer
|model=ClubHammer_Model.png
|name_colour=Weapon
|icon=ClubHammer.png
|name_text_colour=Weapon
|icon_name=Club Hammer
|image=Image.png
|image_width=120px
|alternate_image=ClubHammer.png
<!--GENERAL-->
<!--GENERAL-->
|category=Weapon
|category=Tool/Weapon
|weight=1
|weight=1
|equipped=One-handed
|equipped=One-handed
Line 17: Line 14:
<!--DAMAGE-->
<!--DAMAGE-->
|type=SmallBlunt
|type=SmallBlunt
|swing_time=3
|base_speed=1
|min_range=0.61
|min_range=0.61
|max_range=1
|max_range=1
Line 25: Line 22:
|knockdown=0
|knockdown=0
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=ClubHammer
|item_id=Base.ClubHammer
}}
}}
'''''TODO'''''
{{Quote|text=Too unwieldy to drive nails.|author=In-game tooltip}}
A '''club hammer''' is a short blunt [[Weapons|weapon]].


== Usage ==
==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. Currently, the club hammer is only used as a weapon. However, it can be confusing because it is categorized as a tool/weapon in the game.
The club hammer does not work in building or dismantling wooden objects unlike like the [[hammer]], [[Ball-peen Hammer|ball-peen hammer]], or [[Stone Hammer|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.


== Distribution ==  
===Weapon===
Club hammer's can be found in sheds, garages, warehouses, house closets, and tool shops.
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.


== Code ==
==Condition==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
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>
{{Retrieved|version=41|incver=55}}
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|short blunt]] skills.
<pre> item ClubHammer
{{Durability weapon|25}}
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,
</pre>


{{Navbox_weapons}}
==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
|6
|-
|all
|[[toolcabinet]]
|4
|4
|-
|armyhanger
|[[counter]]
|4
|4
|-
|bedroom
|[[crate]]
|1
|0.4
|-
|cabinetfactory
|[[crate]]
|4
|8
|-
|carsupply
|[[counter]]
|4
|4
|-
|rowspan="2"|closet
|[[crate]]
|4
|8
|-
|[[crate]]
|4
|4
|-
|rowspan="2"|drugshack
|[[counter]]
|4
|4
|-
|[[crate]]
|4
|4
|-
|rowspan="2"|garagestorage
|[[counter]]
|4
|4
|-
|[[counter]]
|4
|4
|-
|generalstore
|[[metal_shelves]]
|4
|4
|-
|pawnshop
|[[counter]]
|4
|4
|-
|toolstorestorage
|[[metal_shelves]]
|4
|4
|}
Club hammers can be found in sheds, garages, warehouses, house closets, and tool shops.
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 922
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
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,
    }
}}
 
===Repair===
 
{{CodeSnip
  | lang = java
  | line = true
  | start = 459
  | source = fixing.txt
  | retrieved = true
  | version = 41.78.16
  | code =
    fixing Fix Club Hammer
    {
      Require : ClubHammer,
 
      Fixer : Woodglue; Woodwork=1,
      Fixer : DuctTape,
      Fixer : Glue=2,
      Fixer : Scotchtape=3,
    }
}}
}}
 
==See also==
*[[Axe]]
*[[Hammer]]
 
{{Navbox items|blunt}}
 
 
 
[[Category:Tools]]
[[Category:Carpentry tools]]

Revision as of 07:38, 14 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]
Club Hammer
ClubHammer Model.png
General
Category
Tool/Weapon
Encumbrance
Moodle Icon HeavyLoad.png
1
Equipped
One-handed
Properties
Max condition
10
Performance
Damage
0.5–1
Range
0.61–1
Attack speed
1
Knockback
0.5
Knockdown
0
Technical
Item 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

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

Containers
Building/Room Container Rolls Chance
SafehouseLoot counter 4 6
all toolcabinet 4 4
armyhanger counter 4 4
bedroom crate 1 0.4
cabinetfactory crate 4 8
carsupply counter 4 4
closet crate 4 8
crate 4 4
drugshack counter 4 4
crate 4 4
garagestorage counter 4 4
counter 4 4
generalstore metal_shelves 4 4
pawnshop counter 4 4
toolstorestorage metal_shelves 4 4

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

Repair

Source: ProjectZomboid\media\scripts\fixing.txt

Retrieved: Build 41.78.16
fixing Fix Club Hammer
    {
       Require : ClubHammer,

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

See also