Crowbar: Difference between revisions

From PZwiki
mNo edit summary
m (Automated CodeBox update)
(41 intermediate revisions by 17 users not shown)
Line 1: Line 1:
__NOTOC__
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
{{languages|Crowbar}}
{{Page version|41.78.16}}
{{header|The Game World|Items|Weapons|Melee Weapons|version=Version 37|incver=8}}{{Weapons|image = Crowbar.png |weapontype = Melee |ammo = None|hands = One handed|weight = 3.0|mindamage = 0.6|maxdamage = 1.1|condition = 15|degrade = 70|id = Crowbar}}'''The Crowbar''' is a blunt weapon that currently has the sprite of a baseball bat. However, it has different properties than a [[Baseball Bat]].  
{{Infobox item
<br><br>
|name=Crowbar
The Crowbar has a very high durability and it can deal a good amount of damage to an enemy. (currently 1/70 swings causes durability loss).  
|model=Crowbar_Model.png
<br><br>
|icon=Crowbar.png
The crowbar is also capable of breaking down [[doors]] doing 8 damage per swing, although it may not be as efficient as the [[Axe]] (35 damage) or the [[Sledgehammer]] (40 dmg). The crowbar has a fairly long reach that allows a wielder to fight off enemies at a decent distance. The crowbar is a single attack weapon, meaning it can only concentrate on one zombie at a time, attacking two at a time is risky as only one zombie will be stopped per hit and the other could get in close enough to damage the character.
<!--GENERAL-->
<br><br>
|category=Tool/Weapon
The crowbar is usually found in warehouse crates and in tool shelves in sheds or warehouses. The crowbar cannot be repaired.
|weight=2
<br><br><br><br><br><br>
|equipped=Two-handed
|attachment_type=BigBlade
|function=Weapon, Pick up flooring
|skill_type=Blunt
<!--PROPERTIES-->
|material=<!-- E.g. Metal -->
|material_value=<!-- E.g. MetalValue attribute -->
|condition_max=15
<!--DAMAGE-->
|damage_type=Blunt
|min_damage=0.6
|max_damage=1.15
|door_damage=8
|tree_damage=0
|min_range=0.61
|max_range=1.25
|base_speed=1
|push_back=0.5
|knockdown=0
<!-- TECHNICAL -->
|item_id=Base.Crowbar
}}


== Code ==
A '''crowbar''' is a two-handed blunt [[Weapons|weapon]] and tool.
<nowiki>
item Crowbar
MaxRange = 1.2,
WeaponSprite = Baseballbat,
MinAngle = 0,
Type = Weapon,
MinimumSwingTime = 3,
KnockBackOnNoDeath = TRUE,
SwingAmountBeforeImpact = 0.02,
Categories = Blunt,
Weight = 3,
ConditionLowerChanceOneIn = 70,
PushBackMod = 0.5,
MinDamage = 0.6,
MaxDamage = 1.1,
SubCategory = Swinging,
ConditionMax = 15,
MaxHitCount = 1,
DoorDamage = 8,
IdleAnim = Idle_Weapon2,
SwingAnim = Bat,
CriticalChance = 10,
WeaponWeight = 4,
DisplayName = Crowbar,
MinRange = 0.61,
SwingTime = 3,
HitAngleMod = -30,
KnockdownMod = 0,
Icon = Crowbar,
RunAnim = Run_Weapon2,
BreakSound  = PZ_MetalSnap,
TreeDamage  = 1,
MetalValue = 150,
</nowiki>


==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]].


==See Also==
The crowbar can be attached to the character's back hotkey slot for quick access and weight reduction.
{{Pros-cons
|pros1 = Highest durability of any weapon.
|pros2 = Not too difficult to find, can even be found impaled in zombies.
|pros3 = Very useful as a weapon and tool.
|cons1 = Cannot be repaired.
|cons2 = 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 [[plank]]s 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 [[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==
The loot distributions can be found in the table(s) below.
 
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
! colspan="4" | Containers
|-
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|SafehouseLoot
|[[counter]]
|4
|1
|-
|all
|[[toolcabinet]]
|4
|4
|-
|armyhanger
|[[counter]]
|4
|4
|-
|bedroom
|[[crate]]
|1
|0.4
|-
|cabinetfactory
|[[crate]]
|4
|4
|-
|rowspan="2"|closet
|[[crate]]
|4
|4
|-
|[[metal_shelves]]
|4
|4
|-
|rowspan="2"|drugshack
|[[counter]]
|4
|4
|-
|[[crate]]
|4
|4
|-
|firestorage
|[[metal_shelves]]
|4
|4
|-
|garagestorage
|[[counter]]
|4
|4
|-
|gasstorage
|[[counter]]
|4
|4
|-
|generalstore
|[[metal_shelves]]
|4
|4
|-
|pawnshop
|[[counter]]
|4
|4
|}
The crowbar is usually found in warehouse [[Containers#Crates|crates]] and in tool [[Containers#Shelves|shelves]] in sheds or warehouses.
 
===Zombies===
After 10 days have passed, crowbars can be found impaled in the back of [[zombie]]s.
 
===Vehicles===
The crowbar does not spawn in any [[Vehicles|vehicle]].
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 1455
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
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==
*[[Hammer]]
*[[Shovel]]
*[[Tiles]]
 
{{Navbox equipment|tools}}
{{Navbox weapons|blunt}}


{{Navbox/Tools}}{{Navbox/Weapons}}
[[Category:Tools]]
[[Category:Tools]]
[[Category:Carpentry tools]]

Revision as of 10:31, 26 March 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Crowbar
Crowbar Model.png
General
Category
Tool/Weapon
Encumbrance
Moodle Icon HeavyLoad.png
2
Equipped
Two-handed
Slot attached
Back
Function
Weapon, Pick up flooring
Skill
Properties
Max condition
15
Performance
Damage type
Blunt
Damage
0.6–1.15
Door damage
8
Tree damage
0
Range
0.61–1.25
Attack speed
1
Knockback
0.5
Knockdown
0
Technical
Item 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: Durability
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 loot distributions can be found in the table(s) below.

Containers
Building/Room Container Rolls Chance
SafehouseLoot counter 4 1
all toolcabinet 4 4
armyhanger counter 4 4
bedroom crate 1 0.4
cabinetfactory crate 4 4
closet crate 4 4
metal_shelves 4 4
drugshack counter 4 4
crate 4 4
firestorage metal_shelves 4 4
garagestorage counter 4 4
gasstorage counter 4 4
generalstore metal_shelves 4 4
pawnshop counter 4 4

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

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