Recoil Pad: Difference between revisions

From PZwiki
(added header and new infobox)
(Add distro table)
 
(22 intermediate revisions by 9 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
{{Infobox item
|display_name = Recoil Pad
|name=Recoil Pad
|name_colour = Weapon
|model=Rifle_RecoilPad_Model.png
|name_text_colour = Weapon
|icon=RifleRecoilPad.png
|image = RifleRecoilPad_128px.png
|image_width = 128px
<!--GENERAL-->
<!--GENERAL-->
|weight = 0.1
|weight=0.1
|weapon = [[File:RifleHunting.png|link=Hunting Rifle]] [[File:RifleVarmint.png|link=Varmint Rifle]]
|weapon=[[File:RifleVarmint.png|MSR700 Rifle]][[File:RifleHunting.png|link=MSR788 Rifle]][[File:AssaultRifle2.png|M14 Rifle]][[File:AssaultRifle.png|M16 Assault Rifle]]
|part_type = Recoil pad
|part_type=Recoil pad
<!--MODIFIERS-->
<!--MODIFIERS-->
|weight_mod = 0.1
|weight_mod=0.1
|recoil_mod = -10
|recoil_mod=-10
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name = Base.RecoilPad
|item_id=Base.RecoilPad
}}{{quote|text=Weapon attachment. Reduces firearm recoil and delay to next shot.|author=In-game tooltip}}A '''recoil pad''' is a weapon mod.
}}
{{Quote|text=Weapon attachment. Reduces firearm recoil and delay to next shot.|author=In-game tooltip}}A '''recoil pad''' is a weapon mod.


==Usage==
==Usage==
Can be added to guns using a [[screwdriver]].
Reduces firearm recoil by 10. Can be attached using a [[screwdriver]].


==Compatible Weapons==
==Compatible weapons==
*[[File:RifleVarmint.png|link=Varmint Rifle]] [[Varmint Rifle]]
*[[File:RifleVarmint.png]][[MSR700 Rifle]]
*[[File:RifleHunting.png|link=Hunting Rifle]] [[Hunting Rifle]]
*[[File:RifleHunting.png]][[MSR788 Rifle]]
*[[File:AssaultRifle2.png]][[M14 Rifle]]
*[[File:AssaultRifle.png]][[M16 Assault Rifle]]
 
==Distribution==
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|RecoilPad|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>RecoilPad distribution
        <span class="mw-customtoggle-togglebox-RecoilPad" 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-RecoilPad">
    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 sortable" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | garagestorage
    | {{ll|locker}}
    | 15.1%
    |-
    | gunstore
    | {{ll|counter}}
    | 15.1%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-RecoilPad" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|RecoilPad|41.78.16-->


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=40|incver=43}}
| {{CodeSnip
<pre> item RecoilPad
  | lang = java
Type = WeaponPart,
  | line = true
DisplayName = Recoil Pad,
  | start = 2555
Icon = RifleRecoilPad,
  | source = newitems.txt
Weight = 0.1,
  | retrieved = true
WeightModifier = 0.1,
  | version = 41.78.16
RecoilDelayModifier = 5,
  | code =
MountOn = HuntingRifle; VarmintRifle,
item RecoilPad
PartType = RecoilPad,
    {
Tooltip = Tooltip_RecoilPad,</pre>
        DisplayCategory = WeaponPart,
        Type = WeaponPart,
        DisplayName = Recoil Pad,
        Icon = RifleRecoilPad,
        Weight = 0.1,
        WeightModifier = 0.1,
        RecoilDelayModifier = -10.0,
        MountOn = HuntingRifle; VarmintRifle; AssaultRifle; AssaultRifle2,
        PartType = RecoilPad,
        Tooltip = Tooltip_RecoilPad,
        WorldStaticModel = Rifle_RecoilPad_Ground,
    }
}}
}}


==See also==
==See also==
* [[Weapon mods]]
*[[Weapon mods]]
* [[Weapons]]
*[[Weapons]]


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

Latest revision as of 16:48, 4 May 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.
Recoil Pad
Rifle RecoilPad Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Used in
MSR700 RifleRifleHunting.pngM14 RifleM16 Assault Rifle
Part type
Recoil pad
Performance
Recoil
-10
Encumbrance mod.
0.1
Technical
Item ID
Base.RecoilPad
Weapon attachment. Reduces firearm recoil and delay to next shot.
— In-game tooltip

A recoil pad is a weapon mod.

Usage

Reduces firearm recoil by 10. Can be attached using a screwdriver.

Compatible weapons

Distribution

The loot distributions can be found in the table(s) below.

RecoilPad 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.
Containers
Building/Room Container Effective chance
garagestorage locker 15.1%
gunstore counter 15.1%

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 RecoilPad
    {
        DisplayCategory = WeaponPart,
        Type = WeaponPart,
        DisplayName = Recoil Pad,
        Icon = RifleRecoilPad,
        Weight = 0.1,
        WeightModifier = 0.1,
        RecoilDelayModifier = -10.0,
        MountOn = HuntingRifle; VarmintRifle; AssaultRifle; AssaultRifle2,
        PartType = RecoilPad,
        Tooltip = Tooltip_RecoilPad,
        WorldStaticModel = Rifle_RecoilPad_Ground,
    }

See also