Sling: Difference between revisions
m (Remove 128px, minor fixes) |
m (Distribution table update) |
||
(21 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Items|Weapons|Firearms|Weapon parts}} | |||
| | {{Page version|41.65}} | ||
| | {{Reupload|Missing 3D model}} | ||
{{Infobox item | |||
|name=Sling | |||
|icon=GunSling.png | |||
<!--GENERAL--> | <!--GENERAL--> | ||
|weight=0.5 | |weight=0.5 | ||
Line 12: | Line 12: | ||
|weight_mod=-0.3 | |weight_mod=-0.3 | ||
<!--TECHNICAL DETAILS--> | <!--TECHNICAL DETAILS--> | ||
| | |item_id=Base.Sling | ||
}}{{ | }} | ||
{{Quote|text=Weapon attachment. Reduces firearm carry-weight.|author=In-game tooltip}} | |||
A '''sling''' is a weapon mod. | |||
==Usage== | ==Usage== | ||
This item can be attached to a [[JS-2000 Shotgun]], [[MSR700 Rifle]], or [[MSR788 Rifle]], using a [[screwdriver]], thus reducing | This item can be attached to a [[JS-2000 Shotgun|JS-2000 shotgun]], [[MSR700 Rifle|MSR700 rifle]], or [[MSR788 Rifle|MSR788 rifle]], using a [[screwdriver]], thus reducing encumbrance of the firearm by 0.3. | ||
==Compatible weapons== | ==Compatible weapons== | ||
*[[File:Shotgun2.png | *[[File:Shotgun2.png|link=Shotgun]] [[JS-2000 Shotgun]] | ||
*[[File:RifleVarmint.png | *[[File:RifleVarmint.png|link=Varmint Rifle]] [[MSR700 Rifle]] | ||
*[[File:RifleHunting.png | *[[File:RifleHunting.png|link=Hunting Rifle]] [[MSR788 Rifle]] | ||
==Distribution== | |||
The loot distributions can be found in the table(s) below. | |||
<!--BOT FLAG|Sling|41.78.16--> | |||
{{clear}} | |||
<div class="togglebox theme-red"> | |||
<div>Sling distribution | |||
<span class="mw-customtoggle-togglebox-Sling" 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-Sling"> | |||
<div class="toggle-content"><div style="display: flex;"><div style="float:left;"> | |||
{| class="wikitable theme-red" style="margin-right:15px; width:95%;" | |||
|+ {{ll|Containers}} | |||
! Building / Room | |||
! Container | |||
! Rolls | |||
! Chance | |||
|- | |||
| all | |||
| {{ll|militarycrate}} | |||
| 4 | |||
| 6.0 | |||
|- | |||
| garagestorage | |||
| {{ll|locker}} | |||
| 4 | |||
| 6.0 | |||
|- | |||
| gunstore | |||
| {{ll|counter}} | |||
| 4 | |||
| 6.0 | |||
|- | |||
| gunstore | |||
| {{ll|locker}} | |||
| 4 | |||
| 6.0 | |||
|- | |||
| policestorage | |||
| {{ll|locker}} | |||
| 4 | |||
| 4.0 | |||
|} | |||
</div> | |||
<div style="float:left;"> | |||
{| class="wikitable theme-red" style="margin-right:15px; width:95%;" | |||
|+ {{ll|Vehicles}} | |||
! Vehicle Type/Location | |||
! Rolls | |||
! Chance | |||
|- | |||
| PoliceTruckBed | |||
| 4 | |||
| 4 | |||
|} | |||
</div> | |||
</div><div style="clear:both;"></div> | |||
</div></div><div class="toggle large mw-customtoggle-togglebox-Sling" title="{{int:show}}/{{int:hide}}"></div></div> | |||
<!--END BOT FLAG|Sling|41.78.16--> | |||
==Code== | ==Code== | ||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 2528 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item Sling | |||
{ | { | ||
DisplayCategory = WeaponPart, | DisplayCategory = WeaponPart, | ||
Line 39: | Line 106: | ||
Tooltip = Tooltip_Sling, | Tooltip = Tooltip_Sling, | ||
} | } | ||
}} | |||
}} | |||
==See also== | ==See also== | ||
Line 45: | Line 113: | ||
*[[Weapons]] | *[[Weapons]] | ||
{{Navbox | {{Navbox items|firearms}} |
Latest revision as of 16:38, 24 April 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.
Sling distribution
Show / Hide
Building / Room | Container | Rolls | Chance |
---|---|---|---|
all | militarycrate | 4 | 6.0 |
garagestorage | locker | 4 | 6.0 |
gunstore | counter | 4 | 6.0 |
gunstore | locker | 4 | 6.0 |
policestorage | locker | 4 | 4.0 |
Vehicle Type/Location | Rolls | Chance |
---|---|---|
PoliceTruckBed | 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,
}