Iron Sight: Difference between revisions

From PZwiki
m (Cleanup)
(Update distribution file)
 
(24 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|The Game World|Items|Weapons|Firearms|Weapon Parts|type=Weapon|version=Version 41|incver=78.16}}{{Infobox weapon mod
{{Header|Project Zomboid|Items|Weapons|Firearms|Weapon parts}}
|display_name=Iron Sight
{{Page version|41.78.16}}
|name_colour=Weapon
{{Infobox item
|name_text_colour=Weapon
|name=Iron Sight
|image=ScopeIronSight.png
|model=Rifle_IronSights_Model.png
|image_width=120px
|icon=ScopeIronSight.png
<!--GENERAL-->
<!--GENERAL-->
|weight=0.1
|weight=0.1
Line 13: Line 13:
|max_range_mod=3
|max_range_mod=3
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.IronSight
|item_id=Base.IronSight
}}{{quote|text=Weapon attachment. Increases firearm's maximum range.|author=In-game tooltip}}An '''iron sight''' is a weapon mod.
}}
{{Quote|text=Weapon attachment. Increases firearm's maximum range.|author=In-game tooltip}}
An '''iron sight''' is a weapon mod.


==Usage==
==Usage==
Line 22: Line 24:


==Distribution==
==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.
Iron sights can be occasionally found in gun stores and attached to firearms found in the world.


Line 36: Line 63:


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
 
{{Retrieved|version=40|incver=43}}
{{CodeBox
<pre> item IronSight
| {{CodeSnip
Type = WeaponPart,
  | lang = java
DisplayName = Iron Sight,
  | line = true
Icon = ScopeIronSight,
  | start = 2446
Weight = 0.1,
  | source = newitems.txt
WeightModifier = 0.1,
  | retrieved = true
MaxRangeModifier = 3,
  | version = 41.78.16
MountOn = HuntingRifle; VarmintRifle; Pistol,
  | code =
PartType = Scope,
item IronSight
Tooltip = Tooltip_IronSight,
    {
MetalValue = 15,</pre>
        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==
Line 54: Line 95:
*[[Weapons]]
*[[Weapons]]


{{Navbox weapons}}
{{Navbox items|firearms}}

Latest revision as of 13:01, 30 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]
Iron Sight
Rifle IronSights Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Used in
HandGun.pngHandGun2.png HandGun3.png Revolver.png RevolverLong.png RifleHunting.png RifleVarmint.png AssaultRifle2.png AssaultRifle.png
Part type
Scope
Performance
Max range
3
Encumbrance mod.
0.1
Technical
Item ID
Base.IronSight
Weapon attachment. Increases firearm's maximum range.
— In-game tooltip

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.

IronSight distribution Show / Hide
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.
Containers
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

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
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