Iron Sight: Difference between revisions

From PZwiki
(Add iwbums navbox)
m (Automated CodeBox update)
(26 intermediate revisions by 8 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 40|incver=43}}
{{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 = ScopeIronSight_128px.png
|image_width = 128px
<!--GENERAL-->
<!--GENERAL-->
|weight = 0.1
|weight=0.1
|weapon = [[File:RifleHunting.png|link=Hunting Rifle]] [[File:RifleVarmint.png|link=Varmint Rifle]] [[File:HandGun.png|link=Pistol]]
|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 = Scope
|part_type=Scope
<!--MODIFIERS-->
<!--MODIFIERS-->
|weight_mod = 0.1
|weight_mod=0.1
|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==
Increases firearms maximum fire range.
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.


Can be added to guns using a [[screwdriver]].
{| 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.


==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==
'''''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==
* [[Weapon mods]]
*[[Weapon mods]]
* [[Weapons]]
*[[Weapons]]


{{Navbox/Weapons}}
{{Navbox weapons|firearms}}
{{Navbox_weapons}}

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