Laser: Difference between revisions
m (Updated distribution table) |
m (Automated CodeBox update) |
||
Line 58: | Line 58: | ||
| lang = java | | lang = java | ||
| line = true | | line = true | ||
| start = | | start = 2570 | ||
| source = newitems.txt | | source = newitems.txt | ||
| retrieved = true | | retrieved = true | ||
Line 64: | Line 64: | ||
| code = | | code = | ||
item Laser | 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, | |||
} | } | ||
}} | |||
}} | }} | ||
Revision as of 10:56, 26 March 2024
Laser
Performance
Accuracy
5
Encumbrance mod.
0.2
Technical
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
Distribution
The loot distributions can be found in the table(s) below.
Containers | |||
---|---|---|---|
Building/Room | Container | Rolls | Chance |
garagestorage | locker | 4 | 6 |
gunstore | counter | 4 | 6 |
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,
}