Stone Hammer: Difference between revisions

From PZwiki
m (clean up, replaced: wikitable → pztable)
(Standardized page and updated to 41.50)
Line 1: Line 1:
__NOTOC__
{{languages|Stone Hammer}}
{{languages|Stone Hammer}}
{{header|The Game World|Items|Tools|version=Version 37|incver=8}}{{Tools
{{header|The Game World|Items|Tools|version=Version 41|incver=50}}
|image = HammerStone.png
{{Infobox weapon
|primaryuse= Construction
|display_name=Stone Hammer
|otheruses= Kill Zombies, Destroy Doors
|name_colour=Tool
|weight = 1.2
|name_text_colour=Tool
}}A '''stone hammer''' is a tool that is crafted by a player and cannot be naturally found. It is similar to a [[hammer]] and uses the same sprite ingame, but has much less durability and damage. Once the hammer breaks it is unrepairable.  
|image=HammerStone.png
<!--GENERAL-->
|category=Tool
|weight=1.2
|function=[[Carpentry]]
|equipped=One-handed
|condition_max=5
|attachment_type=Hammer
<!--CHARACTERISTICS-->
<!--DAMAGE-->
|type=Small Blunt
|swing_time=3
|min_range=0.61
|max_range=1.05
|min_damage=0.3
|max_damage=0.7
|push_back=0.5
|knockdown=0
<!--TECHNICAL DETAILS-->
|ingredients=1 × [[Stone]]<br>1 × [[Tree Branch]]<br>1 × [[Ripped Sheet]] or [[Twine]]
|class_name=HammerStone
}}
A '''stone hammer''' construction tool and weapon that can be made through [[foraging]]. It is strictly worse than a [[hammer]] as both a weapon and construction tool.


Stone Hammers are primarily used as a inferior hammer in construction but is less efficient at doing so and can be used as a weapon at minimal damage and its swing rate is slow.  
== Usage ==
=== Construction ===
:''For main article see [[Carpentry_Guide|Carpentry Guide]].''
A hammer or stone hammer, in combination with [[Wooden Plank|wooden planks]] and [[nails]], is required for most carpentry recipes.
It is also necessary for [[Barricade|barricading]] [[doors]] and [[window]]s.
 
A stone hammer will lose durability during construction, whereas a regular hammer will not.
 
=== Weapon ===
A stone hammer can be used as a low tier weapon. Compared to a regular hammer, it is heavier, less damaging, has slightly shorter range, and has a much lower durability.
 
=== Breaking doors ===
The crowbar is capable of breaking down doors dealing 2 damage per swing. For comparison, an [[axe]] deals 35 damage.


== Crafting ==
== Crafting ==
Stone Hammers are made up of items which are scavenged via [[Foraging]].[[Tree Branch|Tree branches]], [[stone]]s) and ripped sheets are required.
Stone Hammers are made up of items which are scavenged via [[Foraging]].[[Tree Branch|Tree branches]], [[stone]]s and [[ripped sheet]]s (or [[twine]]) are required.
<br>
 
