Advertisement
BigSky7

PAYDAY 2: Disable Rifleman's zoom bonus

Aug 25th, 2019
542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.83 KB | None | 0 0
  1. ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
  2. File: mod.txt
  3.  
  4. {
  5.     "name" : "Disable Rifleman's zoom bonus",
  6.     "description" : "",
  7.     "author" : "Big Sky.",
  8.     "contact" : "-",
  9.     "version" : "2.0",
  10.     "blt_version" : 2.0,
  11.     "hooks" : [
  12.         {
  13.             "hook_id" : "lib/tweak_data/skilltreetweakdata",
  14.             "script_path" : "rifleman_zoom_removal.lua"
  15.         }
  16.     ]
  17. }
  18. ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
  19. File: rifleman_zoom_removal.lua
  20.  
  21. local old_init = SkillTreeTweakData.init
  22.  
  23. function SkillTreeTweakData:init()
  24.  
  25.     old_init(self)
  26.  
  27.     self.skills.rifleman[2].upgrades = {
  28.         "assault_rifle_move_spread_index_addend",
  29.         "snp_move_spread_index_addend",
  30.         "smg_move_spread_index_addend"
  31.     }
  32.  
  33. end
  34. ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement