Metal Bar: Difference between revisions
mNo edit summary |
m (Distribution table fix) |
||
(27 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}} | ||
{{ | {{Page version|41.78.16}} | ||
| | {{Infobox item | ||
| | |name=Metal Bar | ||
| | |model=LeadPipe_Model.png | ||
| | |icon=MetalBar.png | ||
|icon_name=Metal Bar | |||
<!--GENERAL--> | |||
|category=Weapon | |||
|weight=1.5 | |weight=1.5 | ||
| | |function=[[Metalworking]] | ||
| | |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 | 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 × 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== | ||
{{Crafting/sandbox2 | |||
|barricade_metal_sheet | |||
|metal_wall_frame | |||
}} | |||
==Distribution== | ==Distribution== | ||
The loot distributions can be found in the table(s) below. | |||
<!--BOT FLAG|MetalBar|41.78.16--> | |||
{{Clear}} | |||
<div class="togglebox theme-red"> | |||
<div>MetalBar distribution | |||
<span class="mw-customtoggle-togglebox-MetalBar" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div> | |||
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-MetalBar"> | |||
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits. <div class="toggle-content"> | |||
<div class="pz-container"> | |||
<div id="containers" style="flex-basis:30%"> | |||
{| class="wikitable theme-red" style="margin-right: 15px; width: 95%;" | |||
|+ {{ll|Containers}} | |||
! Building/Room | |||
! Container | |||
! Effective chance | |||
|- | |||
| SafehouseLoot | |||
| {{ll|counter}} | |||
| 23.28% | |||
|- | |||
| SafehouseLoot | |||
| {{ll|crate}} | |||
| 23.28% | |||
|- | |||
| SafehouseLoot | |||
| {{ll|metal_shelves}} | |||
| 23.28% | |||
|- | |||
| SafehouseLoot | |||
| {{ll|wardrobe}} | |||
| 23.28% | |||
|- | |||
| SurvivorCache1 | |||
| {{ll|counter}} | |||
| 23.28% | |||
|- | |||
| SurvivorCache2 | |||
| {{ll|counter}} | |||
| 23.28% | |||
|- | |||
| all | |||
| {{ll|crate}} | |||
| 1.13% | |||
|- | |||
| all | |||
| {{ll|metal_shelves}} | |||
| 4.44% | |||
|- | |||
| bedroom | |||
| {{ll|crate}} | |||
| 0.77% | |||
|- | |||
| closet | |||
| {{ll|crate}} | |||
| 0.77% | |||
|- | |||
| factory | |||
| {{ll|crate}} | |||
| 23.28% | |||
|- | |||
| factory | |||
| {{ll|crate}} | |||
| 41.14% | |||
|- | |||
| factory | |||
| {{ll|metal_shelves}} | |||
| 23.28% | |||
|- | |||
| factory | |||
| {{ll|metal_shelves}} | |||
| 41.14% | |||
|- | |||
| garagestorage | |||
| {{ll|counter}} | |||
| 23.28% | |||
|- | |||
| garagestorage | |||
| {{ll|counter}} | |||
| 41.14% | |||
|- | |||
| garagestorage | |||
| {{ll|crate}} | |||
| 0.77% | |||
|- | |||
| garagestorage | |||
| {{ll|crate}} | |||
| 23.28% | |||
|- | |||
| garagestorage | |||
| {{ll|crate}} | |||
| 41.14% | |||
|- | |||
| garagestorage | |||
| {{ll|metal_shelves}} | |||
| 23.28% | |||
|- | |||
| garagestorage | |||
| {{ll|metal_shelves}} | |||
| 41.14% | |||
|- | |||
| shed | |||
| {{ll|counter}} | |||
| 23.28% | |||
|- | |||
| shed | |||
| {{ll|counter}} | |||
| 41.14% | |||
|- | |||
| shed | |||
| {{ll|crate}} | |||
| 23.28% | |||
|- | |||
| shed | |||
| {{ll|crate}} | |||
| 41.14% | |||
|- | |||
| shed | |||
| {{ll|metal_shelves}} | |||
| 23.28% | |||
|- | |||
| shed | |||
| {{ll|metal_shelves}} | |||
| 41.14% | |||
|- | |||
| storageunit | |||
| {{ll|crate}} | |||
| 0.77% | |||
|- | |||
| storageunit | |||
| {{ll|crate}} | |||
| 23.28% | |||
|- | |||
| storageunit | |||
| {{ll|crate}} | |||
| 41.14% | |||
|- | |||
| storageunit | |||
| {{ll|metal_shelves}} | |||
| 0.77% | |||
|- | |||
| storageunit | |||
| {{ll|metal_shelves}} | |||
| 23.28% | |||
|- | |||
| storageunit | |||
| {{ll|metal_shelves}} | |||
| 41.14% | |||
|- | |||
| toolstore | |||
| {{ll|metal_shelves}} | |||
| 15.1% | |||
|- | |||
| toolstore | |||
| {{ll|shelves}} | |||
| 15.1% | |||
|- | |||
| toolstorestorage | |||
| {{ll|metal_shelves}} | |||
| 15.1% | |||
|- | |||
| warehouse | |||
| {{ll|crate}} | |||
| 23.28% | |||
|- | |||
| warehouse | |||
| {{ll|crate}} | |||
| 41.14% | |||
|- | |||
| warehouse | |||
| {{ll|metal_shelves}} | |||
| 23.28% | |||
|- | |||
| warehouse | |||
| {{ll|metal_shelves}} | |||
| 41.14% | |||
|} | |||
</div> | |||
<div id="vehicles" style="flex-basis:30%"> | |||
{| class="wikitable theme-red" style="margin-right: 15px; width: 95%;" | |||
|+ {{ll|Vehicles}} | |||
! Type | |||
! Container | |||
! Effective chance | |||
|- | |||
| Construction Worker | |||
| {{ll|Truck Bed}} | |||
| 23.28% | |||
|- | |||
| Mass Gen Fac | |||
| {{ll|Truck Bed}} | |||
| 23.28% | |||
|- | |||
| Mass Gen Fac | |||
| {{ll|Truck Bed}} | |||
| 41.14% | |||
|- | |||
| Metal Welder | |||
| {{ll|Truck Bed}} | |||
| 23.28% | |||
|- | |||
| Metal Welder | |||
| {{ll|Truck Bed}} | |||
| 41.14% | |||
|} | |||
</div> | |||
<div id="zombies" style="flex-basis:30%"> | |||
{| class="wikitable theme-red" style="margin-right: 15px; width: 95%;" | |||
|+ {{ll|Zombies}} | |||
! Outfit | |||
! Days survived | |||
! Chance | |||
|- | |||
| All | |||
| 10 | |||
| 3 | |||
|- | |||
| Bandit | |||
| 0 | |||
| 60 | |||
|} | |||
</div> | |||
</div><div style="clear: both;"></div> | |||
</div></div><div class="toggle large mw-customtoggle-togglebox-MetalBar" title="{{int:show}}/{{int:hide}}"></div></div> | |||
<!--END BOT FLAG|MetalBar|41.78.16--> | |||
===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 24: | Line 280: | ||
==Code== | ==Code== | ||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 138 | |||
| source = items_weapons.txt | |||
| retrieved = true | |||
| 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 37: | Line 338: | ||
*[[Welding Mask]] | *[[Welding Mask]] | ||
*[[Metal Tube]] | *[[Metal Tube]] | ||
{{Navbox items|blunt}} |
Latest revision as of 19:29, 30 April 2024
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.
Maintenance skill | Weapon skill | Condition 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 |
---|---|---|---|---|---|
Barricade (Metal Sheet) |
One of: Door ×1 Window ×1 Metal Sheet ×1 |
Propane Torch 1 unit(s)
Welder Mask |
none | none | 1.5 Metalworking |
Metal Wall Frame |
Metal Bar ×3 | Propane Torch 2 unit(s)
Welder Mask (and) Welding Rods 1 unit(s)
|
Metalworking 3 (and) The Metalwork Magazine Vol.1 |
none | 5 Metalworking |
Distribution
The loot distributions can be found in the table(s) below.
Building/Room | Container | Effective chance |
---|---|---|
SafehouseLoot | counter | 23.28% |
SafehouseLoot | crate | 23.28% |
SafehouseLoot | metal_shelves | 23.28% |
SafehouseLoot | wardrobe | 23.28% |
SurvivorCache1 | counter | 23.28% |
SurvivorCache2 | counter | 23.28% |
all | crate | 1.13% |
all | metal_shelves | 4.44% |
bedroom | crate | 0.77% |
closet | crate | 0.77% |
factory | crate | 23.28% |
factory | crate | 41.14% |
factory | metal_shelves | 23.28% |
factory | metal_shelves | 41.14% |
garagestorage | counter | 23.28% |
garagestorage | counter | 41.14% |
garagestorage | crate | 0.77% |
garagestorage | crate | 23.28% |
garagestorage | crate | 41.14% |
garagestorage | metal_shelves | 23.28% |
garagestorage | metal_shelves | 41.14% |
shed | counter | 23.28% |
shed | counter | 41.14% |
shed | crate | 23.28% |
shed | crate | 41.14% |
shed | metal_shelves | 23.28% |
shed | metal_shelves | 41.14% |
storageunit | crate | 0.77% |
storageunit | crate | 23.28% |
storageunit | crate | 41.14% |
storageunit | metal_shelves | 0.77% |
storageunit | metal_shelves | 23.28% |
storageunit | metal_shelves | 41.14% |
toolstore | metal_shelves | 15.1% |
toolstore | shelves | 15.1% |
toolstorestorage | metal_shelves | 15.1% |
warehouse | crate | 23.28% |
warehouse | crate | 41.14% |
warehouse | metal_shelves | 23.28% |
warehouse | metal_shelves | 41.14% |
Type | Container | Effective chance |
---|---|---|
Construction Worker | Trunk | 23.28% |
Mass Gen Fac | Trunk | 23.28% |
Mass Gen Fac | Trunk | 41.14% |
Metal Welder | Trunk | 23.28% |
Metal Welder | Trunk | 41.14% |
Outfit | Days survived | Chance |
---|---|---|
All | 10 | 3 |
Bandit | 0 | 60 |
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
Source: ProjectZomboid\media\scripts\items_weapons.txt
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,
}