Metal Bar: Difference between revisions

From PZwiki
(Created page with "{{languages|Metal Bar}} {{header|The Game World|Items|type=Construction|version=Version 40|incver=5}}{{Infobox normal |display_name=Metal Bar |name_colour=Construction |name_t...")
 
m (Remove lines))
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{languages|Metal Bar}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}}
{{header|The Game World|Items|type=Construction|version=Version 40|incver=5}}{{Infobox normal
{{Page version|41.78.16}}
|display_name=Metal Bar
{{Infobox item
|name_colour=Construction
|name=Metal Bar
|name_text_colour=Construction
|model=LeadPipe_Model.png
|image=MetalBar_120px.png
|icon=MetalBar.png
|icon_name=Metal Bar
<!--GENERAL-->
|category=Weapon
|weight=1.5
|weight=1.5
|primary_use=[[Metalworking]] material
|function=[[Metalworking]]
|class_name=Base.MetalBar
|equipped=One-Handed
}}A '''metal bar''' is a material required in [[metalworking]].
|condition_max=8
|attachemnt_type=BigWeapon
|skill_type=Short Blunt
<!--DAMAGE-->
|type=Blunt
|base_speed=0.95
|min_range=0.61
|max_range=1.2
|min_damage=0.7
|max_damage=1.1
|door_damage=1
|push_back=0.3
|knockdown=0
<!--TECHNICAL DETAILS-->
|item_id=Base.MetalBar
}}
A '''metal bar''' is a material required in [[metalworking]] and an improvised short blunt [[Weapons|weapon]].


==Usage==
==Usage==
Metal bars are only required in constructing a [[barricade|metal bar barricade]]. This barricade provides a strong transparent structure that can be put on [[window]]s and [[door]]s.
Metal bars are required in constructing [[barricade|metal bar barricades]] and [[Metal Wall|metal wall frames]]. This barricade provides a strong transparent structure that can be put on [[window]]s and [[door]]s.
 
===Weapon===
The metal bar can hit up to 2 enemies at a time (with multi-hit enabled), dealing a maximum of 1.1 damage to enemies (unless a critical hit) from up to 1.2 tiles away at an attack speed of 0.95.
 
==Condition==
The metal bar has a maximum condition of 8. Its rate of degradation is influenced by the [[Skills|short blunt]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (15 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the short blunt and maintenance skills.<br>
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|short blunt]] skills.
{{Durability weapon|15}}


==Crafting==
==Crafting==
*Metal Shelves
{{Crafting/sandbox2
*Metal Crate
|barricade_metal_sheet
*Metal Fence
|metal_wall_frame
*Pole Fence
}}
*Fence
*Big Wired Fence
*Big Pole Fence
*Fence Gate
*Big Pole Fence Gate
*Big Double Pole Gate
*Double Fence Gate
*Metal Roof


==Distribution==
==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
|-
|bedroom
|[[crate]]
|1
|0.6
|-
|rowspan="2"|factory
|[[crate]]
|4
|1
|-
|[[crate]]
|4
|2
|-
|rowspan="2"|garagestorage
|[[counter]]
|4
|1
|-
|[[counter]]
|4
|2
|-
|rowspan="2"|toolstorestorage
|[[metal_shelves]]
|4
|6
|-
|[[metal_shelves]]
|4
|6
|}
===Buildings===
===Buildings===
Metal bars can be found in garages, sheds, storage units, tool stores and logging factories.
Metal bars can be found in garages, sheds, storage units, tool stores and logging factories.
Line 35: Line 102:


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=40|incver=5}}
| {{CodeSnip
<pre> item MetalBar
  | lang = java
Weight = 1.5,
  | line = true
Type = Normal,
  | start = 138
DisplayName = Metal Bar,
  | source = items_weapons.txt
Icon = MetalBar,
  | retrieved = true
MetalValue = 40,</pre>
  | version = 41.78.16
  | code =
item MetalBar
    {
        DisplayCategory = Weapon,
        MaxRange = 1.2,
        WeaponSprite = LeadPipe,
        MinAngle = 0.72,
        Type = Weapon,
        MinimumSwingTime = 2,
        KnockBackOnNoDeath = FALSE,
        SwingAmountBeforeImpact = 0.02,
        Categories = Improvised;SmallBlunt,
        ConditionLowerChanceOneIn = 15,
        Weight = 1.5,
        SplatNumber = 1,
        PushBackMod = 0.3,
        SubCategory = Swinging,
        ConditionMax = 8,
        MaxHitCount = 2,
        DoorDamage = 1,
        SwingAnim = Bat,
        DisplayName = Metal Bar,
        MinRange = 0.61,
        SwingTime = 2,
        KnockdownMod = 0,
        SplatBloodOnNoDeath = FALSE,
        Icon = MetalBar,
        RunAnim = Run_Weapon2,
        IdleAnim = Idle_Weapon2,
        BreakSound  =  MetalBarBreak,
        DoorHitSound = MetalBarHit,
HitSound = MetalBarHit,
HitFloorSound = MetalBarHit,
SwingSound = MetalBarSwing,
        TreeDamage  =  0,
        CriticalChance = 30,
        CritDmgMultiplier = 2,
        MinDamage = 0.7,
        MaxDamage = 1.1,
        BaseSpeed = 0.95,
        WeaponLength = 0.35,
        AttachmentType = BigWeapon,
  }
}}
}}


