Payday Wiki
Advertisement
Infobox equipment3

[[File:{{{image}}}|256px|center]]

[[File:{{{image fbi}}}|256px|center]]

Gameplay
Unlock Level {{{unlock}}}
Inventory Slot {{{slot}}}
Weapon Type {{{wtype}}}
Firing Mode(s) {{{type}}}
Cost ${{{price}}}
Statistics
Magazine {{{mag}}}
Total Ammo {{{max_ammo}}}
Rate of Fire {{{rpm}}}
Damage {{{damage}}} {{{effect}}}
Accuracy {{{accuracy}}}
Stability {{{stability}}}
Concealment {{{concealment}}}
Threat {{{threat}}}
Other
Internal name {{{int_name}}}
Achievement(s) {{{achievement}}}
Trophies {{{trophy}}}
v·d·e
Mod stats

Usage

{{Infobox equipment2
|name           = 
|image          = 
|image fbi      = 
|caption        = 
|unlock         = 
|slot           = 
|wtype          = 
|wtype2         = 
|type           = 
|effect         = 
|price          = 
|mag            = 
|max_ammo       = 
|rpm            = 
|damage         = 
|accuracy       = 
|stability      = 
|concealment    = 
|threat         = 
|reload_min     = 
|reload_max     = 
|shotgun_enter  = 
|shotgun_shell  = 
|shotgun_offset = 
|bow_draw_time  = 
|bow_reload     = 
|ammo_b_min     = 
|ammo_b_max     = 
|splash         = 
|launch_speed   = 
|fire_damage    = 
|fire_range     = 
|fire_chance    = 
|fire_length    = 
|fire_tick      = 
|range_min      = 
|range_max      = 
|falloff_multi  = 
|sights_s_min   = 
|sights_s_max   = 
|sights_m_min   = 
|sights_m_max   = 
|hipfire_s_min  = 
|hipfire_s_max  = 
|hipfire_m_min  = 
|hipfire_m_max  = 
|recoil_v_min   = 
|recoil_v_max   = 
|recoil_h_min   = 
|recoil_h_max   = 
|int_name       = 
|achievement    = 
|trophy         = 
}}
Template documentation (for the above template, sometimes hidden or invisible)

Parameters

If unsure of the value of a parameter, refer to Value Locations for its location.

