PAYDAY 2

PAYDAY 2

56 ratings
Changing stats
By SniperVeil
Hello everyone!
This is a little guide to help people change stats to balance weapons at your own will.

With the current state of the game, expect problems with this guide.
2
   
Award
Favorite
Favorited
Unfavorite
The process
When you start out, you will want to have notepad ++, this will allow you to change Lua files.
Notepad ++ download[notepad-plus-plus.org]
You can use this website to start things out.
You can also use this mod [modworkshop.net]to find out weapon ID's

When you open up the lua, it should look as the format down below
I will provide the template to use.
TEMPLATE[drive.google.com]

Stat changing can be an exciting process, but be aware that a person should have an understanding of balance.
  • When dealing with damage stats, you can set it to what ever number you want, but depending on the weapon, it will reach a max limit.
  • stats_modifiers allows you to multiply the base damage.
    EX: "self.m95.stats_modifiers = {damage = 50}" makes the damage 15200 if the base damage is set to self.m95.stats.damage = 304. This is not including the damage buff included with the perk decks
  • Accuracy stats will be the .spread section and the max number you can set to is 30.
  • Stability stats will be the .recoil section and again, you can set it to a max of 30.
  • Concealment is as said, concealment. You can set this up to 30.
  • RPM is the fire_rate section and this is oddly specific as you will need to adjust your numbers a lot. Typically, you'll have to set the number lower for a higher fire rate and a higher number for a slower fire rate. Fire rate is calculated as 60/(fire rate) so 600 rpm would be 0.1, 850 rpm would be .07058 and so on. Thanks to CabbageSauceSoup for providing specifics on the numbers.
  • Ammo reserves will be AMMO_MAX, same process as adding damage, just insert a number.
  • Mag size will be the CLIP_AMMO. This part will be put as 2 numbers in decimal format. The first number will be base pickup and the 2nd will be the lower chance unless you are using Fully Loaded
    EX: self.tti.AMMO_PICKUP = {2.00, 4.00}
  • Shooting through shield allows you to, well, shoot through shields. Do be warned that this only allows you to shoot through shields and not walls like the snipers can. True and False are the commands to get it to work
  • Armor piercing requires you to input a number percentage without the % sign.
  • reload is pretty self explanatory as it controls the reload speed (aka animation speed) of the weapon you are using. The number that is displayed in game tends to be wrong and will require you to test the numbers and see what fits you the most. The numbers will be used like accuracy where the max it will go to is 35.
  • can_shoot_through allows you to enable or disable the ability to shoot through walls and shields. you will have to put output as shield or walls and equal it out to be true or false. You can put both shields and walls into one weapons.
    EX: self.lemming.can_shoot_through_shields = false
After all editing these, it should look like so...

When editing it to a specific gun, make sure to get the correct weapon ID and put it after the self section. I will be glad to assist with any ID's you may be confused about.

Again, be careful of weapon changes. If you make the stats too high, it could cause the game to crash for the host and yourself. Also, be sure to make sure you don't duplicate code or have a spelling error as it can cause the game to crash or the stats to not change!

If you need any help with trying to get the mod to work, please message me and I should be able to help you to the best of my ability.

MELEE NOW ADDED BELOW
Weapon ID's
Here will be all the weapon ID's for all weapons up to current patch. The following list will go as followed so you hopefully don't get confused as to which is which. Caps is important for the weapon ID itself, so make sure to check if your weapon has a capital in it. If so, REMOVE THE CAPITAL!
Example: Weapon -- weapon_id

Assault Rifles
  • AMCAR -- amcar
  • Commando 553 -- s552
  • Eagle Heavy Rifle -- scar
  • Union 5.56 -- corgi
  • AK Rifle -- ak74
  • CAR-4 -- new_m4
  • UAR -- aug
  • Cavity 9mm -- sub2000
  • AK.762 -- akm
  • Golden AK.762 -- akm_gold
  • JP36 -- g36
  • AK17 -- flint
  • Bootleg -- tecci
  • Queen's Wrath -- l85a2
  • Galant -- ching
  • M308 -- new_m14
  • Clarion -- famas
  • Lion's Roar -- vhs
  • Valkyria -- asval
  • AK5 -- ak5
  • Gecko 7.62 -- galil
  • Tempest-21 -- komodo
  • AMR-16 -- m16
  • Little Friend 7.62 -- contraband
  • Falcon -- fal
  • Gewehr 3 -- g3
  • KS12 -- shak12
  • KETCHNOV Byk-1 Assault Rifle -- groza
  • Rodion 3B Rifle -- tkb

