Crowbar: Difference between revisions

From PZwiki
m (Automated CodeBox update)
(35 intermediate revisions by 15 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_120px.png
|icon=Crowbar.png
|category=Weapon
<!--GENERAL-->
|category=Tool/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 blunt weapon similar to the [[baseball bat]], however with very different properties.
|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===
It is mostly ineffective at chopping trees, dealing 1 damage per hit. For comparison, an axe deals 35 damage.


===Tool===
===Furniture pickup===
====Pick up flooring====
*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.


====Pick up windows====
===Barricades===
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.
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 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=41|incver=39}}
| {{CodeSnip
<nowiki>
  | lang = java
item Crowbar
  | line = true
{
  | start = 1455
MaxRange = 1.25,
  | source = items_weapons.txt
WeaponSprite = Crowbar,
  | retrieved = true
MinAngle = 0.75,
  | version = 41.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 = 1,
        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 = BreakMetalItem,
        DisplayName = Crowbar,
  TreeDamage = 0,
        MinRange = 0.61,
MetalValue = 150,
        SwingTime = 3,
CriticalChance = 20,
        HitAngleMod = -30,
CritDmgMultiplier = 2.5,
        KnockdownMod = 0,
MinDamage = 0.6,
        Icon = Crowbar,
MaxDamage = 1.15,
        RunAnim = Run_Weapon2,
BaseSpeed = 1,
        BreakSound =   CrowbarBreak,
TwoHandWeapon = TRUE,
        DoorHitSound = CrowbarHit,
WeaponLength = 0.4,
        HitSound = CrowbarHit,
AttachmentType = BigBlade,
        HitFloorSound = CrowbarHit,
}
        SwingSound = CrowbarSwing,
</nowiki>
        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