image - Name of inventory image Page. Example: 57AP_icon.png
image fbi - Name of fbi image Page. Example: Rattlensnake FBI Files.png
caption - Used for various flavor text:
Uses
  • {{color|dlc|THIS IS A (dlc name) ITEM!}}
  • {{color|community|THIS IS A COMMUNITY ITEM!}}
  • {{Color|event|THIS IS A (event name) ITEM!}}
  • [[Weapons (Payday 2)/WPMechanics#Armor Piercing Capability|{{color|positive|Armor Piercing Capability}}]]
  • {{color|negative|Regular ammo pickups are disabled for this weapon.}}
  • {{color|positive|Arrows can be picked back up}}
  • Plain text can be added for a brief description.
unlock - Reputation level which the item unlocks at.
slot - Whether it is a primary or secondary weapon.
Accepted Inputs
  • 2 for primary weapons
  • 3 for secondary weapons
wtype - Determines type of weapon.
Accepted Inputs
  • 1 for Assault Rifles
  • 2 for Shotguns
  • 3 for Pistols
  • 4 for SMGs
  • 5 for Akimbos (All types, or Pistol if wtype2 is not defined)
  • 6 for LMGs
  • 7 for Sniper Rifles
  • 8 for Special Weapons
  • 9 for Machine Pistols (Pistol)
  • 10 for Machine Pistols (SMG)
wtype2 - Determines type of akimbo weapon.
Accepted Inputs
  • Leave the value blank for Pistols.
  • 2 for Shotguns
  • 4 for SMG
type - Fire mode type.
Accepted Inputs
  • 1 for Fully Automatic
  • 2 for Semi Automatic
  • 3 for Selective Firing
  • 4 for Bolt Action
  • 5 for Double Action
  • 6 for Single Action
  • 7 for Single Shot
  • 8 for Pump Action
  • 9 for Selective Firing 2
  • 10 for Lever Action
  • 11 for Break Action
effect - Adds special tags depending on special weapon effects.
Accepted Inputs
  • 1 for Fire. Adds the damage tag "+Fire" to fire based weapons.
price - Price of item in $'s.
mag - Base magazine size.
max_ammo - Base maximum amount of ammo.
rpm - Rate of fire of the weapon in the internal game value. Refer to Value Locations for actual values.
damage - Base damage dealt by the weapon.
accuracy - Base accuracy of the weapon.
stability - Base stability of the weapon.
concealment - Base concealment of the weapon.
threat - Base threat of the weapon.

These next parameters will behave differently depending on the wtype used. Values in red should not be affected (yet). The changes are handled automatically.

wtype value
  • 1 for Aggressive Reload
  • 2 for Shotgun CQB
  • 3 for Desperado
  • 4 for Lock N' Load
  • 7 for Aggressive Reload
  • 8 for Special(Special)
reload_min - Tatical reload time.
reload_max - Full reload time.
shotgun_enter - Time it takes to start reloading weapon.
shotgun_shell - Reload time of each shell/bullet.
shotgun_offset - Used to calculate first shell/bullet reload time.
reload_bow_c - Max charge time for a bow.
reload_bow - Reload time for a bow.
ammo_b_min - Minimum ammo pickup value.
ammo_b_max - Maximum ammo pickup value.
splash - Explosion radius.
launch_speed - Projectile movement speed.
fire_damage - Damage from fire.
fire_range - Range of fire-based weapon.
fire_chance - Fire application chance.
fire_length - Fire duration.
fire_tick - Tick rate of damage.
range_min - Maximum range before damage falloff.
range_max - Range at which falloff stops and damage remains consistent.
falloff_multi - Damage falloff multiplier.
sights_s_min - Bullet spread cone while sighted.
sights_s_max - Bullet spread cone while sighted and crouched.
sights_m_min - Bullet spread cone while sighted.
sights_m_max - Bullet spread cone while sighted.
hipfire_s_min - Bullet spread cone while aiming from the hip.
hipfire_s_max - Bullet spread cone while aiming from the hip and crouched.
hipfire_m_min - Bullet spread cone while aiming from the hip.
hipfire_m_max - Bullet spread cone while aiming from the hip.
recoil_v_min - Maximum recoil distance upwards.
recoil_v_max - Maximum recoil distance downwards.
recoil_h_min - Maximum recoil distance to the left.
recoil_h_max - Maximum recoil distance to the right.
int_name - Internal weapon name.
achievement - Achievements requiring and/or related to the weapon.
trophy - Safehouse trophies requiring and/or related to the weapon.

Value Locations

For those that want to quickly find internal values, the mod More Weapon Stats should be used, as it is highly accurate and displays much of the data used for infoboxes. It also saves you from performing many different calculations across multiple files.

Some values are easier to find internally within the game. Here are their locations:

rpm - Weapontweakdata.lua, search for "self.internalweaponname.fire_mode_data". fire_rate is the value used for rpm.
reload_min - Weapontweakdata.lua, search for "self.internalweaponname.timers". reload_not_empty is the value used for reload_min.
reload_max - Weapontweakdata.lua, search for "self.internalweaponname.timers". reload_empty is the value used for reload_max.
shotgun_enter - Weapontweakdata.lua, search for "self.internalweaponname.timers". shotgun_reload_enter is the value used for shotgun_enter.
shotgun_shell - Weapontweakdata.lua, search for "self.internalweaponname.timers". shotgun_reload_shell is the value used for shotgun_shell.
shotgun_offset - Weapontweakdata.lua, search for "self.internalweaponname.timers". shotgun_reload_first_shell_offset is the value used for shotgun_offset.
reload_bow_c - Weapontweakdata.lua, search for "self.internalweaponname.charge_data". max_t is the value used for reload_bow_c.
reload_bow - Weapontweakdata.lua, search for "self.internalweaponname.timers". reload_not_empty is the value used for reload_bow.
ammo_b_min - Use More Weapon Stats.
ammo_b_max - Use More Weapon Stats.


These values relate to projectiles. To find the projectile's name, search Weapontweakdata.lua for the weapon, then find "projectile_type".

splash - Tweakdata.lua, search for "self.projectiles.projectilename". range is the value used for splash.
launch_speed - Tweakdata.lua, search for "self.projectiles.projectilename". launch_speed is the value used for launch_speed.
fire_damage - Weapontweakdata.lua, search for "self.internalweaponname.fire_dot_data". dot_damage is the value used for fire_damage.
fire_range - Weapontweakdata.lua, search for "self.internalweaponname.flame_max_range". This is the value used for fire_chance.
fire_chance - Weapontweakdata.lua, search for "self.internalweaponname.fire_dot_data". dot_trigger_chance is the value used for fire_chance.
fire_length - Weapontweakdata.lua, search for "self.internalweaponname.fire_dot_data". dot_length is the value used for fire_length.
fire_tick - Weapontweakdata.lua, search for "self.internalweaponname.fire_dot_data". dot_tick_period is the value used for fire_tick.


For the next three parameters, search Weapontweakdata.lua, then look for "self.internalweaponname.damage_falloff", and note the "FALLOFF_TEMPLATE" name. Then check Weaponfallofftweakdata.lua for that same template.

range_min - Add "optimal_distance" and "optimal_range" together, divide by 100 (I should fix this).
range_max - Add "optimal_distance", "optimal_range", and "far_falloff" together, divide by 100 (I should fix this).
falloff_multi - "far_multiplier" value.

These calculations are a pain, please use More Weapon Stats.

sights_s_min
sights_s_max
sights_m_min
sights_m_max
hipfire_s_min
hipfire_s_max
hipfire_m_min
hipfire_m_max
recoil_v_min
recoil_v_max
recoil_h_min
recoil_h_max
int_name - Internal weapon name. For new weapons, run a dif on Weapontweak.lua to see what new data was added.
achievement - Achievements requiring and/or related to the weapon. Should be formatted as followed:
[[File:United We Heist.jpg|20px]]
trophy - Safehouse trophies requiring and/or related to the weapon. Should be formatted as followed:
[[File:Trophy-SpeedTalker.png|80px]]


Obsolete and Unused Parameters

These parameters still function and will cause unwanted effects if included in the infobox.

name - Name of weapon/item. Not used in the infobox, will safely default to {{pagename}} if not present.
rate_of_fire - Old rate of fire parameter. Will use the in-game RoF value and perform no calculations.
reload_time - Old reload parameter. Replaced.
ammo_pickup - Old ammo pickup parameter. Replaced.
reload_kil_max - Used in Damage/second calculation. Was intended to be reload time from Kilmer.
reload_smg_max - Used in Damage/second calculation. Was intended to be reload time from SMG Specialist.
reload_cqb_max - Used in Damage/second calculation. Was intended to be reload time from Shotgun CQB.
reload_pis_max - Used in Damage/second calculation. Was intended to be reload time from Gunslinger.

Advertisement