Crowbar: Difference between revisions

From PZwiki
m (→‎top: Category update: "Melee weapons")
(added CodeBox, durability template and other fixes/updates/adjustments)
Line 8: Line 8:
|image_width=200px
|image_width=200px
|alternate_image=Crowbar.png
|alternate_image=Crowbar.png
|category=Weapon
<!--GENERAL-->
|category=Tool/Weapon
|weight=2
|weight=2
|weapon_type=Blunt
|skill_type=Blunt
|primary_use=Weapon
|function=Weapon<br>Pick up flooring
|primary_use_bkg=1
|secondary_use=Pick up flooring
|equipped=Two-handed
|equipped=Two-handed
|condition_max=15
|condition_max=15
<!--DAMAGE-->
|type=Blunt
|type=Blunt
|swing_time=3
|base_speed=1
|min_range=0.61
|min_range=0.61
|max_range=1.25
|max_range=1.25
|min_damage=0.6
|min_damage=0.6
|max_damage=1.15
|max_damage=1.15
|door_damage=8
|tree_damage=0
|push_back=0.5
|push_back=0.5
|knockdown=0
|knockdown=0
<!--TECHNICAL-->
|class_name=Base.Crowbar
|class_name=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.
A '''crowbar''' is a two-handed blunt [[Weapons|weapon]] and tool.  


==Usage==
==Usage==
The Crowbar is one of the best choices for a melee weapon in Project Zomboid. While it doesn't have outstanding damage or range, its usefulness lies in its utility in breaking down barricades and flooring, and its extremely high durability.
The Crowbar is one of the best choices for a melee weapon in Project Zomboid. While it doesn't have outstanding damage or range, its usefulness lies in its utility in breaking down barricades and flooring, and its extremely high [[durability]].
 
The crowbar can be attached to the character's back hotkey slot for quick access and weight reduction.
{{Pros-cons
{{Pros-cons
|pros1 = Highest durability of any weapon.
|pros1 = Highest durability of any weapon.
Line 38: Line 43:
}}
}}


===Multi-hit===
===Weapon===
In modes with multi-hit enabled, crowbars can hit up to three targets with a single swing.
The crowbar is a two-handed weapon, however it can be equipped in one hand at the cost of reduced impact. In modes with multi-hit enabled, crowbars can hit up to three targets with a single swing.


==Tool==
===Furniture pickup===
===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 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.
*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===
===Barricades===
Crowbars can be used to pry planks off of doors and windows, which makes it useful for breaking into barricaded buildings.
Crowbars can be used to pry [[plank]]s off of doors and windows, which makes it useful for breaking into barricaded buildings.


