X2 Scope: Difference between revisions

From PZwiki
(→‎Code: code box update)
m (Automated Formatting)
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|The Game World|Items|Weapons|Firearms|Weapon Parts|type=Weapon|version=Version 40|incver=43}}
{{Header|Project Zomboid|Items|Weapons|Firearms|Weapon parts}}
{{Infobox weapon mod
{{Page version|41.78.16}}
|display_name=x2 Scope
{{Infobox item
|name_colour=Weapon
|name=x2 Scope
|name_text_colour=Weapon
|model=Rifle_2XScope_Model.png
|image=Rifle_2XScope_Model.png
|icon=Scope2x.png
|alternate_image= Scope2x.png
<!--GENERAL-->
<!--GENERAL-->
|weight=0.3
|weight=0.3
Line 15: Line 14:
|min_range_mod=+6
|min_range_mod=+6
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.x2Scope
|item_id=Base.x2Scope
}}{{quote|text=Weapon attachment. Increases firearm's maximum range.|author=In-game tooltip}}A '''x2 scope''' is a weapon mod.
}}
{{quote|text=Weapon attachment. Increases firearm's maximum range.|author=In-game tooltip}}A '''x2 scope''' is a weapon mod.


==Usage==
==Usage==
Line 28: Line 28:
*[[File:AssaultRifle2.png|link=M14 Rifle]] [[M14 Rifle]]
*[[File:AssaultRifle2.png|link=M14 Rifle]] [[M14 Rifle]]
*[[File:AssaultRifle.png|link=M16 Assault Rifle]] [[M16 Assault Rifle]]
*[[File:AssaultRifle.png|link=M16 Assault Rifle]] [[M16 Assault Rifle]]
==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
|-
|all
|[[militarycrate]]
|4
|6
|-
|garagestorage
|[[locker]]
|4
|8
|-
|gunstore
|[[counter]]
|4
|8
|-
|policestorage
|[[locker]]
|4
|4
|}


==Code==
==Code==
Line 34: Line 66:
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 0
   | start = 2462
   | source = newitems.txt
   | source = newitems.txt
   | retrieved = true
   | retrieved = true
   | version = 40
   | version = 41.78.16
  | incver = 43
   | code =
   | code =
item x2Scope
item x2Scope
{
    {
    Type             = WeaponPart,
        DisplayCategory = WeaponPart,
    DisplayName     = x2 Scope,
        Type = WeaponPart,
    Icon             = Scope2x,
        DisplayName = x2 Scope,
    Weight           = 0.3,
        Icon = Scope2x,
    WeightModifier   = 0.3,
        Weight = 0.3,
    MaxRangeModifier = 7,
        WeightModifier = 0.3,
    MinRangeModifier = 6,
        MaxRangeModifier = 7,
    MountOn         = HuntingRifle; VarmintRifle,
        MinRangeModifier = 6,
    PartType         = Scope,
        MountOn = HuntingRifle; VarmintRifle; AssaultRifle; AssaultRifle2,
    Tooltip         = Tooltip_Scope,
        PartType = Scope,
    MetalValue       = 22,
        Tooltip = Tooltip_Scope,
}
        MetalValue = 22,
  }}
        WorldStaticModel = Rifle_2XScope_Ground,
    }
}}
}}
}}


Line 61: Line 94:
*[[Weapons]]
*[[Weapons]]


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

Revision as of 13:31, 14 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]
x2 Scope
Rifle 2XScope Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
0.3
Used in
RifleHunting.png RifleVarmint.png
Part type
Scope
Performance
Min range
+6
Max range
+7
Encumbrance mod.
+0.3
Technical
Item ID
Base.x2Scope
Weapon attachment. Increases firearm's maximum range.
— In-game tooltip

A x2 scope is a weapon mod.

Usage

Increases firearms maximum fire range.

Can be added to guns using a screwdriver.

Compatible weapons

Distribution

The loot distributions can be found in the table(s) below.

Containers
Building/Room Container Rolls Chance
all militarycrate 4 6
garagestorage locker 4 8
gunstore counter 4 8
policestorage locker 4 4

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 x2Scope
    {
        DisplayCategory = WeaponPart,
        Type = WeaponPart,
        DisplayName = x2 Scope,
        Icon = Scope2x,
        Weight = 0.3,
        WeightModifier = 0.3,
        MaxRangeModifier = 7,
        MinRangeModifier = 6,
        MountOn = HuntingRifle; VarmintRifle; AssaultRifle; AssaultRifle2,
        PartType = Scope,
        Tooltip = Tooltip_Scope,
        MetalValue = 22,
        WorldStaticModel = Rifle_2XScope_Ground,
    }

See also