Crowbar: Difference between revisions

From PZwiki
m (clean up, replaced: wikitable → pztable)
m (Automated CodeBox update)
(38 intermediate revisions by 17 users not shown)
Line 1: Line 1:
{{languages|Crowbar}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Long blunt weapons}}
{{header|The Game World|Items|Weapons|Melee Weapons|type=Weapon|version=Version 40|incver=36}}{{Infobox weapon
{{Page version|41.78.16}}
|display_name=Crowbar
{{Infobox item
|name_colour=Weapon
|name=Crowbar
|name_text_colour=Weapon
|model=Crowbar_Model.png
|image=crowbar_120px.png
|icon=Crowbar.png
|category=Weapon
<!--GENERAL-->
|weight=3
|category=Tool/Weapon
|weapon_type=Blunt
|weight=2
|primary_use=Weapon
|equipped=Two-handed
|primary_use_bkg=1
|attachment_type=BigBlade
|secondary_use=Pick up flooring
|function=Weapon, Pick up flooring
|equipped=One-handed
|skill_type=Blunt
<!--PROPERTIES-->
|material=<!-- E.g. Metal -->
|material_value=<!-- E.g. MetalValue attribute -->
|condition_max=15
|condition_max=15
|type=Blunt
<!--DAMAGE-->
|swing_time=3
|damage_type=Blunt
|min_damage=0.6
|max_damage=1.15
|door_damage=8
|tree_damage=0
|min_range=0.61
|min_range=0.61
|max_range=1.2
|max_range=1.25
|min_damage=0.6
|base_speed=1
|max_damage=1.1
|push_back=0.5
|push_back=0.5
|knockdown=0
|knockdown=0
|class_name=Base.Crowbar
<!-- TECHNICAL -->
}}A '''crowbar''' is a blunt weapon that currently has the sprite of a baseball bat, however with very different properties to the [[baseball bat]].
|item_id=Base.Crowbar
}}
 
A '''crowbar''' is a two-handed blunt [[Weapons|weapon]] and tool.


==Usage==
==Usage==
===Weapon===
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]].
====Attacking====
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.  


The crowbar has a fairly long range for a one-handed weapon that allows a wielder to fight off enemies at a decent distance.  
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.
}}


===Breaking doors===
===Weapon===
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).  
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.


===Chopping trees===
===Furniture pickup===
It is mostly ineffective at chopping trees, dealing 1 damage per hit. For comparison, an axe deals 35 damage.
*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.


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


==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 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}}


===Repairing===
==Distribution==
The crowbar cannot be repaired.
The loot distributions can be found in the table(s) below.


==Distribution==
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
The crowbar is usually found in warehouse [[Containers#Crates|crates]] and in tool [[Containers#Shelves|shelves]] in sheds or warehouses.
! colspan="4" | Containers
===Buildings===
{| class="pztable" style="text-align:center;"
|-
|-
!Building/Room
! Building/Room
!Container
! Container
!Rolls
! style="width: 3.2em;" | Rolls
!Chance
! style="width: 3.2em;" | Chance
|-
|-
|rowspan="2"|All
|SafehouseLoot
|[[Containers#Crates|Crate]]
|[[counter]]  
|1
|4
|1
|1
|-
|-
<!--|All-->
|all
|[[Containers#Shelves|Metal Shelves]]
|[[toolcabinet]]
|4
|4
|-
|armyhanger
|[[counter]]
|4
|4
|-
|bedroom
|[[crate]]
|1
|0.4
|-
|cabinetfactory
|[[crate]]  
|4
|4
|4
|2
|-
|-
|rowspan="2"|Tool Store
|rowspan="2"|closet
|[[Containers#Shelves|Shelf]]
|[[crate]]  
|5
|4
|6
|4
|-
|-
<!--|Tool Store-->
|[[metal_shelves]]  
|[[Containers#Counters|Counter]]
|4
|2
|4
|6
|-
|-
|Bedroom
|rowspan="2"|drugshack
|[[Containers#Bedrooms Storage|Wardrobe]]
|[[counter]]  
|2
|4
|2
|4
|-
|-
|Changeroom
|[[crate]]  
|[[Containers#Lockers|Locker]]
|4
|2
|4
|2
|-
|-
|Fossoil
|firestorage
|[[Containers#Counters|Counter]]
|[[metal_shelves]]  
|4
|4
|4
|5
|-
|-
|Grocery Store
|garagestorage
|[[Containers#Counters|Counter]]
|[[counter]]  
|4
|4
|4
|5
|-
|-
|Storage Unit
|gasstorage
|[[Containers|All]]
|[[counter]]  
|3
|4
|5
|4
|-
|-
|Zippee Store
|generalstore
|[[Containers#Counters|Counter]]
|[[metal_shelves]]  
|1
|4
|5
|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===
===Vehicles===
The crowbar does not spawn in any vehicle.
The crowbar does not spawn in any [[Vehicles|vehicle]].


== Code ==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=39|incver=67.5}}
| {{CodeSnip
<nowiki>
  | lang = java
item Crowbar
  | line = true
MaxRange = 1.2,
  | start = 1455
WeaponSprite = Baseballbat,
  | source = items_weapons.txt
MinAngle = 0,
  | retrieved = true
Type = Weapon,
  | version = 41.78.16
MinimumSwingTime = 3,
  | code =
KnockBackOnNoDeath = TRUE,
item Crowbar
SwingAmountBeforeImpact = 0.02,
    {
Categories = Blunt,
        DisplayCategory = ToolWeapon,
Weight = 3,
        MaxRange = 1.25,
ConditionLowerChanceOneIn = 70,
        WeaponSprite = Crowbar,
PushBackMod = 0.5,
        MinAngle = 0.75,
MinDamage = 0.6,
        Type = Weapon,
MaxDamage = 1.1,
        MinimumSwingTime = 3,
SubCategory = Swinging,
        KnockBackOnNoDeath = TRUE,
ConditionMax = 15,
        SwingAmountBeforeImpact = 0.02,
MaxHitCount = 1,
        Categories = Blunt,
DoorDamage = 8,
        Weight = 2,
IdleAnim = Idle_Weapon2,
        ConditionLowerChanceOneIn = 70,
SwingAnim = Bat,
        PushBackMod = 0.5,
CriticalChance = 10,
        SubCategory = Swinging,
WeaponWeight = 4,
        ConditionMax = 15,
DisplayName = Crowbar,
        MaxHitCount = 3,
MinRange = 0.61,
        DoorDamage = 8,
SwingTime = 3,
        SwingAnim = Bat,
HitAngleMod = -30,
        CriticalChance = 35,
KnockdownMod = 0,
        CritDmgMultiplier = 6,
Icon = Crowbar,
        DisplayName = Crowbar,
RunAnim = Run_Weapon2,
        MinRange = 0.61,
BreakSound = PZ_MetalSnap,
        SwingTime = 3,
TreeDamage = 1,
        HitAngleMod = -30,
MetalValue = 150,
        KnockdownMod = 0,
</nowiki>
        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==
==See also==
* [[:Category:Tiles|World Tiles]]
*[[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