Primary Shotguns
  • Predator 12G -- spas12
  • Breaker 12G -- boot
  • Reinfield 880 -- r870
  • M1014 -- benelli
  • Raven -- ksg
  • IZHMA 12G -- saiga
  • Mosconi 12G -- huntsman
  • Joceline O/U 12G -- b682
  • Steakout 12G -- aa12
  • VD-12 Shotgun -- sko12

LMG's
  • RPK -- rpk
  • KSP 58 -- par
  • KSP -- m249
  • Buzzsaw 42 -- mg42
  • Brenner-21 -- hk21
  • M60 -- m60
  • SG Versteckt 51 D Light Machine Gun -- hk51b

Snipers
  • Rattlesnake -- msr
  • Platypus 70 -- model70
  • Lebensauger .308 -- wa2000
  • Desertfox -- desertfox
  • Contractor .308 -- tti
  • R93 -- r93
  • Repeater 1874 -- winchester1874
  • Grom -- siltstone
  • Nagant -- mosin
  • Thanatos .50 cal -- m95
  • R700 -- r700

Primary Specials
  • OVE9000 Saw -- saw
  • Plainsrider Bow -- plainsrider
  • English Long Bow -- long
  • DECA Technologies Compound Bow -- elastic
  • Light Crossbow -- frankish
  • Heavy Crossbow -- arblast
  • Airbow -- ecp
  • XL 5.56 Microgun -- shuno
  • Vulcan Minigun -- m134
  • Piglet Grenade Launcher -- m32
  • GL40 Grenade Launcher -- gre_m79
  • Flamethrower Mk. 1 -- flamethrower_mk2
  • Hailstorm MK.5 -- hailstorm

Pistols
  • Chimano 88 -- glock_17
  • Interceptor 45 -- usp
  • Gruber Kurz -- ppk
  • Bronco .44 Revolver -- new_raging_bull
  • Crosskill -- colt_1911
  • Bernetti 9 -- b92fs
  • Chimano Custom -- g22c
  • White Streak -- pl14
  • Baby Deagle -- sparrow
  • Deagle Pistol -- deagle
  • Signature .45 -- p226
  • M13 9mm -- legacy
  • Broomstick -- c96
  • Parabellum Pistol -- breech
  • 5/7 AP Pistol -- lemming
  • Castigo .44 Revolver -- chinchilla
  • Contractor Pistol -- packrat
  • Chimano Compact -- g26
  • Crosskill Guard -- shrew
  • LEO Pistol -- hs2000
  • STRYK 18c -- glock_18c
  • Bernetti Auto -- beer
  • Czech 92 -- czech
  • Igor Automatik -- stech
  • Peacemaker .45 -- peacemaker
  • Matever .357 -- mateba
  • HOLT 9mm -- holt
  • RUS-12 Angry Tiger Revolver -- rsh12
  • Kahn .357 Revolver -- korth
  • Gecko M2 Pistol -- maxim9

SMG's
  • Swedish K -- m45
  • SpecOps -- mp7
  • Mark 10 -- mac10
  • CR 805B -- hajk
  • Jacket's Piece -- cobray
  • Compact-5 -- new_mp5
  • Chicago Typewriter -- m1928
  • Cobra -- scorpion
  • CMP -- mp9
  • Para SMG -- olympic
  • Micro Uzi -- baka
  • Signature SMG -- shepheard
  • Jackal -- schakal
  • MP40 -- erma
  • Heather SMG -- sr2
  • Krinkov SMG -- akmsu
  • Blaster 9mm -- tec9
  • Kobus 90 -- p90
  • Kross Vertex -- polymer
  • Tatonka SMG -- coal
  • Patchett L2A1 -- sterling
  • Uzi SMG -- uzi
  • Wasp-DS SMG -- fmg9

