Spiked Plank: Difference between revisions

From PZwiki
(Replaced Navigation System with Header Version, Confirmed and Updated Code to include metal value, Updated Weapon Template, Cleared Old Categories.)
m (Automated Formatting)
 
(30 intermediate revisions by 8 users not shown)
Line 1: Line 1:
__NOTOC__
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
{{languages|Nailed plank}}
{{Page version|41.78.16}}
{{header|The Game World|Items|Weapons|version=Version 37|incver=8}}{{Weapons|image = Spiked_wood.png‎ |weapontype = Melee |ammo = None|hands = One handed|weight = 3.1|mindamage = 0.61|maxdamage = 0.8|condition = 10|degrade = 2|id = PlankNail}}The Nailed Plank is a player constructed weapon using a wooden plank (either acquired by sawing a log or removing a barricaded window plank) and hammering in 5 nails to increase its damage output.
{{Infobox item
<br><br>
|name=Spiked Plank
The Nailed Plank has a very slow swing rate but compensates with a longer range than many of the weapons (0.5 longer than the Baseball Bat for example), and is a weapon that can be made again when it breaks by finding another plank. The Nailed Plank is better than some weapon alternatives for damage output, but its durability is similar to the [[Kitchen Knife|kitchen knife]], in which it only has about 20 'attacks' before it breaks, and is therefore quite fragile in comparison to more sturdy built weapons.
|model=NailedPlank_Model.png
<br><br>
|icon=PlankNail.png
The Nailed Plank despite its flaws, is a multi-attack weapon, and can attack 2 zombies at once and has a good chance of knocking zombies to the floor where they can be finished off. It also can cause 5 door damage per swing, but no tree damage.
|icon_name=Spiked Plank
<!--GENERAL-->
|category=Weapon - Crafted
|weight=3.1
|equipped=Two-handed
|condition_max=10
|attachment_type=Shovel
|skill_type=Blunt
<!--DAMAGE-->
|type=Slash
|min_range=0.61
|max_range=1.32
|base_speed=0.85
|min_damage=0.5
|max_damage=0.8
|push_back=0.5
|knockdown=2
<!--TECHNICAL-->
|item_id=Base.PlankNail
}}
A '''spiked plank''' is a crafted [[Weapons|weapon]]. It's just a [[plank]] with [[nail]]s [[hammer]]ed into it.


== Crafting ==
==Usage==
{| class="wikitable sortable" style="text-align:center;"
===Weapon===
|-
The spiked plank has a very slow attack speed, but compensates with a longer range and damage than many other [[weapons]]. Its durability is similar to the [[Kitchen Knife|kitchen knife]], and is quite fragile in comparison to more sturdily built weapons.
! Name
! class="unsortable" | Recipe
! class="unsortable" | Description
{{RecipeLookup|3002}}
|}


== Code ==
The spiked plank, despite its flaws, is a multi-hit weapon, hitting 2 zombies at once (if multi-hit is enabled). It also has a good chance of knocking zombies down so they can be finished off.
<nowiki>
item PlankNail
MaxRange = 2,
WeaponSprite = WoodPlank,
MinAngle = 0.2,
Type = Weapon,
MinimumSwingTime = 4,
KnockBackOnNoDeath = FALSE,
SwingAmountBeforeImpact = 0.02,
Categories = Improvised;Blunt,
Weight = 3.1,
SplatN.umber = 0,
ConditionLowerChanceOneIn = 2,
PushBackMod = 0.3,
MaxDamage = 0.8,
SubCategory = Swinging,
ConditionMax = 10,
MaxHitCount = 2,
DoorDamage = 5,
SwingAnim = Bat,
WeaponWeight = 3.1,
MinRange = 0.61,
        DisplayName = Spiked Plank,
SwingTime = 4,
MinDamage = 0.6,
KnockdownMod = 2,
SplatBloodOnNoDeath = TRUE,
Icon = PlankNail,
RunAnim = Run_Weapon2,
        IdleAnim = Idle_Weapon2,
        BreakSound  = PZ_WoodSnap,
        TreeDamage  = 0,
        MetalValue = 5,
</nowiki>


{{Navbox/Weapons}}
===Breaking doors===
It can cause 8 door damage per swing. For comparison, an [[axe]] does 35 damage.
 
