Hammer: Difference between revisions

From PZwiki
mNo edit summary
(Checked and updated to version 40.43. Added additional crafting recipes.)
Line 1: Line 1:
{{languages|{{PAGENAME}}}}
{{languages|{{PAGENAME}}}}


{{header|The Game World|Items|Tools|type=Tool|version=Version 40|incver=26}}{{Infobox weapon
{{header|The Game World|Items|Tools|type=Tool|version=Version 40|incver=43}}{{Infobox weapon
|display_name=Hammer
|display_name=Hammer
|name_colour=Tool
|name_colour=Tool
Line 47: Line 47:
{{RecipeLookup|1006}}
{{RecipeLookup|1006}}
{{RecipeLookup|1005}}
{{RecipeLookup|1005}}
{{RecipeLookup|1026}}
{{RecipeLookup|1028}}
{{Crafting table footer}}
{{Crafting table footer}}


Line 59: Line 61:
{{RecipeLookup|1013}}
{{RecipeLookup|1013}}
{{RecipeLookup|1016}}
{{RecipeLookup|1016}}
{{RecipeLookup|1020}}
{{RecipeLookup|1022}}
{{RecipeLookup|1023}}
{{RecipeLookup|1024}}
{{RecipeLookup|1025}}
{{Crafting table footer}}
{{Crafting table footer}}


Line 72: Line 79:
{{RecipeLookup|2015}}
{{RecipeLookup|2015}}
{{Crafting table footer}}
{{Crafting table footer}}
== Require ==
<nowiki>
    fixing Fix Hammer
    {
      Require : Hammer,
      Fixer : Woodglue; Woodwork=1,
      Fixer : DuctTape,
      Fixer : Glue=2,
      Fixer : Scotchtape=3,
    }
</nowiki>


== Code ==
== Code ==
<nowiki>item Hammer
===Item===
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=43}}
<pre>item Hammer
MaxRange = 1,
MaxRange = 1,
WeaponSprite = Hammer,
WeaponSprite = Hammer,
Line 117: Line 114:
RunAnim = Run_Weapon2,
RunAnim = Run_Weapon2,
IdleAnim = Idle_Weapon2,
IdleAnim = Idle_Weapon2,
BreakSound  = PZ_MetalSnap,
BreakSound  = BreakMetalItem,
TreeDamage  = 1,
TreeDamage  = 1,
</nowiki>
MetalValue  = 25,
</pre>
 
===Repair===
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=43}}
<pre>
    fixing Fix Hammer
    {
      Require : Hammer,
      Fixer : Woodglue; Woodwork=1,
      Fixer : DuctTape,
      Fixer : Glue=2,
      Fixer : Scotchtape=3,
    }
</pre>


==See also==
==See also==
Line 126: Line 138:


{{Navbox/Tools}}{{Navbox/Weapons}}
{{Navbox/Tools}}{{Navbox/Weapons}}
[[Category:Tools]]
[[Category:Weapons]]
[[Category:Weapons]]
[[Category:Melee Weapons]]
[[Category:Melee Weapons]]
[[Category:Version 0.2.0p]]
[[Category:Spiffo's Construction Crew (Project)]]
[[Category:Spiffo's Construction Crew (Project)]]

Revision as of 04:15, 6 July 2019


Template:Infobox weapon

A hammer is a tool used in crafting furniture and structures.

Usage

Carpentry

A hammer, in combination with wooden planks and nails, is required for most carpentry recipes. It is also necessary for barricading doors and windows.

Weapon

A hammer can be used as a melee weapon. It deals a decent amount of damage, but has a short range and little knockback. A hammer deals 9 damage per swing to doors and 1 damage per swing to trees. When compared to the 35 damage given by an axe, hammers are not recommended to be used in this way.

Both the baseball bat and plank can be improved by combining with them nails using a hammer, making them deal slightly more damage.

Crafting

A hammer can be used in the following recipes:

Construction

Template:Crafting table header |- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
Template:Crafting table footer

Furniture

Template:Crafting table header |- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
Template:Crafting table footer

Weapons

Template:Crafting table header |- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
Template:Crafting table footer

Other

Template:Crafting table header |- |
| | | ||
||
||
||
||
||
||
||
||
||
||
|- |
| | | ||
||
||
||
||
||
||
||
||
||
||
Template:Crafting table footer

Code

Item

From items.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 40.43

item Hammer
		MaxRange			= 1,
		WeaponSprite			= Hammer,
		MinAngle			= 0,
		Type				= Weapon,
		MinimumSwingTime		= 3,
		KnockBackOnNoDeath		= TRUE,
		SwingAmountBeforeImpact		= 0.02,
		Categories			= Blunt,
		ConditionLowerChanceOneIn	= 30,
		Weight				= 1,
		SplatNumber			= 0,
		PushBackMod			= 0.5,
		MaxDamage			= 1,
		SubCategory			= Swinging,
		ConditionMax			= 10,
		MaxHitCount			= 1,
		DoorDamage			= 9,
		CanBarricade			= TRUE,
		SwingAnim			= Bat,
		WeaponWeight			= 1,
		DisplayName			= Hammer,
		MinRange			= 0.61,
		SwingTime			= 3,
		MinDamage			= 0.5,
		KnockdownMod			= 0,
		SplatBloodOnNoDeath		= TRUE,
		Icon				= Hammer,
		RunAnim				= Run_Weapon2,
		IdleAnim			= Idle_Weapon2,
		BreakSound  			= BreakMetalItem,
		TreeDamage  			= 1,
		MetalValue  			= 25,

Repair

From items.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 40.43

    fixing Fix Hammer
    {
       Require : Hammer,
       Fixer : Woodglue; Woodwork=1,
       Fixer : DuctTape,
       Fixer : Glue=2,
       Fixer : Scotchtape=3,
    }

See also

Template:Navbox/ToolsTemplate:Navbox/Weapons