Sling: Difference between revisions

From PZwiki
(Add iwbums navbox)
No edit summary
Line 1: Line 1:
{{languages}}
{{languages}}
{{header|The Game World|Items|Weapons|Firearms|Weapon Parts|type=Weapon|version=Version 40|incver=43}}
{{header|The Game World|Items|Weapons|Firearms|Weapon Parts|type=Weapon|version=Version 41|incver=65}}
{{Infobox weapon mod
{{Infobox weapon mod
|display_name = Sling
|display_name = Sling
Line 9: Line 9:
<!--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 = Scope
<!--MODIFIERS-->
<!--MODIFIERS-->
Line 18: Line 18:


==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]], [[MSR700 Rifle]], or [[MSR788 Rifle]], using a [[screwdriver]], reducing weight of the firearm by 0.3.  
 
Can be added to guns using a [[screwdriver]].


==Compatible weapons==
==Compatible weapons==
*[[File:Shotgun2.png|32px|link=Shotgun]] [[Shotgun]]
*[[File:Shotgun2.png|32px|link=Shotgun]] [[JS-2000 Shotgun]]
*[[File:RifleVarmint.png|link=Varmint Rifle]] [[Varmint Rifle]]
*[[File:RifleVarmint.png|32px|link=Varmint Rifle]] [[MSR700 Rifle]]
*[[File:RifleHunting.png|link=Hunting Rifle]] [[Hunting Rifle]]
*[[File:RifleHunting.png|32px|link=Hunting Rifle]] [[MSR788 Rifle]]


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=43}}
{{Retrieved|version=41|incver=65}}
<pre> item Sling
<pre>   item Sling
Type = WeaponPart,
    {
DisplayName = Sling,
        DisplayCategory = WeaponPart,
Icon = GunSling,
        Type = WeaponPart,
Weight = 0.5,
        DisplayName = Sling,
WeightModifier = -0.3,
        Icon = GunSling,
MountOn = HuntingRifle; VarmintRifle; Shotgun,
        Weight = 0.5,
PartType = Sling,
        WeightModifier = -0.3,
Tooltip = Tooltip_Sling,</pre>
        MountOn = HuntingRifle; VarmintRifle; Shotgun,
        PartType = Sling,
        Tooltip = Tooltip_Sling,
    }</pre>


==See also==
==See also==

Revision as of 17:48, 14 February 2022

Sling
Sling
General
Category Weapon mod
Encumbrance
Heavy Load
0.5
Weapon(s) Shotgun2.pngRifleVarmint.pngRifleHunting.png
Part type Scope
Modifiers
Encumbrance -0.3
Technical details
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, reducing weight of the firearm by 0.3.

Compatible weapons

Code

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.65

    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

Template:Navbox/Weapons