Secondary Shotguns
  • Locomotive 12G -- serbu
  • GSPS 12G -- m37
  • Goliath 12G -- rota
  • Grimm 12G -- basset
  • Street Sweeper -- striker
  • The Judge -- judge
  • Claire 12G -- coach
  • Argos III Shotgun -- ultima

Secondary Specials
  • Pistol Crossbow -- hunter
  • Compact 40mm -- slap
  • China Puff 40mm -- china
  • Arbiter -- arbiter
  • Commando 101 -- ray
  • HRL-7 -- rpg7
  • MA-17 Flamethrower -- system
  • OVE9000 Saw - saw_secondary
  • Pronghorn Sniper Rifle -- scout

Akimbo Pistols
  • Akimbo Crosskill Pistols -- x_1911
  • Akimbo Bernetti 9 Pistols -- x_b92fs
  • Akimbo Deagle Pistols -- x_deagle
  • Akimbo Chimano 88 Pistols -- x_g17
  • Akimbo Chimano Custom Pistols -- x_g22c
  • Akimbo Signiture .40 Pistols -- x_p226
  • Akimbo Gruber Kurz Pistols -- x_ppk
  • Akimbo Interceptor 45 Pistols - x_usp
  • Akimbo Contractor Pistols - x_packrat
  • Akimbo Bronco .44 Revolvers - x_rage
  • Akimbo White Streak Pistols - x_pl14
  • Akimbo Baby Deagle Pistols - x_sparrow
  • Akimbo M13 9mm Pistols - x_legacy
  • Akimbo Broomstick Pistols - x_c96
  • Akimbo Crosskill Chunky Compact Pistols - x_m1911
  • Akimbo Kang Arms Model 54 Pistols - x_type54
  • Akimbo Gecko M2 Pistols - x_maxim9
  • Akimbo Parabellum Pistols - x_breach
  • Akimbo Castigo .44 Revolvers - x_chinchilla
  • Akimbo Frenchman Model 87 Revolvers - x_model3
  • Akimbo Crosskill Guard Pistols - x_shrew
  • Akimbo LEO Pistols - x_hs2000
  • Akimbo STRYK 18c Pistols - x_g18c
  • Akimbo Bernetti Auto Pistols - x_beer
  • Akimbo Czech 92 Pistols - x_czech
  • Akimbo Igor Automatik Pistols - x_stech
  • Akimbo Holt 9mm Pistols - x_holt
  • Akimbo Kahn .357 Revolvers - x_korth
  • Akimbo Matever .357 Revolvers - x_2006m

Akimbo SMG's
  • Akimbo Krinkov Submachine Guns - x_akmsu
  • Akimbo Swedish K Submachine Guns - x_m45
  • Akimbo Compact-5 Submachine Guns - x_mp5
  • Akimbo SpecOps Submachine Guns - x_mp7
  • Akimbo Heather Submachine Guns - x_sr2
  • Akimbo CR 805B Submachine Guns - x_hajk
  • Akimbo Mark 10 Submachine Guns - x_mac10
  • Akimbo Jacket's Piece - x_cobray
  • Akimbo Chicago Typewriter SMGs - x_m1928
  • Akimbo Miyaka 10 Special SMGs - x_pm9
  • Akimbo Cobra Submachine Guns - x_scorpion
  • Akimbo Micro Uzi Submachine Guns - x_baka
  • Akimbo CMP Submachine Guns - x_mp9
  • Akimbo Para Submachine Guns - x_olympic
  • Akimbo Jackal Submachine Guns - x_schakal
  • Akimbo Signature Submachine Guns - x_shepheard
  • Akimbo AK Gen 21 Tactical SMGs - x_vityaz
  • Akimbo MP40 Submachine Guns - x_erma
  • Akimbo Blaster 9mm Submachine Guns - x_tec9
  • Akimbo Kobus 90 Submachine Guns - x_p90
  • Akimbo Kross Vertex Submachine Guns - x_polymer
  • Akimbo Tatonka Submachine Guns - x_coal
  • Akimbo Patchett L2A1 Submachine Guns - x_sterling
  • Akimbo Uzi Submachine Guns - x_uzi

