Laser: Difference between revisions
(Created page with "{{languages}}{{Notice|Short}} {{Consumables |image = MODLaser.png |weight = 0.2 }} ==Description== ==Compatible Weapons== 32px|link=Pistol|Pistol Pisto...") |
m (Automated Formatting) |
||
(31 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Weapons|Firearms|Weapon parts}} | ||
{{Page version|41.78.16}} | |||
{{Infobox item | |||
|name=Laser | |||
|model=Handgun_Laser_Model.png | |||
|icon=HandgunLaser.png | |||
<!--GENERAL--> | |||
|weight=0.2 | |||
|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 | |||
<!--MODIFIERS--> | |||
|weight_mod=0.2 | |||
|accuracy_mod=5 | |||
<!--TECHNICAL DETAILS--> | |||
|item_id=Base.Laser | |||
}} | |||
{{Quote|text=Weapon attachment. Increases firearm accuracy.|author=In-game tooltip}}A '''laser''' is a weapon mod. | |||
==Usage== | |||
| | Increases a [[pistol]]s accuracy. | ||
| | |||
}} | Can be added to a pistol using a [[screwdriver]]. | ||
== | |||
==Compatible weapons== | |||
*[[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== | ||
== | {{CodeBox | ||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 2570 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item Laser | |||
{ | { | ||
DisplayCategory = WeaponPart, | |||
Type = WeaponPart, | Type = WeaponPart, | ||
DisplayName = Laser, | DisplayName = Laser, | ||
Line 19: | Line 71: | ||
WeightModifier = 0.2, | WeightModifier = 0.2, | ||
HitChanceModifier = 5, | HitChanceModifier = 5, | ||
MountOn = Pistol, | MountOn = Pistol; Pistol2; Pistol3; AssaultRifle; AssaultRifle2, | ||
PartType = Canon, | PartType = Canon, | ||
Tooltip = Tooltip_Laser, | Tooltip = Tooltip_Laser, | ||
MetalValue = 15, | |||
WorldStaticModel = Handgun_Laser_Ground, | |||
} | |||
}} | |||
}} | |||
==See also== | |||
*[[Weapon mods]] | |||
*[[Weapons]] | |||
{{Navbox | {{Navbox items|firearms}} | ||
Revision as of 09:40, 14 April 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,
}