Sling: Difference between revisions

From PZwiki
m (Automated Formatting for Infobox and Section Headers)
m (Distribution table update)
(5 intermediate revisions by the same user not shown)
Line 14: Line 14:
|item_id=Base.Sling
|item_id=Base.Sling
}}
}}
{{Quote|text=Weapon attachment. Reduces firearm carry-weight.|author=In-game tooltip}}
{{Quote|text=Weapon attachment. Reduces firearm carry-weight.|author=In-game tooltip}}
A '''sling''' is a weapon mod.
A '''sling''' is a weapon mod.
Line 29: Line 28:
The loot distributions can be found in the table(s) below.
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;"
<!--BOT FLAG|Sling|41.78.16-->
! colspan="4" | Containers
{{clear}}
|-
<div class="togglebox theme-red">
!Building/Room
    <div>Sling distribution
!Container
        <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>
! style="width: 3.2em;" |Rolls
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Sling">
! style="width: 3.2em;" |Chance
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
|-
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
| all
    |+ {{ll|Containers}}
| [[militarycrate]]
    ! Building / Room
| 4
    ! Container
| 6
    ! Rolls
|-
    ! Chance
| garagestorage
    |-
| [[locker]]
    | all
| 4
    | {{ll|militarycrate}}
| 6
    | 4
|-
    | 6.0
| rowspan="2"|gunstore
    |-
| [[counter]]
    | garagestorage
| 4
    | {{ll|locker}}
| 6
    | 4
|-
    | 6.0
|[[locker]]
    |-
|4
    | gunstore
|6
    | {{ll|counter}}
|-
    | 4
| policestorage
    | 6.0
| [[locker]]
    |-
| 4
    | gunstore
| 4
    | {{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==
Line 67: Line 89:
   | lang = java
   | lang = java
   | line = true
   | line = true
   | start = 0
   | start = 2528
   | source = newitems.txt
   | source = newitems.txt
   | retrieved = true
   | retrieved = true
   | version = 41.65
   | version = 41.78.16
   | code =
   | code =
item Sling
item Sling
{
    {
    DisplayCategory = WeaponPart,
        DisplayCategory = WeaponPart,
    Type = WeaponPart,
        Type = WeaponPart,
    DisplayName = Sling,
        DisplayName = Sling,
    Icon = GunSling,
        Icon = GunSling,
    Weight = 0.5,
        Weight = 0.5,
    WeightModifier = -0.3,
        WeightModifier = -0.3,
    MountOn = HuntingRifle; VarmintRifle; Shotgun,
        MountOn = HuntingRifle; VarmintRifle; Shotgun,
    PartType = Sling,
        PartType = Sling,
    Tooltip = Tooltip_Sling,
        Tooltip = Tooltip_Sling,
}
    }
  }}
}}
}}
}}


Line 91: Line 113:
*[[Weapons]]
*[[Weapons]]


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

Revision as of 16:38, 24 April 2024

Spiffo controlyourself.png
This page was last updated for an older version (41.65).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
Frame.png
This article contains outdated/low-quality images.
Reason: Missing 3D model
Please help the PZwiki by uploading an improved/updated version of the image(s) found on this page.
Sling
Sling
General
Encumbrance
Moodle Icon HeavyLoad.png
0.5
Used in
Shotgun2.pngRifleVarmint.pngRifleHunting.png
Part type
Sling
Performance
Encumbrance mod.
-0.3
Technical
Item ID
Base.Sling
Weapon attachment. Reduces firearm carry-weight.
— In-game tooltip

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
Containers
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
Vehicles
Vehicle Type/Location Rolls Chance
PoliceTruckBed 4 4

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 Sling
    {
        DisplayCategory = WeaponPart,
        Type = WeaponPart,
        DisplayName = Sling,
        Icon = GunSling,
        Weight = 0.5,
        WeightModifier = -0.3,
        MountOn = HuntingRifle; VarmintRifle; Shotgun,
        PartType = Sling,
        Tooltip = Tooltip_Sling,
    }

See also