Laser: Difference between revisions

From PZwiki
m (Fix link)
(Update distribution file)
 
(25 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|The Game World|Items|Weapons|Firearms|Weapon Parts|type=Weapon|version=Version 40|incver=43}}{{Infobox weapon mod
{{Header|Project Zomboid|Items|Weapons|Firearms|Weapon parts}}
|display_name=Laser
{{Page version|41.78.16}}
|name_colour=Weapon
{{Infobox item
|name_text_colour=Weapon
|name=Laser
|image=HandgunLaser.png
|model=Handgun_Laser_Model.png
|image_width=120px
|icon=HandgunLaser.png
<!--GENERAL-->
<!--GENERAL-->
|weight=0.2
|weight=0.2
Line 13: Line 13:
|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 27: Line 28:
*[[File:AssaultRifle2.png|link=M14 Rifle]] [[M14 Rifle]]
*[[File:AssaultRifle2.png|link=M14 Rifle]] [[M14 Rifle]]
*[[File:AssaultRifle.png|link=M16 Assault Rifle]] [[M16 Assault Rifle]]
*[[File:AssaultRifle.png|link=M16 Assault Rifle]] [[M16 Assault Rifle]]
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|Laser|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Laser distribution
        <span class="mw-customtoggle-togglebox-Laser" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Laser">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | garagestorage
    | {{ll|locker}}
    | 15.1%
    |-
    | gunstore
    | {{ll|counter}}
    | 15.1%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Laser" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Laser|41.78.16-->


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


{{Navbox weapons}}
{{Navbox items|firearms}}

Latest revision as of 13:06, 30 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.

Laser distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
garagestorage locker 15.1%
gunstore counter 15.1%

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