Sling: Difference between revisions
(added header and new infobox) |
(No 3D model yet, bump version) |
||
(29 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Weapons|Firearms|Weapon parts}} | ||
{{Page version|41.78.16}} | |||
{{Infobox | {{Infobox item | ||
| | |name=Sling | ||
| | |icon=GunSling.png | ||
<!--GENERAL--> | <!--GENERAL--> | ||
|weight | |weight=0.5 | ||
|weapon | |weapon=[[File:Shotgun2.png|link=JS-2000 Shotgun]][[File:RifleVarmint.png|link=MSR700 Rifle]][[File:RifleHunting.png|link=MSR788 Rifle]] | ||
|part_type | |part_type=Sling | ||
<!--MODIFIERS--> | <!--MODIFIERS--> | ||
|weight_mod | |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|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== | |||
*[[File:Shotgun2.png|link=Shotgun]] [[JS-2000 Shotgun]] | |||
*[[File:RifleVarmint.png|link=Varmint Rifle]] [[MSR700 Rifle]] | |||
*[[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"> | |||
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 | |||
|- | |||
| all | |||
| {{ll|militarycrate}} | |||
| 15.1% | |||
|- | |||
| all | |||
| {{ll|militarylocker}} | |||
| 15.1% | |||
|- | |||
| armystorage | |||
| {{ll|locker}} | |||
| 15.1% | |||
|- | |||
| armystorage | |||
| {{ll|metal_shelves}} | |||
| 15.1% | |||
|- | |||
| garagestorage | |||
| {{ll|locker}} | |||
| 15.1% | |||
|- | |||
| gunstore | |||
| {{ll|counter}} | |||
| 15.1% | |||
|- | |||
| gunstore | |||
| {{ll|locker}} | |||
| 15.1% | |||
|- | |||
| gunstore | |||
| {{ll|metal_shelves}} | |||
| 15.1% | |||
|- | |||
| gunstore | |||
| {{ll|shelves}} | |||
| 15.1% | |||
|- | |||
| gunstorestorage | |||
| {{ll|locker}} | |||
| 15.1% | |||
|- | |||
| gunstorestorage | |||
| {{ll|metal_shelves}} | |||
| 15.1% | |||
|- | |||
| gunstorestorage | |||
| {{ll|shelves}} | |||
| 15.1% | |||
|- | |||
| hunting | |||
| {{ll|metal_shelves}} | |||
| 15.1% | |||
|- | |||
| policestorage | |||
| {{ll|locker}} | |||
| 10.78% | |||
|- | |||
| policestorage | |||
| {{ll|metal_shelves}} | |||
| 10.78% | |||
|} | |||
</div> | |||
<div id="vehicles" style="flex-basis:30%"> | |||
{| class="wikitable theme-red" style="margin-right: 15px; width: 95%;" | |||
|+ {{ll|Vehicles}} | |||
! Type | |||
! Container | |||
! Effective chance | |||
|- | |||
| Police | |||
| {{ll|Truck Bed}} | |||
| 10.78% | |||
|} | |||
</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, | |||
Type = WeaponPart, | |||
DisplayName = Sling, | |||
Icon = GunSling, | |||
Weight = 0.5, | |||
WeightModifier = -0.3, | |||
MountOn = HuntingRifle; VarmintRifle; Shotgun, | |||
PartType = Sling, | |||
Tooltip = Tooltip_Sling, | |||
} | |||
}} | |||
}} | |||
==Trivia== | |||
*Sling currently don't have a model when placed on the ground. | |||
==See also== | ==See also== | ||
* [[Weapon mods]] | *[[Weapon mods]] | ||
* [[Weapons]] | *[[Weapons]] | ||
{{Navbox | {{Navbox items|firearms}} |
Latest revision as of 14:08, 3 May 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
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.
Building/Room | Container | Effective chance |
---|---|---|
all | militarycrate | 15.1% |
all | militarylocker | 15.1% |
armystorage | locker | 15.1% |
armystorage | metal_shelves | 15.1% |
garagestorage | locker | 15.1% |
gunstore | counter | 15.1% |
gunstore | locker | 15.1% |
gunstore | metal_shelves | 15.1% |
gunstore | shelves | 15.1% |
gunstorestorage | locker | 15.1% |
gunstorestorage | metal_shelves | 15.1% |
gunstorestorage | shelves | 15.1% |
hunting | metal_shelves | 15.1% |
policestorage | locker | 10.78% |
policestorage | metal_shelves | 10.78% |
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,
}
Trivia
- Sling currently don't have a model when placed on the ground.