Sling: Difference between revisions
m (fixed infobox image) |
(Automated update of distribution section) |
||
Line 26: | Line 26: | ||
*[[File:RifleHunting.png|link=Hunting Rifle]] [[MSR788 Rifle]] | *[[File:RifleHunting.png|link=Hunting Rifle]] [[MSR788 Rifle]] | ||
{{clear}} | |||
==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 | |||
|- | |||
| all | |||
| [[militarycrate]] | |||
| 4 | |||
| 6 | |||
|- | |||
| garagestorage | |||
| [[locker]] | |||
| 4 | |||
| 6 | |||
|- | |||
| rowspan="2"|gunstore | |||
| [[counter]] | |||
| 4 | |||
| 6 | |||
|- | |||
|[[locker]] | |||
|4 | |||
|6 | |||
|- | |||
| policestorage | |||
| [[locker]] | |||
| 4 | |||
| 4 | |||
|} | |||
==Code== | ==Code== | ||
{{CodeBox | {{CodeBox |
Revision as of 10:30, 12 February 2024
Sling
Performance
Encumbrance mod.
-0.3
Technical
Item ID
Base.Sling
“
Weapon attachment. Reduces firearm carry-weight.
A sling is a weapon mod.
Usage
This item can be attached to a JS-2000 shotgun, MSR700 rifle, or MSR788 rifle, using a screwdriver, thus reducing encumbrance of the firearm by 0.3.
Compatible weapons
Distribution
The loot distributions can be found in the table(s) below.
Containers | |||
---|---|---|---|
Building/Room | Container | Rolls | Chance |
all | militarycrate | 4 | 6 |
garagestorage | locker | 4 | 6 |
gunstore | counter | 4 | 6 |
locker | 4 | 6 | |
policestorage | locker | 4 | 4 |
Code
Code snippet! This section contains source code from Project ZomboidShow / Hide
Source: ProjectZomboid\media\scripts\newitems.txt
item Sling
{
DisplayCategory = WeaponPart,
Type = WeaponPart,
DisplayName = Sling,
Icon = GunSling,
Weight = 0.5,
WeightModifier = -0.3,
MountOn = HuntingRifle; VarmintRifle; Shotgun,
PartType = Sling,
Tooltip = Tooltip_Sling,
}