==See also==
==See also==
Line 48: Line 160:
*[[Welding Mask]]
*[[Welding Mask]]
*[[Metal Tube]]
*[[Metal Tube]]
{{Navbox items|blunt}}

Latest revision as of 07:11, 15 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Metal Bar
LeadPipe Model.png
General
Category
Weapon
Encumbrance
Moodle Icon HeavyLoad.png
1.5
Equipped
One-Handed
Function
Skill
Properties
Max condition
8
Performance
Damage
0.7–1.1
Door damage
1
Range
0.61–1.2
Attack speed
0.95
Knockback
0.3
Knockdown
0
Technical
Item ID
Base.MetalBar

A metal bar is a material required in metalworking and an improvised short blunt weapon.

Usage

Metal bars are required in constructing metal bar barricades and metal wall frames. This barricade provides a strong transparent structure that can be put on windows and doors.

Weapon

The metal bar can hit up to 2 enemies at a time (with multi-hit enabled), dealing a maximum of 1.1 damage to enemies (unless a critical hit) from up to 1.2 tiles away at an attack speed of 0.95.

Condition

The metal bar has a maximum condition of 8. Its rate of degradation is influenced by the short blunt and maintenance skills. The chance of losing durability can be simplified to the following formula: 1 in (15 + maintenanceMod × 2). Where "maintenanceMod" is calculated using the short blunt and maintenance skills.
Below is an example of the chance of losing durability at varying levels of the maintenance and short blunt skills.

For how this is calculated, see: Durability
Maintenance skill Weapon skill Durability lower chance
0 0 1/15 (7%)
0 4 1/17 (6%)
0 8 1/19 (5%)
4 0 1/19 (5%)
8 0 1/23 (4%)
4 4 1/21 (5%)
4 8 1/23 (4%)
8 8 1/27 (4%)
10 10 1/29 (3%)

Crafting

Product Ingredients Tools Requirements Workstation XP
MetalSheetBarricade Metalwork.png
Barricade (Metal Sheet)
One of:
WoodenDoor Carpentry.gif Door ×1
Window Carpentry.gif Window ×1
SheetMetal.png Metal Sheet ×1
BlowTorch.png
Propane Torch
1 unit(s)
  
(and)
WeldingMask.png
Welder Mask
none none 1.5 Metalworking
MetalWallFrame Metalwork.png
Metal Wall Frame
MetalBar.png Metal Bar ×3 BlowTorch.png
Propane Torch
2 unit(s)
  
(and)
WeldingMask.png
Welder Mask
(and)
WeldingRods.png
Welding Rods
1 unit(s)
  
Metalworking 3
(and)
MagazineWelding1.png
The Metalwork Magazine Vol.1
none 5 Metalworking

Distribution

The loot distributions can be found in the table(s) below.

Containers
Building/Room Container Rolls Chance
SafehouseLoot counter 4 1
bedroom crate 1 0.6
factory crate 4 1
crate 4 2
garagestorage counter 4 1
counter 4 2
toolstorestorage metal_shelves 4 6
metal_shelves 4 6

Buildings

Metal bars can be found in garages, sheds, storage units, tool stores and logging factories.

Vehicles

Metal bars can be found in the trunk of metalworker, or construction worker's vehicles.

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 MetalBar
    {
        DisplayCategory = Weapon,
        MaxRange	=	1.2,
        WeaponSprite	=	LeadPipe,
        MinAngle	=	0.72,
        Type	=	Weapon,
        MinimumSwingTime	=	2,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	Improvised;SmallBlunt,
        ConditionLowerChanceOneIn	=	15,
        Weight	=	1.5,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	8,
        MaxHitCount	=	2,
        DoorDamage	=	1,
        SwingAnim	=	Bat,
        DisplayName	=	Metal Bar,
        MinRange	=	0.61,
        SwingTime	=	2,
        KnockdownMod	=	0,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	MetalBar,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        BreakSound  =   MetalBarBreak,
        DoorHitSound = MetalBarHit,
		HitSound = MetalBarHit,
		HitFloorSound = MetalBarHit,
		SwingSound = MetalBarSwing,
        TreeDamage  =   0,
        CriticalChance	=	30,
        CritDmgMultiplier = 2,
        MinDamage	=	0.7,
        MaxDamage	=	1.1,
        BaseSpeed = 0.95,
        WeaponLength = 0.35,
        AttachmentType = BigWeapon,
   }

See also