Crowbar: Difference between revisions

From PZwiki
(Added model, reorganized code section)
No edit summary
Line 24: Line 24:
|knockdown=0
|knockdown=0
|class_name=Base.Crowbar
|class_name=Base.Crowbar
}}A '''crowbar''' is a blunt weapon similar to the [[baseball bat]], however with very different properties.
}}A '''crowbar''' is a two-handed blunt weapon and tool. The crowbar can be used one-handed at the cost of reduced impact. The weapon can be attached to the character's back hotkey slot for quick access and weight reduction.
 
== Usage ==
==Usage==
{{pros-cons
===Weapon===
<!-- #PROS# - below this line -->
====Attacking====
|pros1 = Highest durability of any weapon.
The crowbar performs a ''swinging'' attack, however is a single hit weapon, meaning that it will only hit one enemy at a time. Attacking two or more zombies at once can be risky as only one will be knocked back per swing, while the other(s) could get close enough to injure the player.  
|pros2 = Not too difficult to find, can even be found impaled in zombies.
 
|pros3 = Very useful as a weapon and tool.
The crowbar has a fairly long range for a one-handed weapon that allows a wielder to fight off enemies at a decent distance.  
<!-- #CONS# - below this line -->
 
|cons1 = Cannot be repaired.
===Breaking doors===
}}
The crowbar is capable of breaking down [[doors]] dealing 8 damage per swing, although it is not as efficient as the [[axe]] (35 damage) or [[sledgehammer]] (40 dmg).  
===Multi-hit===
 
In modes with multi-hit enabled, crowbars can still only hit one target in a single swing.
===Chopping trees===
==Tool==
It is mostly ineffective at chopping trees, dealing 1 damage per hit. For comparison, an axe deals 35 damage.
====Furniture Pickup====
 
*The crowbar can be considered a tool as it is the only item capable of picking up flooring. This is done by ''right-clicking'' a floor tile and selecting the floor tile in the context menu. Ensure that the crowbar is in the player's main inventory, otherwise the option may not appear.
===Tool===
*The crowbar is the only item capable of picking up windows from buildings. This is done by using the Pick-Up toggle mode, and then clicking the tile containing the window.
====Pick up flooring====
===Barricades===
The crowbar can be considered a tool as it is the only item capable of picking up flooring. This is done by ''right-clicking'' a floor tile and selecting the floor tile in the context menu. Ensure that the crowbar is in the player's main inventory, otherwise the option may not appear.
Crowbars can be used to pry planks off of doors and windows, which makes it useful for breaking into barricaded buildings.
 
====Pick up windows====
The crowbar is the only item capable of picking up windows from buildings. This is done by using the Pick-Up toggle mode, and then clicking the tile containing the window.
 
