Laser: Difference between revisions

From PZwiki
m (→‎Code: bump to .16)
(→‎Code: code box update)
Line 32: Line 32:


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
 
{{Retrieved|version=41|incver=78.16}}
{{CodeBox
<pre>
| {{CodeSnip
    item Laser
  | lang = java
        DisplayCategory = WeaponPart,
  | line = true
        Type = WeaponPart,
  | start = 0
         DisplayName = Laser,
  | source = newitems.txt
        Icon = HandgunLaser,
  | retrieved = true
        Weight = 0.2,
  | version = 41
        WeightModifier = 0.2,
  | incver = 78.16
        HitChanceModifier = 5,
  | code =
        MountOn = Pistol; Pistol2; Pistol3; AssaultRifle; AssaultRifle2,
item Laser
        PartType = Canon,
{
        Tooltip = Tooltip_Laser,
    DisplayCategory     = WeaponPart,
        MetalValue = 15,
    Type               = WeaponPart,
        WorldStaticModel = Handgun_Laser_Ground,
    DisplayName         = Laser,
</pre>
    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
Laser
HandgunLaser.png
General
Category Weapon mod
Encumbrance
Heavy Load
0.2
Weapon(s) HandGun.png HandGun2.png HandGun3.png AssaultRifle2.png AssaultRifle.png
Part type Canon
Modifiers
Encumbrance 0.2
Accuracy 5
Technical details
Item ID Base.Laser
Weapon attachment. Increases firearm accuracy.
— In-game tooltip

A laser is a weapon mod.

Usage

Increases a pistols accuracy.

Can be added to a pistol using a screwdriver.

Compatible weapons

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
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