X2 Scope: Difference between revisions
m (Added model. Remove image improvement tag.) |
(→Code: code box update) |
||
Line 30: | Line 30: | ||
==Code== | ==Code== | ||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 0 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 40 | |||
| incver = 43 | |||
| code = | |||
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== | ==See also== |
Revision as of 07:29, 8 January 2024
x2 Scope | ||
---|---|---|
| ||
General | ||
Category | Weapon mod | |
Encumbrance | 0.3 | |
Weapon(s) | ||
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.
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 snippet! This section contains source code from Project ZomboidShow / Hide
Source: ProjectZomboid\media\scripts\newitems.txt
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,
}