X2 Scope: Difference between revisions

From PZwiki
m (Added model. Remove image improvement tag.)
(→‎Code: code box update)
Line 30: Line 30:


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=40|incver=43}}
| {{CodeSnip
<pre>
  | lang = java
item x2Scope
  | line = true
Type = WeaponPart,
  | start = 0
DisplayName = x2 Scope,
  | source = newitems.txt
Icon = Scope2x,
  | retrieved = true
Weight = 0.3,
  | version = 40
WeightModifier = 0.3,
  | incver = 43
MaxRangeModifier = 7,
  | code =
MinRangeModifier = 6,
item x2Scope
MountOn = HuntingRifle; VarmintRifle,
{
PartType = Scope,
    Type             = WeaponPart,
Tooltip = Tooltip_Scope,
    DisplayName     = x2 Scope,
MetalValue = 22,
    Icon             = Scope2x,
</pre>
    Weight           = 0.3,
    WeightModifier   = 0.3,
    MaxRangeModifier = 7,
    MinRangeModifier = 6,
    MountOn         = HuntingRifle; VarmintRifle,
    PartType         = Scope,
    Tooltip         = Tooltip_Scope,
    MetalValue       = 22,
}
  }}
}}


==See also==
==See also==

Revision as of 07:29, 8 January 2024

x2 Scope
x2 Scope
Scope2x.png
General
Category Weapon mod
Encumbrance
Heavy Load
0.3
Weapon(s) RifleHunting.png RifleVarmint.png
Part type Scope
Modifiers
Encumbrance +0.3
Min. range +6 tiles
Max. range +7 tiles
Technical details
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

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 40.43
item x2Scope
{
    Type             = WeaponPart,
    DisplayName      = x2 Scope,
    Icon             = Scope2x,
    Weight           = 0.3,
    WeightModifier   = 0.3,
    MaxRangeModifier = 7,
    MinRangeModifier = 6,
    MountOn          = HuntingRifle; VarmintRifle,
    PartType         = Scope,
    Tooltip          = Tooltip_Scope,
    MetalValue       = 22,
}

See also