==Condition==
==Condition==
The crowbar is a [[Skills#Blunt|blunt]] weapon, therefore being influenced by the blunt skills: accuracy, guard and maintenance. It has a maximum condition of 15 and will be damaged depending on the player's maintenance skill. The chance of losing durability is: <code>1 in (70 + maintenance x 2)</code>. It has a very high durability and will not break easily.
The crowbar has a maximum condition of 15 and will be damaged depending on the player's maintenance skill. The chance of losing durability is: <code>1 in (70 + maintenance x 2)</code>. It has a very high durability and will not break easily.
 
===Repairing===
The crowbar cannot be repaired.
 
==Distribution==
==Distribution==
The crowbar is usually found in warehouse [[Containers#Crates|crates]] and in tool [[Containers#Shelves|shelves]] in sheds or warehouses.  
The crowbar is usually found in warehouse [[Containers#Crates|crates]] and in tool [[Containers#Shelves|shelves]] in sheds or warehouses.  
Line 113: Line 105:
|-
|-
|}
|}
===Zombies===
After 10 days have passed, crowbars can be found impaled in the back of [[zombie]]s.
===Vehicles===
===Vehicles===
The crowbar does not spawn in any vehicle.
The crowbar does not spawn in any vehicle.

Revision as of 12:27, 15 August 2021

Crowbar
Crowbar
Crowbar.png
General
Category Weapon
Encumbrance
Heavy Load
2
Function Weapon
Pick up flooring
Equipped One-handed
Condition max. 15
Skill Long Blunt
Damage
Type Blunt
Attack speed 3
Range 0.61–1.25 tiles
Damage 0.6–1.15
Knockback 0.5
Knockdown 0
Technical details
Base ID Base.Crowbar

A crowbar is a two-handed blunt weapon and tool. The crowbar can be used one-handed at the cost of reduced impact. The weapon can be attached to the character's back hotkey slot for quick access and weight reduction.

Usage

Pros Cons
  • Highest durability of any weapon.
  • Not too difficult to find, can even be found impaled in zombies.
  • Very useful as a weapon and tool.
  • Cannot be repaired.

Multi-hit

In modes with multi-hit enabled, crowbars can still only hit one target in a single swing.

Tool

Furniture Pickup

  • The crowbar can be considered a tool as it is the only item capable of picking up flooring. This is done by right-clicking a floor tile and selecting the floor tile in the context menu. Ensure that the crowbar is in the player's main inventory, otherwise the option may not appear.
  • The crowbar is the only item capable of picking up windows from buildings. This is done by using the Pick-Up toggle mode, and then clicking the tile containing the window.

Barricades

Crowbars can be used to pry planks off of doors and windows, which makes it useful for breaking into barricaded buildings.

Condition

The crowbar has a maximum condition of 15 and will be damaged depending on the player's maintenance skill. The chance of losing durability is: 1 in (70 + maintenance x 2). It has a very high durability and will not break easily.

Distribution

The crowbar is usually found in warehouse crates and in tool shelves in sheds or warehouses.

Buildings

Building/Room Container Rolls Chance
All Crate 1 1
Metal Shelves 4 2
Tool Store Shelf 5 6
Counter 2 6
Bedroom Wardrobe 2 2
Changeroom Locker 2 2
Fossoil Counter 4 5
Grocery Store Counter 4 5
Storage Unit All 3 5
Zippee Store Counter 1 5

Zombies

After 10 days have passed, crowbars can be found impaled in the back of zombies.

Vehicles

The crowbar does not spawn in any vehicle.

Code

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

	item Crowbar
		MaxRange			= 1.25,
		WeaponSprite			= Crowbar,
		MinAngle			= 0.75,
		Type				= Weapon,
		MinimumSwingTime		= 3,
		KnockBackOnNoDeath		= TRUE,
		SwingAmountBeforeImpact		= 0.02,
		Categories			= Blunt,
		Weight				= 2,
		ConditionLowerChanceOneIn	= 70,
		PushBackMod			= 0.5,
		SubCategory			= Swinging,
		ConditionMax			= 15,
		MaxHitCount			= 1,
		DoorDamage			= 8,
		SwingAnim			= Bat,
		CriticalChance			= 35,
		CritDmgMultiplier		= 6,
		DisplayName			= Crowbar,
		MinRange			= 0.61,
		SwingTime			= 3,
		HitAngleMod			= -30,
		KnockdownMod			= 0,
		Icon				= Crowbar,
		RunAnim				= Run_Weapon2,
		BreakSound			= BreakMetalItem,
		TreeDamage			= 0,
		MetalValue			= 150,
		CriticalChance			= 20,
		CritDmgMultiplier		= 2.5,
		MinDamage			= 0.6,
		MaxDamage			= 1.15,
		BaseSpeed			= 1,
		TwoHandWeapon			= TRUE,
		WeaponLength			= 0.4,
		AttachmentType			= BigBlade,
		Tags				= Crowbar;RemoveBarricade,

See also

Template:Navbox/ToolsTemplate:Navbox/Weapons