Iron Sight: Difference between revisions
(Add iwbums navbox) |
(Update distribution file) |
||
(31 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Weapons|Firearms|Weapon parts}} | ||
{{Page version|41.78.16}} | |||
{{Infobox | {{Infobox item | ||
| | |name=Iron Sight | ||
| | |model=Rifle_IronSights_Model.png | ||
|icon=ScopeIronSight.png | |||
| | |||
<!--GENERAL--> | <!--GENERAL--> | ||
|weight | |weight=0.1 | ||
|weapon | |weapon=[[File:HandGun.png|link=D-E Pistol]][[File:HandGun2.png|link=M1911 Pistol]] [[File:HandGun3.png|link=M9 Pistol]] [[File:Revolver.png|link=M625 Revolver]] [[File:RevolverLong.png|link=Magnum]] [[File:RifleHunting.png|link=Hunting Rifle]] [[File:RifleVarmint.png|link=Varmint Rifle]] [[File:AssaultRifle2.png|link=M14 Rifle]] [[File:AssaultRifle.png|link=M16 Assault Rifle]] | ||
|part_type | |part_type=Scope | ||
<!--MODIFIERS--> | <!--MODIFIERS--> | ||
|weight_mod | |weight_mod=0.1 | ||
|max_range_mod | |max_range_mod=3 | ||
<!--TECHNICAL DETAILS--> | <!--TECHNICAL DETAILS--> | ||
| | |item_id=Base.IronSight | ||
}}{{ | }} | ||
{{Quote|text=Weapon attachment. Increases firearm's maximum range.|author=In-game tooltip}} | |||
An '''iron sight''' is a weapon mod. | |||
==Usage== | ==Usage== | ||
When installed on a firearm, the firearm receives a 3 tile buff to its range. | |||
A [[screwdriver]] is required to install or uninstall the Iron Sight. | |||
==Distribution== | |||
The loot distributions can be found in the table(s) below. | |||
<!--BOT FLAG|IronSight|41.78.16--> | |||
{{Clear}} | |||
<div class="togglebox theme-red"> | |||
<div>IronSight distribution | |||
<span class="mw-customtoggle-togglebox-IronSight" 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-IronSight"> | |||
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 | |||
|- | |||
| gunstore | |||
| {{ll|counter}} | |||
| 10.78% | |||
|} | |||
</div> | |||
</div><div style="clear: both;"></div> | |||
</div></div><div class="toggle large mw-customtoggle-togglebox-IronSight" title="{{int:show}}/{{int:hide}}"></div></div> | |||
<!--END BOT FLAG|IronSight|41.78.16--> | |||
Iron sights can be occasionally found in gun stores and attached to firearms found in the world. | |||
==Compatible weapons== | ==Compatible weapons== | ||
*[[File:HandGun.png|link=Pistol]] [[Pistol]] | *[[File:HandGun.png|link=D-E Pistol]] [[D-E Pistol]] | ||
*[[File:HandGun2.png|link=M1911 Pistol]] [[M1911 Pistol]] | |||
*[[File:HandGun3.png|link=M9 Pistol]] [[M9 Pistol]] | |||
*[[File:Revolver.png|link=M625 Revolver]] [[M625 Revolver]] | |||
*[[File:RevolverLong.png|link=Magnum]] [[Magnum]] | |||
*[[File:RifleVarmint.png|link=Varmint Rifle]] [[Varmint Rifle]] | *[[File:RifleVarmint.png|link=Varmint Rifle]] [[Varmint Rifle]] | ||
*[[File:RifleHunting.png|link=Hunting Rifle]] [[Hunting Rifle]] | *[[File:RifleHunting.png|link=Hunting Rifle]] [[Hunting Rifle]] | ||
*[[File:AssaultRifle2.png|link=M14 Rifle]] [[M14 Rifle]] | |||
*[[File:AssaultRifle.png|link=M16 Assault Rifle]] [[M16 Assault Rifle]] | |||
==Code== | ==Code== | ||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 2446 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item IronSight | |||
{ | |||
DisplayCategory = WeaponPart, | |||
Type = WeaponPart, | |||
DisplayName = Iron Sight, | |||
Icon = ScopeIronSight, | |||
Weight = 0.1, | |||
WeightModifier = 0.1, | |||
MaxRangeModifier = 3, | |||
MountOn = HuntingRifle; VarmintRifle; Pistol; Pistol2; Pistol3; Revolver; Revolver_Long; AssaultRifle; AssaultRifle2, | |||
PartType = Scope, | |||
Tooltip = Tooltip_IronSight, | |||
MetalValue = 15, | |||
WorldStaticModel = Rifle_IronSights_Ground, | |||
} | |||
}} | |||
}} | |||
==See also== | ==See also== | ||
* [[Weapon mods]] | *[[Weapon mods]] | ||
* [[Weapons]] | *[[Weapons]] | ||
{{Navbox | {{Navbox items|firearms}} | ||
Latest revision as of 13:01, 30 April 2024
An iron sight is a weapon mod.
Usage
When installed on a firearm, the firearm receives a 3 tile buff to its range.
A screwdriver is required to install or uninstall the Iron Sight.
Distribution
The loot distributions can be found in the table(s) below.
Building/Room | Container | Effective chance |
---|---|---|
gunstore | counter | 10.78% |
Iron sights can be occasionally found in gun stores and attached to firearms found in the world.
Compatible weapons
- D-E Pistol
- M1911 Pistol
- M9 Pistol
- M625 Revolver
- Magnum
- MSR700 Rifle
- MSR788 Rifle
- M14 Rifle
- M16 Assault Rifle
Code
Source: ProjectZomboid\media\scripts\newitems.txt
item IronSight
{
DisplayCategory = WeaponPart,
Type = WeaponPart,
DisplayName = Iron Sight,
Icon = ScopeIronSight,
Weight = 0.1,
WeightModifier = 0.1,
MaxRangeModifier = 3,
MountOn = HuntingRifle; VarmintRifle; Pistol; Pistol2; Pistol3; Revolver; Revolver_Long; AssaultRifle; AssaultRifle2,
PartType = Scope,
Tooltip = Tooltip_IronSight,
MetalValue = 15,
WorldStaticModel = Rifle_IronSights_Ground,
}