X4 Scope: Difference between revisions

From PZwiki
(Add iwbums navbox)
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]]


==Code==
==Code==

Revision as of 18:16, 17 January 2023

x4 Scope
x4 Scope
General
Category Weapon mod
Encumbrance
Heavy Load
0.4
Weapon(s) RifleHunting.png RifleVarmint.png
Part type Scope
Modifiers
Encumbrance +0.4
Min. range +8 tiles
Max. range +13 tiles
Technical details
Item ID Base.x4Scope
Weapon attachment. Increases firearm's maximum range.
— In-game tooltip

A x4 scope is a weapon mod.

Usage

Increases firearms maximum fire range.

Can be added to guns using a screwdriver.

Compatible weapons

Code

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 40.43

	item x4Scope
		Type 			= WeaponPart,
		DisplayName 		= x4 Scope,
		Icon 			= Scope4x,
		Weight 			= 0.4,
		WeightModifier 		= 0.4,
		MaxRangeModifier 	= 13,
		MinRangeModifier 	= 8,
		MountOn 		= HuntingRifle; VarmintRifle,
		PartType 		= Scope,
		Tooltip 		= Tooltip_Scope,
		MetalValue		= 22,

See also

Template:Navbox/Weapons