X2 Scope: Difference between revisions

From PZwiki
(Add iwbums navbox)
m (Distribution table fix)
 
(28 intermediate revisions by 7 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 = x2 Scope
|name=x2 Scope
|name_colour = Weapon
|model=Rifle_2XScope_Model.png
|name_text_colour = Weapon
|icon=Scope2x.png
|image = Scope2x_128px.png
|image_width = 128px
<!--GENERAL-->
<!--GENERAL-->
|weight = 0.3
|weight=0.3
|weapon = [[File:RifleHunting.png|link=Hunting Rifle]] [[File:RifleVarmint.png|link=Varmint Rifle]]
|weapon=[[File:RifleHunting.png|link=Hunting Rifle]] [[File:RifleVarmint.png|link=Varmint Rifle]]
|part_type = Scope
|part_type=Scope
<!--MODIFIERS-->
<!--MODIFIERS-->
|weight_mod = +0.3
|weight_mod=+0.3
|max_range_mod = +7
|max_range_mod=+7
|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 27: Line 27:
*[[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]]
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|x2Scope|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>x2Scope distribution
        <span class="mw-customtoggle-togglebox-x2Scope" 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-x2Scope">
    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
    |-
    | all
    | {{ll|militarycrate}}
    | 15.1%
    |-
    | all
    | {{ll|militarylocker}}
    | 15.1%
    |-
    | armystorage
    | {{ll|locker}}
    | 15.1%
    |-
    | armystorage
    | {{ll|metal_shelves}}
    | 15.1%
    |-
    | garagestorage
    | {{ll|locker}}
    | 19.27%
    |-
    | gunstore
    | {{ll|counter}}
    | 19.27%
    |-
    | policestorage
    | {{ll|locker}}
    | 10.78%
    |-
    | policestorage
    | {{ll|metal_shelves}}
    | 10.78%
    |}
</div>
<div id="vehicles" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Vehicles}}
    ! Type
    ! Container
    ! Effective chance
    |-
    | Police
    | {{ll|Truck Bed}}
    | 10.78%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-x2Scope" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|x2Scope|41.78.16-->


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=40|incver=43}}
| {{CodeSnip
<pre> item x2Scope
  | lang = java
Type = WeaponPart,
  | line = true
DisplayName = x2 Scope,
  | start = 2462
Icon = Scope2x,
  | source = newitems.txt
Weight = 0.3,
  | retrieved = true
WeightModifier = 0.3,
  | version = 41.78.16
MaxRangeModifier = 7,
  | code =
MinRangeModifier = 6,
item x2Scope
MountOn = HuntingRifle; VarmintRifle,
    {
PartType = Scope,
        DisplayCategory = WeaponPart,
Tooltip = Tooltip_Scope,
        Type = WeaponPart,
MetalValue = 22,</pre>
        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==
==See also==
* [[Weapon mods]]
*[[Weapon mods]]
* [[Weapons]]
*[[Weapons]]


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

Latest revision as of 19:54, 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]
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.

x2Scope 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
all militarycrate 15.1%
all militarylocker 15.1%
armystorage locker 15.1%
armystorage metal_shelves 15.1%
garagestorage locker 19.27%
gunstore counter 19.27%
policestorage locker 10.78%
policestorage metal_shelves 10.78%
Vehicles
Type Container Effective chance
Police Trunk 10.78%

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