Iron Sight: Difference between revisions
m (Minor) |
(→Code: code box update) |
||
Line 40: | Line 40: | ||
==Code== | ==Code== | ||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 0 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 40 | |||
| incver = 43 | |||
| code = | |||
item IronSight | |||
{ | |||
Type = WeaponPart, | |||
DisplayName = Iron Sight, | |||
Icon = ScopeIronSight, | |||
Weight = 0.1, | |||
WeightModifier = 0.1, | |||
MaxRangeModifier = 3, | |||
MountOn = HuntingRifle; VarmintRifle; Pistol, | |||
PartType = Scope, | |||
Tooltip = Tooltip_IronSight, | |||
MetalValue = 15, | |||
} | |||
}} | |||
}} | |||
==See also== | ==See also== |
Revision as of 07:30, 8 January 2024
Iron Sight | ||
---|---|---|
| ||
General | ||
Category | Weapon mod | |
Encumbrance | 0.1 | |
Weapon(s) | ||
Part type | Scope | |
Modifiers | ||
Encumbrance | 0.1 | |
Max. range | 3 tiles | |
Technical details | ||
Item ID | Base.IronSight |
“
Weapon attachment. Increases firearm's maximum range.
An iron sight is a weapon mod.
Usage
When installed on a firearm, the firearm receives a 3 tile buff to its range.
A screwdriver is required to install or uninstall the Iron Sight.
Distribution
Iron sights can be occasionally found in gun stores and attached to firearms found in the world.
Compatible weapons
- D-E Pistol
- M1911 Pistol
- M9 Pistol
- M625 Revolver
- Magnum
- MSR700 Rifle
- MSR788 Rifle
- M14 Rifle
- M16 Assault Rifle
Code
Code snippet! This section contains source code from Project ZomboidShow / Hide
Source: ProjectZomboid\media\scripts\newitems.txt
item IronSight
{
Type = WeaponPart,
DisplayName = Iron Sight,
Icon = ScopeIronSight,
Weight = 0.1,
WeightModifier = 0.1,
MaxRangeModifier = 3,
MountOn = HuntingRifle; VarmintRifle; Pistol,
PartType = Scope,
Tooltip = Tooltip_IronSight,
MetalValue = 15,
}