Laser: Difference between revisions
m (→Code: bump to .16) |
(→Code: code box update) |
||
Line 32: | Line 32: | ||
==Code== | ==Code== | ||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 0 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41 | |||
| incver = 78.16 | |||
| code = | |||
item Laser | |||
{ | |||
DisplayCategory = WeaponPart, | |||
Type = WeaponPart, | |||
DisplayName = Laser, | |||
Icon = HandgunLaser, | |||
Weight = 0.2, | |||
WeightModifier = 0.2, | |||
HitChanceModifier = 5, | |||
MountOn = Pistol; Pistol2; Pistol3; AssaultRifle; AssaultRifle2, | |||
PartType = Canon, | |||
Tooltip = Tooltip_Laser, | |||
MetalValue = 15, | |||
WorldStaticModel = Handgun_Laser_Ground, | |||
} | |||
}} | |||
}} | |||
==See also== | ==See also== |
Revision as of 07:27, 8 January 2024
Laser | ||
---|---|---|
| ||
General | ||
Category | Weapon mod | |
Encumbrance | 0.2 | |
Weapon(s) | ||
Part type | Canon | |
Modifiers | ||
Encumbrance | 0.2 | |
Accuracy | 5 | |
Technical details | ||
Item ID | Base.Laser |
“
Weapon attachment. Increases firearm accuracy.
A laser is a weapon mod.
Usage
Increases a pistols accuracy.
Can be added to a pistol using a screwdriver.
Compatible weapons
Code
Code snippet! This section contains source code from Project ZomboidShow / Hide
Source: ProjectZomboid\media\scripts\newitems.txt
item Laser
{
DisplayCategory = WeaponPart,
Type = WeaponPart,
DisplayName = Laser,
Icon = HandgunLaser,
Weight = 0.2,
WeightModifier = 0.2,
HitChanceModifier = 5,
MountOn = Pistol; Pistol2; Pistol3; AssaultRifle; AssaultRifle2,
PartType = Canon,
Tooltip = Tooltip_Laser,
MetalValue = 15,
WorldStaticModel = Handgun_Laser_Ground,
}