X8 Scope: Difference between revisions

From PZwiki
No edit summary
m (Distribution table fix)
 
(30 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{languages}}{{Notice|Short}}
{{Header|Project Zomboid|Items|Weapons|Firearms|Weapon parts}}
{{Page version|41.78.16}}
{{Infobox item
|name=x8 Scope
|model=Rifle_8XScope_Model.png
|icon=Scope8x.png
<!--GENERAL-->
|weight=0.8
|weapon=[[File:RifleHunting.png|link=Hunting Rifle]] [[File:RifleVarmint.png|link=Varmint Rifle]]
|part_type=Scope
<!--MODIFIERS-->
|weight_mod=+0.8
|max_range_mod=+20
|min_range_mod=+10
<!--TECHNICAL DETAILS-->
|item_id=Base.x8Scope
}}
{{Quote|text=Weapon attachment. Increases firearm's maximum range.|author=In-game tooltip}}A '''x8 scope''' is a weapon mod.
 
==Usage==
Increases firearms maximum fire range.
 
Can be added to guns using a [[screwdriver]].
 
==Compatible weapons==
*[[File:RifleVarmint.png|link=Varmint Rifle]] [[Varmint 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]]


{{Consumables
==Distribution==
|image = MOD8xScope.png
The loot distributions can be found in the table(s) below.
|weight = 0.8
 
}}
<!--BOT FLAG|x8Scope|41.78.16-->
==Description==
{{Clear}}
Gives more accuracy long range and increased maximum shooting distance, while decreasing minimum shooting distance.
<div class="togglebox theme-red">
    <div>x8Scope distribution
        <span class="mw-customtoggle-togglebox-x8Scope" 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-x8Scope">
    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}}
    | 10.78%
    |-
    | gunstore
    | {{ll|counter}}
    | 10.78%
    |-
    | policestorage
    | {{ll|locker}}
    | 3.98%
    |-
    | policestorage
    | {{ll|metal_shelves}}
    | 3.98%
    |}
</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}}
    | 3.98%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-x8Scope" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|x8Scope|41.78.16-->


==Compatible Weapons==
==Code==
[[File:VarmintRifle.png|32px|link=Varmint Rifle|Varmint Rifle]] [[Varmint Rifle|Varmint Rifle]]<br>
{{CodeBox
[[File:HuntingRifle.png|32px|link=Hunting Rifle|Hunting Rifle]] [[Hunting Rifle|Hunting Rifle]]
| {{CodeSnip
== Code ==
  | lang = java
<nowiki>item x8Scope
  | line = true
  | start = 2496
  | source = newitems.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item x8Scope
     {
     {
        DisplayCategory = WeaponPart,
         Type = WeaponPart,
         Type = WeaponPart,
         DisplayName = x8 Scope,
         DisplayName = x8 Scope,
Line 21: Line 116:
         MaxRangeModifier = 20,
         MaxRangeModifier = 20,
         MinRangeModifier = 10,
         MinRangeModifier = 10,
         MountOn = HuntingRifle; VarmintRifle,
         MountOn = HuntingRifle; VarmintRifle; AssaultRifle; AssaultRifle2,
         PartType = Scope,
         PartType = Scope,
         Tooltip = Tooltip_Scope,
         Tooltip = Tooltip_Scope,
    }</nowiki>
        MetalValue = 22,
 
        WorldStaticModel = Rifle_8XScope_Ground,
== History ==
    }
 
}}
{| class="wikitable" width="550" style="text-align:center;"
}}
|-
! Alpha || 
|-
| - || -
|}
 
==See Also==
* [[Items#Firearm Modifications|Firearm Modifications]]


==See also==
*[[Weapon mods]]
*[[Weapons]]


{{Navbox/Weapons}}
{{Navbox items|firearms}}
[[Category:weapons]]
[[Category:Weapon Parts]]

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]
x8 Scope
Rifle 8XScope Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
0.8
Used in
RifleHunting.png RifleVarmint.png
Part type
Scope
Performance
Min range
+10
Max range
+20
Encumbrance mod.
+0.8
Technical
Item ID
Base.x8Scope
Weapon attachment. Increases firearm's maximum range.
— In-game tooltip

A x8 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.

x8Scope 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 10.78%
gunstore counter 10.78%
policestorage locker 3.98%
policestorage metal_shelves 3.98%
Vehicles
Type Container Effective chance
Police Trunk 3.98%

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 x8Scope
    {
        DisplayCategory = WeaponPart,
        Type = WeaponPart,
        DisplayName = x8 Scope,
        Icon = Scope8x,
        Weight = 0.8,
        WeightModifier = 0.8,
        MaxRangeModifier = 20,
        MinRangeModifier = 10,
        MountOn = HuntingRifle; VarmintRifle; AssaultRifle; AssaultRifle2,
        PartType = Scope,
        Tooltip = Tooltip_Scope,
        MetalValue = 22,
        WorldStaticModel = Rifle_8XScope_Ground,
    }

See also