==Condition==
The spiked plank 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 (2 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the long 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.
{{Durability weapon|2}}
 
===Repairing===
A spiked plank cannot be repaired.
 
==Crafting==
{{Crafting/sandbox2
|spiked_plank
}}
 
==Trivia==
*Strangely, the spiked plank has 0.02 increased range from a regular [[Plank]]. This may be due to the nails at the end adding a little bit more reach.
 
==Code==
{{CodeBox|
{{CodeSnip
  | lang = java
  | line = true
  | start = 1914
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item PlankNail
{
    DisplayCategory = WeaponCrafted,
MaxRange = 1.32,
WeaponSprite = NailedPlank,
MinAngle = 0.75,
Type = Weapon,
MinimumSwingTime = 4,
KnockBackOnNoDeath = FALSE,
SwingAmountBeforeImpact = 0.02,
Categories = Improvised;Blunt,
Weight = 3.1,
SplatNumber = 2,
ConditionLowerChanceOneIn = 2,
PushBackMod = 0.3,
SubCategory = Swinging,
ConditionMax = 10,
MaxHitCount = 2,
DoorDamage = 8,
SwingAnim = Bat,
MinRange = 0.61,
        DisplayName = Spiked Plank,
SwingTime = 4,
KnockdownMod = 2,
SplatBloodOnNoDeath = TRUE,
Icon = PlankNail,
RunAnim = Run_Weapon2,
        IdleAnim = Idle_Weapon2,
        BreakSound  =  SpikedPlankBreak,
        DoorHitSound = SpikedPlankHit,
HitSound = SpikedPlankHit,
HitFloorSound = SpikedPlankHit,
SwingSound = SpikedPlankSwing,
        TreeDamage  =  0,
        MetalValue = 5,
        TwoHandWeapon = TRUE,
        CriticalChance = 25,
        CritDmgMultiplier = 5,
        MinDamage = 0.5,
        MaxDamage = 0.8,
        BaseSpeed = 0.85,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
}
}}
}}
 
==See also==
*[[Spiked Baseball Bat]]
*[[Spiked Pickaxe Handle]]
 
{{Navbox items|blunt}}

Latest revision as of 12:20, 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]
Spiked Plank
NailedPlank Model.png
General
Category
Weapon - Crafted
Encumbrance
Moodle Icon HeavyLoad.png
3.1
Equipped
Two-handed
Slot attached
Back
Skill
Properties
Max condition
10
Performance
Damage
0.5–0.8
Range
0.61–1.32
Attack speed
0.85
Knockback
0.5
Knockdown
2
Technical
Item ID
Base.PlankNail

A spiked plank is a crafted weapon. It's just a plank with nails hammered into it.

Usage

Weapon

The spiked plank has a very slow attack speed, but compensates with a longer range and damage than many other weapons. Its durability is similar to the kitchen knife, and is quite fragile in comparison to more sturdily built weapons.

The spiked plank, despite its flaws, is a multi-hit weapon, hitting 2 zombies at once (if multi-hit is enabled). It also has a good chance of knocking zombies down so they can be finished off.

Breaking doors

It can cause 8 door damage per swing. For comparison, an axe does 35 damage.

Condition

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

For how this is calculated, see: Durability
Maintenance skill Weapon skill Durability lower chance
0 0 1/2 (50%)
0 4 1/4 (25%)
0 8 1/6 (17%)
4 0 1/6 (17%)
8 0 1/10 (10%)
4 4 1/8 (13%)
4 8 1/10 (10%)
8 8 1/14 (7%)
10 10 1/16 (6%)

Repairing

A spiked plank cannot be repaired.

Crafting

Product Ingredients Tools Requirements Workstation XP
PlankNail.png
Spiked Plank
Plank.png Plank ×1
Nails.png Nails ×5

Hammer.png
Hammer (tag)
none none 0.25 Carpentry

Trivia

  • Strangely, the spiked plank has 0.02 increased range from a regular Plank. This may be due to the nails at the end adding a little bit more reach.

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 PlankNail
	{
	    DisplayCategory = WeaponCrafted,
		MaxRange	=	1.32,
		WeaponSprite	=	NailedPlank,
		MinAngle	=	0.75,
		Type	=	Weapon,
		MinimumSwingTime	=	4,
		KnockBackOnNoDeath	=	FALSE,
		SwingAmountBeforeImpact	=	0.02,
		Categories	=	Improvised;Blunt,
		Weight	=	3.1,
		SplatNumber	=	2,
		ConditionLowerChanceOneIn	=	2,
		PushBackMod	=	0.3,
		SubCategory	=	Swinging,
		ConditionMax	=	10,
		MaxHitCount	=	2,
		DoorDamage	=	8,
		SwingAnim	=	Bat,
		MinRange	=	0.61,
        DisplayName	=	Spiked Plank,
		SwingTime	=	4,
		KnockdownMod	=	2,
		SplatBloodOnNoDeath	=	TRUE,
		Icon	=	PlankNail,
		RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        BreakSound  =   SpikedPlankBreak,
        DoorHitSound = SpikedPlankHit,
		HitSound = SpikedPlankHit,
		HitFloorSound = SpikedPlankHit,
		SwingSound = SpikedPlankSwing,
        TreeDamage  =   0,
        MetalValue = 5,
        TwoHandWeapon = TRUE,
        CriticalChance	=	25,
        CritDmgMultiplier = 5,
        MinDamage	=	0.5,
        MaxDamage	=	0.8,
        BaseSpeed = 0.85,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        AttachmentType = Shovel,
	}

See also