{| class="pztable sortable" style="text-align:center;"  
{| class="pztable sortable" style="text-align:center;"  
|-  
|-  
Line 23: Line 56:


== Code ==
== Code ==
<nowiki>
=== Item ===
    item HammerStone
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
        MaxRange = 1,
{{Retrieved|version=41|incver=50}}
        WeaponSprite = Hammer,
<pre> item HammerStone
        MinAngle = 0,
MaxRange = 1.05,
        Type = Weapon,
WeaponSprite = StoneHammer,
        MinimumSwingTime = 3,
MinAngle = 0.65,
        KnockBackOnNoDeath = TRUE,
Type = Weapon,
        SwingAmountBeforeImpact = 0.02,
MinimumSwingTime = 3,
        Categories = Blunt,
KnockBackOnNoDeath = TRUE,
        ConditionLowerChanceOneIn = 5,
SwingAmountBeforeImpact = 0.02,
        Weight = 1.2,
Categories = SmallBlunt,
        SplatN.umber = 0,
ConditionLowerChanceOneIn = 5,
        PushBackMod = 0.5,
Weight = 1.2,
        MaxDamage = 0.7,
SplatNumber = 1,
        SubCategory = Swinging,
PushBackMod = 0.5,
        ConditionMax = 5,
SubCategory = Swinging,
        MaxHitCount = 1,
ConditionMax = 5,
        DoorDamage = 2,
MaxHitCount = 1,
        CanBarricade = TRUE,
DoorDamage = 2,
        SwingAnim = Bat,
CanBarricade = TRUE,
        WeaponWeight = 1,
SwingAnim = Bat,
        DisplayName = Stone Hammer,
DisplayName = Stone Hammer,
        MinRange = 0.61,
MinRange = 0.61,
        SwingTime = 3,
SwingTime = 3,
        MinDamage = 0.2,
KnockdownMod = 0,
        KnockdownMod = 0,
SplatBloodOnNoDeath = TRUE,
        SplatBloodOnNoDeath = TRUE,
Icon = HammerStone,
        Icon = HammerStone,
RunAnim = Run_Weapon2,
        RunAnim = Run_Weapon2,
IdleAnim = Idle_Weapon2,
        IdleAnim = Idle_Weapon2,
BreakSound = BreakMetalItem,
        BreakSound = PZ_MetalSnap,
TreeDamage = 0,
        TreeDamage = 1,
CriticalChance = 15,
</nowiki>
CritDmgMultiplier = 3,
MinDamage = 0.3,
MaxDamage = 0.7,
BaseSpeed = 1,
WeaponLength = 0.23,
AttachmentType = Hammer,
Tags = Hammer;RemoveBarricade,
</pre>
 
=== Building ===
'''''From perform() in ISBuildAction.lua (Project Zomboid directory/media/lua/client/BuildingObjects/TimedActions/)'''''
{{Retrieved|version=41|incver=50}}
<pre>
    -- reduce the condition of the hammer if it's a stone hammer
    local hammer = self.character:getPrimaryHandItem()
    if hammer and hammer:getType() == "HammerStone" and ZombRand(hammer:getConditionLowerChance()) == 0 then
        hammer:setCondition(hammer:getCondition() - 1)
        ISWorldObjectContextMenu.checkWeapon(self.character);
    end
</pre>




==See also==
==See also==
* [[Foraging]]
* [[Foraging]]
* [[Hammer]]


{{Navbox/Tools}}{{Navbox/Weapons}}
{{Navbox/Tools}}{{Navbox/Weapons}}
[[Category:Weapons]]
[[Category:Weapons]]
[[Category:Melee Weapons]]
[[Category:Melee Weapons]]

Revision as of 00:41, 28 May 2021

The Game WorldItemsToolsStone Hammer
Stone Hammer
Stone Hammer
General
Category Tool
Encumbrance
Heavy Load
1.2
Function Carpentry
Equipped One-handed
Condition max. 5
Skill Small Blunt
Attachment Belt
Damage
Type Small Blunt
Attack speed 3
Range 0.61–1.05 tiles
Damage 0.3–0.7
Knockback 0.5
Knockdown 0
Technical details
Ingredients 1 × Stone
1 × Tree Branch
1 × Ripped Sheets or Twine
Base ID HammerStone

A stone hammer construction tool and weapon that can be made through foraging. It is strictly worse than a hammer as both a weapon and construction tool.

Usage

Construction

For main article see Carpentry.

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

A stone hammer will lose durability during construction, whereas a regular hammer will not.

Weapon

A stone hammer can be used as a low tier weapon. Compared to a regular hammer, it is heavier, less damaging, has slightly shorter range, and has a much lower durability.

Breaking doors

The crowbar is capable of breaking down doors dealing 2 damage per swing. For comparison, an axe deals 35 damage.

Crafting

Stone Hammers are made up of items which are scavenged via Foraging.Tree branches, stones and ripped sheets (or twine) are required.

Name Recipe Description Crafting Level












Code

Item

From items_weapons.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.50

	item HammerStone
		MaxRange			= 1.05,
		WeaponSprite			= StoneHammer,
		MinAngle			= 0.65,
		Type				= Weapon,
		MinimumSwingTime		= 3,
		KnockBackOnNoDeath		= TRUE,
		SwingAmountBeforeImpact		= 0.02,
		Categories			= SmallBlunt,
		ConditionLowerChanceOneIn	= 5,
		Weight				= 1.2,
		SplatNumber			= 1,
		PushBackMod			= 0.5,
		SubCategory			= Swinging,
		ConditionMax			= 5,
		MaxHitCount			= 1,
		DoorDamage			= 2,
		CanBarricade			= TRUE,
		SwingAnim			= Bat,
		DisplayName			= Stone Hammer,
		MinRange			= 0.61,
		SwingTime			= 3,
		KnockdownMod			= 0,
		SplatBloodOnNoDeath		= TRUE,
		Icon				= HammerStone,
		RunAnim				= Run_Weapon2,
		IdleAnim			= Idle_Weapon2,
		BreakSound			= BreakMetalItem,
		TreeDamage			= 0,
		CriticalChance			= 15,
		CritDmgMultiplier		= 3,
		MinDamage			= 0.3,
		MaxDamage			= 0.7,
		BaseSpeed			= 1,
		WeaponLength			= 0.23,
		AttachmentType			= Hammer,
		Tags				= Hammer;RemoveBarricade,

Building

From perform() in ISBuildAction.lua (Project Zomboid directory/media/lua/client/BuildingObjects/TimedActions/) Retrieved: Build 41.50

    -- reduce the condition of the hammer if it's a stone hammer
    local hammer = self.character:getPrimaryHandItem()
    if hammer and hammer:getType() == "HammerStone" and ZombRand(hammer:getConditionLowerChance()) == 0 then
        hammer:setCondition(hammer:getCondition() - 1)
        ISWorldObjectContextMenu.checkWeapon(self.character);
    end


See also

Template:Navbox/ToolsTemplate:Navbox/Weapons