Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Payday 2 Lua scripts

By: TotalWar on Sep 5th, 2013  |  syntax: None  |  size: 4.53 KB  |  hits: 137  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. More Script - http://www.mediafire.com/download/7707c2tmgsdw0sv
  2.  
  3. xoxo - Rabrg
  4.  
  5. -- player instance
  6. local player = managers.player:player_unit()
  7.  
  8. -- money and level
  9. managers.experience:_set_current_level (100)
  10. managers.skilltree:_set_points(9999)
  11. managers.money:_add_to_total(99999999999)
  12.  
  13. -- debug menu
  14. if managers.menu then
  15.         managers.menu:set_debug_menu_enabled(true)
  16. end
  17.  
  18. -- weapon accessories, colour palettes, mask vinyls
  19. for i=1, 7 do
  20.         managers.lootdrop:debug_drop( 1000, true, i )
  21. end
  22. game_state_machine:change_state_by_name( "victoryscreen", { num_winners = 2, personal_win = alive( managers.player:player_unit() ) } )
  23.  
  24. -- exp
  25. managers.experience:debug_add_points( 2500, false )
  26.  
  27. -- end mission
  28. game_state_machine:change_state_by_name( "victoryscreen", { num_winners = 2, personal_win = alive( managers.player:player_unit() ) } )
  29.  
  30. -- give money (around 1,000,000)
  31. managers.money:debug_job_completed( 3 )
  32.  
  33. -- add weapon
  34. local player = managers.player:player_unit()
  35. if player then
  36.         player:inventory():add_unit_by_name( Idstring("units/weapons/mp5/mp5"), false )
  37.         player:inventory():add_unit_by_name( Idstring("units/weapons/r870_shotgun/r870_shotgun"), false )
  38. end
  39.  
  40. --steam achievement
  41. if managers.achievment then
  42.         for id,_ in pairs(managers.achievment.achievments) do
  43.                 managers.achievment:award(id)
  44.         end
  45. end
  46.  
  47. -- unlock all weapons
  48. local wep_arr = {
  49.         'new_m4',
  50.         'glock_17',
  51.         'mp9',
  52.         'r870',
  53.         'glock_18c',
  54.         'amcar',
  55.         'm16',
  56.         'olympic',
  57.         'ak74',
  58.         'akm',
  59.         'akmsu',
  60.         'saiga',
  61.         'ak5',
  62.         'aug',
  63.         'g36',
  64.         'p90',
  65.         'new_m14',
  66.         'deagle',
  67.         'new_mp5',
  68.         'colt_1911',
  69.         'mac10',
  70.         'serbu',
  71.         'huntsman',
  72.         'b92fs',
  73.         'new_raging_bull',
  74.         'saw'
  75. }
  76.  
  77. for i, name in ipairs(wep_arr) do
  78.         if not managers.upgrades:aquired(name) then
  79.                 managers.upgrades:aquire(name)
  80.         end
  81. end
  82.  
  83. -- add c4
  84. managers.player:add_special( { name = "c4" } )
  85.  
  86. -- teleport player
  87. function GameState:freeflight_drop_player( pos, rot )
  88.         if( managers.player ) then
  89.                 managers.player:warp_to( pos, rot )
  90.         end
  91. end
  92.  
  93. -- invulnerable
  94. local player = managers.player:player_unit()
  95. player:character_damage():set_invulnerable( true )
  96.  
  97. -- ammo and health
  98. local player = managers.player:player_unit()
  99. if alive(player) then
  100.         player:base():replenish()
  101. end
  102.  
  103. -- ammo
  104. local player = managers.player:player_unit()
  105. player:inventory():set_ammo( 1.0 )
  106.  
  107. -- gold and santa mask
  108. managers.network.account._masks["santa"] = true
  109. managers.network.account._masks["gold"] = true
  110.  
  111. -- unlock all masks
  112. managers.blackmarket:_setup_masks()
  113. for mask_id,_ in pairs(tweak_data.blackmarket.masks) do
  114.         Global.blackmarket_manager.masks[mask_id].unlocked = true
  115.         managers.blackmarket:add_to_inventory("normal", "masks", mask_id, false)
  116. end
  117.  
  118. -- manager booleans
  119. NewRaycastWeaponBase._get_spread = function(self) return 0 end
  120. NewRaycastWeaponBase.recoil_multiplier = function(self) return 0 end
  121. NewRaycastWeaponBase.fire_rate_multiplier = function(self) return 99999999 end
  122. NewRaycastWeaponBase.damage_multiplier = function(self) return 99999999 end
  123.  
  124. PlayerStandard._get_walk_headbob = function(self) return 0 end
  125. PlayerStandard._can_stand = function(self) return true end
  126. PlayerManager.remove_equipment = function(self, equipment_id) end
  127. PlayerInventory.remove_selection = function(self, selection_index, instant) end
  128. PlayerManager.selected_equipment_deploy_timer = function(self) return 0 end
  129. PlayerManager.chk_minion_limit_reached = function(self) return false end
  130. PlayerManager.spread_multiplier = function(self) return 0 end
  131. PlayerMovement.is_stamina_drained = function(self) return false end
  132. PlayerStandard._can_run_directional = function(self) return true end
  133.  
  134. BaseInteractionExt._has_required_upgrade = function(self) return true end
  135. BaseInteractionExt._has_required_deployable = function(self) return true end
  136. BaseInteractionExt._get_timer = function(self) return 0 end
  137. BaseInteractionExt.can_interact = function(self, player) return true end
  138.  
  139. -- super jump
  140. PlayerStandard._perform_jump = function(self, jump_vec)
  141.         local v = math.UP * 470
  142.         if self._running then
  143.                 v = math.UP * 2000
  144.         end
  145.         self._unit:mover():set_velocity( v )
  146. end
  147.  
  148. -- everything but weapons
  149. for i=1, 7 do
  150.         managers.lootdrop:debug_drop( 1000, true, i )
  151. end
  152.  
  153. -- weapon mods
  154. for mod_id,_ in pairs(tweak_data.blackmarket.weapon_mods) do
  155.         tweak_data.blackmarket.weapon_mods[ mod_id ].unlocked = true
  156.         managers.blackmarket:add_to_inventory("normal", "weapon_mods", mod_id, false)
  157. end
  158.  
  159. -- player armour
  160. PlayerDamage.get_real_armor = function(self)
  161.         return Application:digest_value( 100, false )
  162. end