Akimbo Shotguns
  • Akimbo Goliath 12G Shotguns - x_rota
  • Akimbo VD-12 Shotguns - x_sko12
  • Akimbo Grimm 12G Shotguns - x_basset
  • Akimbo Judge Shotguns - x_judge

Melee
Melee is basically the same as the other weapons. The only thing you look for is damage, knockdown , range, and delay. Here is the link used to get the folder to use LMAO[drive.google.com]
  • Damage - This stat is seen as "min_damage" and "max_damage". Pretty simple stuff, just know that any number you put will be multiplied by 10. Example - "min_damage = 30" would make the damage in game 300.
  • Knockdown - This stat is seen as "min_damage_effect" and "max_damage_effect". It's basically the same as the damage where the number is multiplied by 10
  • Range - This stat is seen as "range". Really that's it; there is no special number multiplier for this stat, so putting the range as 250, will make it 250.
  • Delay - This part is a bit more complicated as the number needs to be tested with the weapon you plan to use. For an easy way, just put your game to windowed mode (borderless or windowed works) and change the stats, restart the safe house and repeat until you find what you want. The weapon's animation must tie close to the number you put. Example - The Chain Whip weapon takes roughly 3.5 seconds for the full animation to go through until you can swing again. The hit registers around 1.2 seconds of the animation. So when imputing the code, you would look for " .expire_t = #" and " .repeat_expire_t = #" You can also change charge time with the code charge_time. I only put that here because both values are affected by time (mainly in seconds.)
  • Poison - This is one of the only effects I got working properly and the format is a little weird. To format it properly with the code below, you will make sure the effect is in its own little bubble as it will not work if it is combined with the visible stats. I personally label which weapon is which with green text, but you can do it how you want.

    EX: --Wing Butterfly Knife
    self.melee_weapons.wing.dot_data = {
    type = "poison",
    custom_data = {dot_damage = 90, dot_length = 5, hurt_animation_chance = 5}
    }

My Rebalance folder that I use in case you have trouble making your own
https://drive.google.com/file/d/19CWZ-LjJxOcMm5ZFyLaosoQR_HZuqCMc/view?usp=sharing
233 Comments
a stone Apr 16 @ 10:44pm 
Appreciate the guide! I wanted to recreate the sociopath overkill weapon from pd3 and it worked. Again i appreciate the guide!
Mr.Demolid Apr 5 @ 5:23pm 
U basically saved 98283848 hs of search. Tnks, bro
Mr.Demolid Apr 3 @ 5:33pm 
cant find the lua files
BNCW Dec 22, 2024 @ 12:20pm 
im editing the stats of a custom gun i downloaded, your guide has helped alot with configuring its capabilities, however, im unable to find "AMMO_MAX" (i used ctrl + f).
<HEC> Buffalo Baggins Dec 8, 2024 @ 1:35pm 
Your image shows the file inside "mod_overrides", but your rebalance mod only shows up if I put it in my "mods" folder
spheresofmadness Oct 1, 2024 @ 12:00pm 
kingblu does the mod.txt hook file name match the name of the lua file you have that code in? i made that mistake and it took me an hour to realize and fix it. by the way make sure you dont leave any line of code piece like "self" as "elf" due to a typo, itll crash the game upon startup
KingBluYoshi Jul 9, 2024 @ 2:30pm 
yea idk whats going on but ive changed the values, verified files, used your files and nothing is working.
KingBluYoshi Jul 8, 2024 @ 10:05pm 
i verified my cache and used your folder and still nothing worked
KingBluYoshi Jul 8, 2024 @ 9:29pm 
im gonna verify my game cache
SniperVeil  [author] Jul 8, 2024 @ 9:26pm 
It's weird because the code is correct and even when I try it, it works. Try using the Rebalance folder I provided and adjusting the numbers that way and see if the problem still occurs