==Condition==
==Condition==
The crowbar has a maximum condition of 15 and the chance to lose condition is influenced by the [[Skills#Combat|Maintenance and Long Blunt skills]]. With level 0 Maintenance and Long Blunt skill the crowbar has a 1 in 70 chance to lose condition each hit. This low chance combined with it's high maximum condition makes it the most durable melee weapon in the game. However, it cannot be repaired.
The crowbar has a maximum condition of 15 and the chance to lose condition is influenced by the [[Skills#Combat|maintenance and long blunt skills]]. With level 0 maintenance and long blunt skill the crowbar has a 1 in 70 chance to lose condition each hit. This low chance combined with its high maximum condition makes it the most durable melee weapon in the game. However, it cannot be repaired.
{{Durability weapon|70}}


==Distribution==
==Distribution==
Line 119: Line 124:


===Vehicles===
===Vehicles===
The crowbar does not spawn in any vehicle.
The crowbar does not spawn in any [[Vehicles|vehicle]].


==Code==
==Code==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=78.16}}
| {{CodeSnip
<pre>
  | lang = java
item Crowbar
  | line = true
{
  | start = 1455
DisplayCategory = ToolWeapon,
  | source = items_weapons.txt
MaxRange = 1.25,
  | retrieved = true
WeaponSprite = Crowbar,
  | version = 41
MinAngle = 0.75,
  | incver = 78.16
Type = Weapon,
  | code =
MinimumSwingTime = 3,
    item Crowbar
KnockBackOnNoDeath = TRUE,
    {
SwingAmountBeforeImpact = 0.02,
        DisplayCategory = ToolWeapon,
Categories = Blunt,
        MaxRange = 1.25,
Weight = 2,
        WeaponSprite = Crowbar,
ConditionLowerChanceOneIn = 70,
        MinAngle = 0.75,
PushBackMod = 0.5,
        Type = Weapon,
SubCategory = Swinging,
        MinimumSwingTime = 3,
ConditionMax = 15,
        KnockBackOnNoDeath = TRUE,
MaxHitCount = 3,
        SwingAmountBeforeImpact = 0.02,
DoorDamage = 8,
        Categories = Blunt,
SwingAnim = Bat,
        Weight = 2,
CriticalChance = 35,
        ConditionLowerChanceOneIn = 70,
CritDmgMultiplier = 6,
        PushBackMod = 0.5,
DisplayName = Crowbar,
        SubCategory = Swinging,
MinRange = 0.61,
        ConditionMax = 15,
SwingTime = 3,
        MaxHitCount = 3,
HitAngleMod = -30,
        DoorDamage = 8,
KnockdownMod = 0,
        SwingAnim = Bat,
Icon = Crowbar,
        CriticalChance = 35,
RunAnim = Run_Weapon2,
        CritDmgMultiplier = 6,
BreakSound  =  CrowbarBreak,
        DisplayName = Crowbar,
DoorHitSound = CrowbarHit,
        MinRange = 0.61,
HitSound = CrowbarHit,
        SwingTime = 3,
HitFloorSound = CrowbarHit,
        HitAngleMod = -30,
SwingSound = CrowbarSwing,
        KnockdownMod = 0,
TreeDamage  =  0,
        Icon = Crowbar,
MetalValue = 150,
        RunAnim = Run_Weapon2,
CriticalChance = 20,
        BreakSound  =  CrowbarBreak,
CritDmgMultiplier = 2.5,
        DoorHitSound = CrowbarHit,
MinDamage = 0.6,
        HitSound = CrowbarHit,
MaxDamage = 1.15,
        HitFloorSound = CrowbarHit,
BaseSpeed = 1,
        SwingSound = CrowbarSwing,
TwoHandWeapon = TRUE,
        TreeDamage  =  0,
WeaponLength = 0.4,
        MetalValue = 150,
AttachmentType = BigBlade,
        CriticalChance = 20,
Tags = Crowbar;RemoveBarricade,
        CritDmgMultiplier = 2.5,
}
        MinDamage = 0.6,
</pre>
        MaxDamage = 1.15,
        BaseSpeed = 1,
        TwoHandWeapon = TRUE,
        WeaponLength = 0.4,
        AttachmentType = BigBlade,
        Tags = Crowbar;RemoveBarricade,
    }
}}
}}


==See also==
==See also==
*[[:Category:Tiles|World Tiles]]
*[[Hammer]]
*[[Shovel]]
*[[Tiles]]


{{Navbox equipment}}
{{Navbox equipment}}

Revision as of 06:12, 31 December 2023

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

A crowbar is a two-handed blunt weapon and tool.

Usage

The Crowbar is one of the best choices for a melee weapon in Project Zomboid. While it doesn't have outstanding damage or range, its usefulness lies in its utility in breaking down barricades and flooring, and its extremely high durability.

The crowbar can be attached to the character's back hotkey slot for quick access and weight reduction.

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.
  • Low knockdown chance and average damage.

Weapon

The crowbar is a two-handed weapon, however it can be equipped in one hand at the cost of reduced impact. In modes with multi-hit enabled, crowbars can hit up to three targets with a single swing.

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 the chance to lose condition is influenced by the maintenance and long blunt skills. With level 0 maintenance and long blunt skill the crowbar has a 1 in 70 chance to lose condition each hit. This low chance combined with its high maximum condition makes it the most durable melee weapon in the game. However, it cannot be repaired.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Durability lower chance
0 0 1/70 (1%)
0 4 1/72 (1%)
0 8 1/74 (1%)
4 0 1/74 (1%)
8 0 1/78 (1%)
4 4 1/76 (1%)
4 8 1/78 (1%)
8 8 1/82 (1%)
10 10 1/84 (1%)

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

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 Crowbar
    {
        DisplayCategory = ToolWeapon,
        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	=	3,
        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  =   CrowbarBreak,
        DoorHitSound = CrowbarHit,
        HitSound = CrowbarHit,
        HitFloorSound = CrowbarHit,
        SwingSound = CrowbarSwing,
        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