Laser: Difference between revisions

From PZwiki
mNo edit summary
m (Automated Formatting)
(27 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Weapons|Firearms|Weapon parts}}
{{header|The Game World|Items|Weapons|Firearms|Weapon Parts|type=Weapon|version=Version 40|incver=43}}
{{Page version|41.78.16}}
{{Infobox weapon mod
{{Infobox item
|display_name = Laser
|name=Laser
|name_colour = Weapon
|model=Handgun_Laser_Model.png
|name_text_colour = Weapon
|icon=HandgunLaser.png
|image = HandgunLaser_128px.png
|image_width = 128px
<!--GENERAL-->
<!--GENERAL-->
|weight = 0.2
|weight=0.2
|weapon = [[File:HandGun.png|link=Pistol]]
|weapon=[[File:HandGun.png|link=D-E Pistol]] [[File:HandGun2.png|link=M1911 Pistol]] [[File:HandGun3.png|link=M9 Pistol]] [[File:AssaultRifle2.png|link=M14 Rifle]] [[File:AssaultRifle.png|link=M16 Assault Rifle]]
|part_type = Canon
|part_type=Canon
<!--MODIFIERS-->
<!--MODIFIERS-->
|weight_mod = 0.2
|weight_mod=0.2
|accuracy_mod = 5
|accuracy_mod=5
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name = Base.Laser
|item_id=Base.Laser
}}{{quote|text=Weapon attachment. Increases firearm accuracy.|author=In-game tooltip}}A '''laser''' is a weapon mod.
}}
{{Quote|text=Weapon attachment. Increases firearm accuracy.|author=In-game tooltip}}A '''laser''' is a weapon mod.


==Usage==
==Usage==
Line 24: Line 23:


==Compatible weapons==
==Compatible weapons==
[[File:HandGun.png|link=Pistol]] [[Pistol]]
*[[File:HandGun.png|link=D-E Pistol]] [[D-E Pistol]]
*[[File:HandGun2.png|link=M1911 Pistol]] [[M1911 Pistol]]
*[[File:HandGun3.png|link=M9 Pistol]] [[M9 Pistol]]
*[[File:AssaultRifle2.png|link=M14 Rifle]] [[M14 Rifle]]
*[[File:AssaultRifle.png|link=M16 Assault Rifle]] [[M16 Assault Rifle]]
 
==Distribution==
The loot distributions can be found in the table(s) below.
 
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
! colspan="4" | Containers
|-
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|garagestorage
|[[locker]]
|4
|6
|-
|gunstore
|[[counter]]
|4
|6
|}


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
 
{{Retrieved|version=40|incver=43}}
{{CodeBox
<pre> item Laser
| {{CodeSnip
Type = WeaponPart,
  | lang = java
DisplayName = Laser,
  | line = true
Icon = HandgunLaser,
  | start = 2570
Weight = 0.2,
  | source = newitems.txt
WeightModifier = 0.2,
  | retrieved = true
HitChanceModifier = 5,
  | version = 41.78.16
MountOn = Pistol,
  | code =
PartType = Canon,
item Laser
Tooltip = Tooltip_Laser,
    {
MetalValue = 15,</pre>
        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==
* [[Weapon mods]]
*[[Weapon mods]]
* [[Weapons]]
*[[Weapons]]


{{Navbox/Weapons}}
{{Navbox items|firearms}}

Revision as of 09:40, 14 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Laser
Handgun Laser Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Used in
HandGun.png HandGun2.png HandGun3.png AssaultRifle2.png AssaultRifle.png
Part type
Canon
Performance
Accuracy
5
Encumbrance mod.
0.2
Technical
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

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 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