Crowbar: Difference between revisions

From PZwiki
(Add navbox)
m (Automated CodeBox update)
(31 intermediate revisions by 13 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 41|incver=39}}{{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_Model.png
|icon=Crowbar.png
|image_width=200px
<!--GENERAL-->
|alternate_image=crowbar.png
|category=Tool/Weapon
|category=Weapon
|weight=2
|weight=2
|weapon_type=Blunt
|equipped=Two-handed
|primary_use=Weapon
|attachment_type=BigBlade
|primary_use_bkg=1
|function=Weapon, Pick up flooring
|secondary_use=Pick up flooring
|skill_type=Blunt
|equipped=One-handed
<!--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.25
|max_range=1.25
|min_damage=0.6
|base_speed=1
|max_damage=1.15
|push_back=0.5
|push_back=0.5
|knockdown=0
|knockdown=0
|class_name=Base.Crowbar
<!-- TECHNICAL -->
}}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.
|item_id=Base.Crowbar
== Usage ==
}}
{{pros-cons
 
<!-- #PROS# - below this line -->
A '''crowbar''' is a two-handed blunt [[Weapons|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
|pros1 = Highest durability of any weapon.
|pros1 = Highest durability of any weapon.
|pros2 = Not too difficult to find, can even be found impaled in zombies.
|pros2 = Not too difficult to find, can even be found impaled in zombies.
|pros3 = Very useful as a weapon and tool.
|pros3 = Very useful as a weapon and tool.
<!-- #CONS# - below this line -->
|cons1 = Cannot be repaired.
|cons1 = Cannot be repaired.
|cons2 = Low knockdown chance and average damage.
}}
}}
===Multi-hit===
In modes with multi-hit enabled, crowbars can hit up to three targets with a single swing.


==Tool==
===Weapon===
====Furniture Pickup====
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 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 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}}
 
==Distribution==
==Distribution==
The crowbar is usually found in warehouse [[Containers#Crates|crates]] and in tool [[Containers#Shelves|shelves]] in sheds or warehouses.  
The loot distributions can be found in the table(s) below.
===Buildings===
 
{| class="pztable" style="text-align:center;"
{| 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
! 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===
===Zombies===
After 10 days have passed, crowbars can be found impaled in the back of [[zombie]]s.
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=41|incver=50}}
| {{CodeSnip
<pre> item Crowbar
  | lang = java
MaxRange = 1.25,
  | line = true
WeaponSprite = Crowbar,
  | start = 1455
MinAngle = 0.75,
  | source = items_weapons.txt
Type = Weapon,
  | retrieved = true
MinimumSwingTime = 3,
  | version = 41.78.16
KnockBackOnNoDeath = TRUE,
  | code =
SwingAmountBeforeImpact = 0.02,
item Crowbar
Categories = Blunt,
    {
Weight = 2,
        DisplayCategory = ToolWeapon,
ConditionLowerChanceOneIn = 70,
        MaxRange = 1.25,
PushBackMod = 0.5,
        WeaponSprite = Crowbar,
SubCategory = Swinging,
        MinAngle = 0.75,
ConditionMax = 15,
        Type = Weapon,
MaxHitCount = 1,
        MinimumSwingTime = 3,
DoorDamage = 8,
        KnockBackOnNoDeath = TRUE,
SwingAnim = Bat,
        SwingAmountBeforeImpact = 0.02,
CriticalChance = 35,
        Categories = Blunt,
CritDmgMultiplier = 6,
        Weight = 2,
DisplayName = Crowbar,
        ConditionLowerChanceOneIn = 70,
MinRange = 0.61,
        PushBackMod = 0.5,
SwingTime = 3,
        SubCategory = Swinging,
HitAngleMod = -30,
        ConditionMax = 15,
KnockdownMod = 0,
        MaxHitCount = 3,
Icon = Crowbar,
        DoorDamage = 8,
RunAnim = Run_Weapon2,
        SwingAnim = Bat,
BreakSound = BreakMetalItem,
        CriticalChance = 35,
TreeDamage = 0,
        CritDmgMultiplier = 6,
MetalValue = 150,
        DisplayName = Crowbar,
CriticalChance = 20,
        MinRange = 0.61,
CritDmgMultiplier = 2.5,
        SwingTime = 3,
MinDamage = 0.6,
        HitAngleMod = -30,
MaxDamage = 1.15,
        KnockdownMod = 0,
BaseSpeed = 1,
        Icon = Crowbar,
TwoHandWeapon = TRUE,
        RunAnim = Run_Weapon2,
WeaponLength = 0.4,
        BreakSound =  CrowbarBreak,
AttachmentType = BigBlade,
        DoorHitSound = CrowbarHit,
Tags = Crowbar;RemoveBarricade,
        HitSound = CrowbarHit,
</pre>
        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]]
{{Navbox_weapons}}

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