Iron Sight: Difference between revisions

From PZwiki
(→‎Code: code box update)
m (Automated CodeBox update)
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Languages}}
{{Header|Project Zomboid|Items|Weapons|Firearms|Weapon parts}}
{{Header|The Game World|Items|Weapons|Firearms|Weapon Parts|type=Weapon|version=Version 41|incver=78.16}}
{{Page version|41.78.16}}
{{Infobox weapon mod
{{Infobox item
|display_name=Iron Sight
|name=Iron Sight
|name_colour=Weapon
|model=Rifle_IronSights_Model.png
|name_text_colour=Weapon
|icon=ScopeIronSight.png
|image=Rifle_IronSights_Model.png
|alternate_image=ScopeIronSight.png
<!--GENERAL-->
<!--GENERAL-->
|weight=0.1
|weight=0.1
Line 15: 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}}
{{Quote|text=Weapon attachment. Increases firearm's maximum range.|author=In-game tooltip}}
An '''iron sight''' is a weapon mod.
An '''iron sight''' is a weapon mod.
Line 26: Line 25:


==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
|-
|gunstore
|[[counter]]
|4
|4
|}
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 45: Line 59:
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 0
   | start = 2446
   | source = newitems.txt
   | source = newitems.txt
   | retrieved = true
   | retrieved = true
   | version = 40
   | version = 41.78.16
  | incver = 43
   | code =
   | code =
item IronSight
item IronSight
{
    {
    Type             = WeaponPart,
        DisplayCategory = WeaponPart,
    DisplayName     = Iron Sight,
        Type = WeaponPart,
    Icon             = ScopeIronSight,
        DisplayName = Iron Sight,
    Weight           = 0.1,
        Icon = ScopeIronSight,
    WeightModifier   = 0.1,
        Weight = 0.1,
    MaxRangeModifier = 3,
        WeightModifier = 0.1,
    MountOn         = HuntingRifle; VarmintRifle; Pistol,
        MaxRangeModifier = 3,
    PartType         = Scope,
        MountOn = HuntingRifle; VarmintRifle; Pistol; Pistol2; Pistol3; Revolver; Revolver_Long; AssaultRifle; AssaultRifle2,
    Tooltip         = Tooltip_IronSight,
        PartType = Scope,
    MetalValue       = 15,
        Tooltip = Tooltip_IronSight,
}
        MetalValue = 15,
  }}
        WorldStaticModel = Rifle_IronSights_Ground,
    }  
}}
}}
}}


Line 71: Line 86:
*[[Weapons]]
*[[Weapons]]


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

Revision as of 10:52, 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]
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.

Containers
Building/Room Container Rolls Chance
gunstore counter 4 4

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