Sling: Difference between revisions

From PZwiki
(Add iwbums navbox)
m (Distribution table update)
(24 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Weapons|Firearms|Weapon parts}}
{{header|The Game World|Items|Weapons|Firearms|Weapon Parts|type=Weapon|version=Version 40|incver=43}}
{{Page version|41.65}}
{{Infobox weapon mod
{{Reupload|Missing 3D model}}
|display_name = Sling
{{Infobox item
|name_colour = Weapon
|name=Sling
|name_text_colour = Weapon
|icon=GunSling.png
|image = GunSling_128px.png
|image_width = 128px
<!--GENERAL-->
<!--GENERAL-->
|weight = 0.5
|weight=0.5
|weapon = [[File:RifleHunting.png|link=Hunting Rifle]] [[File:RifleVarmint.png|link=Varmint Rifle]] [[File:Shotgun2.png|link=Shotgun]]
|weapon=[[File:Shotgun2.png|link=JS-2000 Shotgun]][[File:RifleVarmint.png|link=MSR700 Rifle]][[File:RifleHunting.png|link=MSR788 Rifle]]
|part_type = Scope
|part_type=Sling
<!--MODIFIERS-->
<!--MODIFIERS-->
|weight_mod = -0.3
|weight_mod=-0.3
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name = Base.Sling
|item_id=Base.Sling
}}{{quote|text=Weapon attachment. Reduces firearm carry-weight.|author=In-game tooltip}}A '''sling''' is a weapon mod.
}}
{{Quote|text=Weapon attachment. Reduces firearm carry-weight.|author=In-game tooltip}}
A '''sling''' is a weapon mod.


==Usage==
==Usage==
A sling is an attachment for the [[Hunting Rifle|hunting rifle]], [[Varmint Rifle|varmint rifle]] and [[shotgun]], it reduces the weight of the weapon by -0.3.  
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.


Can be added to guns using a [[screwdriver]].
==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]]


==Compatible weapons==
==Distribution==
*[[File:Shotgun2.png|32px|link=Shotgun]] [[Shotgun]]
The loot distributions can be found in the table(s) below.
*[[File:RifleVarmint.png|link=Varmint Rifle]] [[Varmint Rifle]]
 
*[[File:RifleHunting.png|link=Hunting Rifle]] [[Hunting Rifle]]
<!--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==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=40|incver=43}}
| {{CodeSnip
<pre> item Sling
  | lang = java
Type = WeaponPart,
  | line = true
DisplayName = Sling,
  | start = 2528
Icon = GunSling,
  | source = newitems.txt
Weight = 0.5,
  | retrieved = true
WeightModifier = -0.3,
  | version = 41.78.16
MountOn = HuntingRifle; VarmintRifle; Shotgun,
  | code =
PartType = Sling,
item Sling
Tooltip = Tooltip_Sling,</pre>
    {
        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==
==See also==
* [[Weapon mods]]
*[[Weapon mods]]
* [[Weapons]]
*[[Weapons]]


{{Navbox/Weapons}}
{{Navbox items|firearms}}
{{Navbox_weapons}}

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