Advertisement
SirGoodsmoke

AUTOLOOT v2.1b

Jul 2nd, 2014
673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 117.45 KB | None | 0 0
  1. ---------------------------------------------
  2. ------- AUTO LOOT SPAWN v2.1b ---------------
  3. ------- By: SirGoodsmoke and Hejoro ---------
  4. ------- Inspired By: PierreDjays ------------
  5. ------- Interaction Fix: Hejoro, LazyOzzy ---
  6. ------- Helped/Added Positions: Maelform ----
  7. ---------------------------------------------
  8. -- INGAME CHECK
  9. function inGame()
  10.     if not game_state_machine then return false end
  11.     return string.find(game_state_machine:current_state_name(), "game")
  12. end
  13.  
  14. -- IS PLAYING CHECK
  15. function isPlaying()
  16.     if not BaseNetworkHandler then return false end
  17.     return BaseNetworkHandler._gamestate_filter.any_ingame_playing[ game_state_machine:last_queued_state_name() ]
  18. end
  19.  
  20. -- HOST CHECK
  21. function isHost()
  22.     if not Network then return false end
  23.     return not Network:is_client()
  24. end
  25.  
  26. -- SHOW CHATMSG
  27. function ChatMessage(username, message)
  28.     if not managers or not managers.chat or not message then return end
  29.     if not username then username = managers.network.account:username() end
  30.     managers.chat:receive_message_by_name(1, username, message)
  31. end
  32. --------------------------
  33. ---- SPAWN FUNCTIONS -----
  34. --------------------------
  35. randrot = randrot or function()
  36.     local rr = math.random(-360,360)
  37.     local rot = Rotation(rr)
  38.     return rot
  39. end
  40. bank = bank or function()
  41.     local id_brandomloot = {
  42.         Idstring("units/payday2/props/gen_prop_bank_atm_standing/gen_prop_bank_atm_standing"),
  43.         false, false
  44.     }
  45.    
  46.     local rand = id_brandomloot[math.random(#id_brandomloot)]
  47.    
  48.     local randloot = math.random(3)
  49.     if randloot == 1 then local spawns = {
  50.         World:spawn_unit( Idstring(
  51.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  52.         Vector3(-2331, 717, 119.499) ),
  53.  
  54.         World:spawn_unit( Idstring(
  55.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  56.         Vector3(-2331, 728, 119.499) ),
  57.  
  58.         World:spawn_unit( Idstring(
  59.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  60.         Vector3(-2331, 750, 119.499) ),
  61.  
  62.         World:spawn_unit( Idstring(
  63.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  64.         Vector3(-2331, 761, 119.499) ),
  65.  
  66.         World:spawn_unit( Idstring(
  67.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  68.         Vector3(-2331, 761, 123.450) ),
  69.  
  70.         World:spawn_unit( Idstring(
  71.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  72.         Vector3(-2331, 761, 127.999) ),
  73.  
  74.         World:spawn_unit( Idstring(
  75.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  76.         Vector3(-2331, 772, 119.499) ),
  77.  
  78.         World:spawn_unit( Idstring(
  79.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  80.         Vector3(-2331, 783, 119.499) ),
  81.  
  82.         World:spawn_unit( Idstring(
  83.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  84.         Vector3(-2331, 783, 123.520) ),
  85.  
  86.         World:spawn_unit( Idstring(
  87.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  88.         Vector3(-2331, 783, 127.999) ),
  89.  
  90.         World:spawn_unit( Idstring(
  91.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  92.         Vector3(-2331, 783, 131.999) ),
  93.  
  94.         World:spawn_unit( Idstring(
  95.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  96.         Vector3(-2331, 794, 119.499) ),
  97.  
  98.         World:spawn_unit( Idstring(
  99.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  100.         Vector3(-257.969, 2713.74, 75.0786) )
  101.     }
  102.     for k,v in pairs(spawns) do v:interaction():set_active(true,true) end end
  103.    
  104.     if randloot == 2 then local spawns = {
  105.         World:spawn_unit( Idstring(
  106.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  107.         Vector3(-2331, 717, 119.499) ),
  108.  
  109.         World:spawn_unit( Idstring(
  110.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  111.         Vector3(-2331, 728, 119.499) ),
  112.  
  113.         World:spawn_unit( Idstring(
  114.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  115.         Vector3(-2331, 750, 119.499) ),
  116.  
  117.         World:spawn_unit( Idstring(
  118.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  119.         Vector3(-2331, 761, 119.499) )
  120.     }
  121.     for k,v in pairs(spawns) do v:interaction():set_active(true,true) end end
  122.    
  123.     if randloot == 3 then local spawns = {
  124.         World:spawn_unit( Idstring(
  125.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  126.         Vector3(-2331, 717, 119.499) ),
  127.  
  128.         World:spawn_unit( Idstring(
  129.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  130.         Vector3(-2331, 728, 119.499) ),    
  131.        
  132.         World:spawn_unit( Idstring(
  133.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  134.         Vector3(-2331, 728, 123.499) ),    
  135.        
  136.         World:spawn_unit( Idstring(
  137.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  138.         Vector3(-2331, 728, 127.499) ),    
  139.        
  140.         World:spawn_unit( Idstring(
  141.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  142.         Vector3(-2331, 728, 131.499) ),    
  143.        
  144.         World:spawn_unit( Idstring(
  145.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  146.         Vector3(-2331, 728, 135.499) ),
  147.  
  148.         World:spawn_unit( Idstring(
  149.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  150.         Vector3(-2331, 739, 119.499) ),    
  151.        
  152.         World:spawn_unit( Idstring(
  153.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  154.         Vector3(-2331, 750, 119.499) ),    
  155.        
  156.         World:spawn_unit( Idstring(
  157.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  158.         Vector3(-2331, 750, 123.499) ),
  159.        
  160.         World:spawn_unit( Idstring(
  161.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  162.         Vector3(-2331, 761, 119.499) ),
  163.  
  164.         World:spawn_unit( Idstring(
  165.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  166.         Vector3(-2331, 761, 123.450) ),
  167.  
  168.         World:spawn_unit( Idstring(
  169.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  170.         Vector3(-2331, 761, 127.999) ),
  171.        
  172.         World:spawn_unit( Idstring(
  173.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  174.         Vector3(-2331, 761, 131.999) ),
  175.  
  176.         World:spawn_unit( Idstring(
  177.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  178.         Vector3(-2331, 772, 119.499) ),
  179.  
  180.         World:spawn_unit( Idstring(
  181.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  182.         Vector3(-2331, 783, 119.499) ),
  183.  
  184.         World:spawn_unit( Idstring(
  185.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  186.         Vector3(-2331, 783, 123.520) ),
  187.  
  188.         World:spawn_unit( Idstring(
  189.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  190.         Vector3(-2331, 783, 127.999) ),
  191.  
  192.         World:spawn_unit( Idstring(
  193.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  194.         Vector3(-2331, 783, 131.999) ),    
  195.        
  196.         World:spawn_unit( Idstring(
  197.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  198.         Vector3(-2331, 783, 135.999) ),
  199.  
  200.         World:spawn_unit( Idstring(
  201.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  202.         Vector3(-2331, 794, 119.499) ),    
  203.        
  204.         World:spawn_unit( Idstring(
  205.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  206.         Vector3(-2331, 794, 123.499) ),
  207.        
  208.         World:spawn_unit( Idstring(
  209.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  210.         Vector3(-2331, 794, 127.499) ),
  211.  
  212.         World:spawn_unit( Idstring(
  213.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  214.         Vector3(-257.969, 2713.74, 75.0786) )      
  215.     }
  216.     for k,v in pairs(spawns) do v:interaction():set_active(true,true) end end
  217.    
  218.     local objects = {
  219.         rand and World:spawn_unit( rand,
  220.         Vector3(-1965, 49, 0), Rotation(-90) )
  221.     }
  222.     for k,v in pairs(objects) do if v then v:base():activate() end end
  223. end
  224.  
  225. diamondstore = diamondstore or function()
  226.     local id_dsrandomloot = {
  227.         Idstring("units/payday2/props/gen_prop_bank_atm_standing/gen_prop_bank_atm_standing"),
  228.         false, false
  229.     }
  230.     local id_dsrandomloot1 = {
  231.         Idstring("units/payday2/equipment/gen_interactable_sec_safe_05x05_titan/gen_interactable_sec_safe_05x05_titan"),
  232.         false, false
  233.     }
  234.     local rand = id_dsrandomloot[math.random(#id_dsrandomloot)]
  235.     local rand1 = id_dsrandomloot[math.random(#id_dsrandomloot)]
  236.     local rand2 = id_dsrandomloot[math.random(#id_dsrandomloot)]
  237.     local rand4 = id_dsrandomloot1[math.random(#id_dsrandomloot1)]
  238.     local rand5 = id_dsrandomloot1[math.random(#id_dsrandomloot1)]
  239.  
  240.     local spawns = {
  241.         World:spawn_unit( Idstring(
  242.         "units/payday2/props/com_prop_store_cashregister_low/item_money_bundle" ),
  243.         Vector3(1727.56, -972.974, 482.00), randrot()),
  244.  
  245.         World:spawn_unit( Idstring(
  246.         "units/payday2/props/com_prop_store_cashregister_low/item_money_bundle" ),
  247.         Vector3(1275.75, -1095.61, 477), Rotation(46) ),
  248.  
  249.         World:spawn_unit( Idstring(
  250.         "units/payday2/props/com_prop_store_cashregister_low/item_money_bundle" ),
  251.         Vector3(1269.04, -1087.36, 477), Rotation(46) ),
  252.  
  253.         World:spawn_unit( Idstring(
  254.         "units/payday2/props/com_prop_store_cashregister_low/item_money_bundle" ),
  255.         Vector3(1260.04, -1081.36, 477), Rotation(46) ),
  256.  
  257.         World:spawn_unit( Idstring(
  258.         "units/payday2/props/com_prop_store_cashregister_low/item_money_bundle" ),
  259.         Vector3(1665.36, -1036.66, 480.46), randrot() ),
  260.  
  261.         World:spawn_unit( Idstring(
  262.         "units/payday2/props/com_prop_store_cashbox/com_prop_store_cashbox" ),
  263.         Vector3(1817, -2552, 69), Rotation(103) ),
  264.  
  265.     }
  266.     for k,v in pairs(spawns) do v:interaction():set_active(true,true) end
  267.  
  268.     local objects = {
  269.         rand and World:spawn_unit( rand,
  270.         Vector3(447, -2686, 0), Rotation(-90) ),
  271.  
  272.         rand1 and World:spawn_unit( rand1,
  273.         Vector3(447, 367, 0), Rotation(-90) ),
  274.  
  275.         rand2 and World:spawn_unit( rand2,
  276.         Vector3(2354, -3219, 0), Rotation(90) )
  277.     }
  278.     for k,v in pairs(objects) do if v then v:base():activate() end end
  279.  
  280.     autoloot_containers = {}
  281.     local randcontents = math.random(2)
  282.         if rand4 and randcontents == 1 then table.insert(autoloot_containers, {
  283.         { World:spawn_unit( rand4,
  284.         Vector3(1600, -1149, 500), Rotation(360) ),
  285.             "door_opened"
  286.         },
  287.         'local unit = World:spawn_unit( Idstring('
  288.         .. '"units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_special_money" ),'
  289.         .. 'Vector3(1570, -1174, 508), Rotation(90) )'
  290.         .. 'unit:interaction():set_active(true, true)',
  291.     }) end
  292.         if rand4 and randcontents == 2 then table.insert(autoloot_containers, {
  293.         { World:spawn_unit( rand4,
  294.         Vector3(1600, -1149, 500), Rotation(360) ),
  295.             "door_opened"
  296.         },
  297.     }) end
  298.     if rand5 then table.insert(autoloot_containers, {
  299.         { World:spawn_unit( rand5,
  300.         Vector3(1475, -1012, 500), Rotation(180) ),
  301.             "door_opened"
  302.         },
  303.         'local unit = World:spawn_unit( Idstring('
  304.         .. '"units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_special_money" ),'
  305.         .. 'Vector3(1505, -989, 508), Rotation(-90) )'
  306.         .. 'unit:interaction():set_active(true, true)',
  307.     }) end
  308.     for k,v in ipairs(autoloot_containers) do if v then v[1][1]:base():activate() end end
  309. end
  310.  
  311. gobank = gobank or function()
  312.     local id_gbrandomloot = {
  313.         Idstring("units/payday2/props/gen_prop_bank_atm_standing/gen_prop_bank_atm_standing"),
  314.         false
  315.     }
  316.     local rand = id_gbrandomloot[math.random(#id_gbrandomloot)]
  317.     local rand1 = id_gbrandomloot[math.random(#id_gbrandomloot)]
  318.     local spawns = {
  319.         World:spawn_unit( Idstring(
  320.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  321.         Vector3(-1086, -1481, 38.1733), Rotation(90) ),
  322.  
  323.         World:spawn_unit( Idstring(
  324.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  325.         Vector3(-1086, -1481, 42.1733), Rotation(90) ),
  326.  
  327.         World:spawn_unit( Idstring(
  328.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  329.         Vector3(-1086, -1481, 46.1733), Rotation(90) ),
  330.  
  331.         World:spawn_unit( Idstring(
  332.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  333.         Vector3(-1086, -1481, 50.1733), Rotation(90) ),
  334.  
  335.         World:spawn_unit( Idstring(
  336.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  337.         Vector3(-1086, -1481, 54.1733), Rotation(90) ),
  338.  
  339.         World:spawn_unit( Idstring(
  340.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  341.         Vector3(-1073, -1481, 38.1733), Rotation(90) ),
  342.  
  343.         World:spawn_unit( Idstring(
  344.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  345.         Vector3(-1073, -1481, 42.1733), Rotation(90) ),
  346.  
  347.         World:spawn_unit( Idstring(
  348.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  349.         Vector3(-690, -1481, 38.1733), Rotation(90) ),
  350.  
  351.         World:spawn_unit( Idstring(
  352.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  353.         Vector3(-690, -1481, 42.1733), Rotation(90) ),
  354.  
  355.         World:spawn_unit( Idstring(
  356.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  357.         Vector3(-690, -1481, 46.1733), Rotation(90) ),
  358.  
  359.         World:spawn_unit( Idstring(
  360.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  361.         Vector3(-676, -1481, 38.1733), Rotation(90) ),
  362.  
  363.         World:spawn_unit( Idstring(
  364.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  365.         Vector3(-676, -1481, 42.1733), Rotation(90) ),
  366.  
  367.         World:spawn_unit( Idstring(
  368.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  369.         Vector3(-676, -1481, 46.1733), Rotation(90) ),
  370.  
  371.         World:spawn_unit( Idstring(
  372.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  373.         Vector3(-676, -1481, 50.1733), Rotation(90) ),
  374.  
  375.         World:spawn_unit( Idstring(
  376.         "units/payday2/props/com_prop_store_cashregister_low/com_prop_store_cashregister_low" ),
  377.         Vector3(-859.464, 1625.68, 42), Rotation(186.5) ),
  378.  
  379.         World:spawn_unit( Idstring(
  380.         "units/payday2/props/com_prop_store_cashregister_low/com_prop_store_cashregister_low" ),
  381.         Vector3(-35, -3894, 36), Rotation(180) ),
  382.  
  383.         World:spawn_unit( Idstring(
  384.         "units/payday2/props/com_prop_store_cashregister_low/com_prop_store_cashregister_low" ),
  385.         Vector3(-362, -4053, 36), Rotation(90) ),
  386.  
  387.         World:spawn_unit( Idstring(
  388.         "units/payday2/props/com_prop_store_cashregister_low/com_prop_store_cashregister_low" ),
  389.         Vector3(3654, -237, 40), Rotation(-90) ),
  390.  
  391.         World:spawn_unit( Idstring(
  392.         "units/payday2/props/com_prop_store_cashregister_low/com_prop_store_cashregister_low" ),
  393.         Vector3(3853, -237, 40), Rotation(-90) )
  394.     }
  395.     for k,v in pairs(spawns) do v:interaction():set_active(true,true) end
  396.  
  397.     local objects = {
  398.         rand and World:spawn_unit( rand,
  399.         Vector3(3571, 196, -66), Rotation(90) ),
  400.  
  401.         rand1 and World:spawn_unit( rand1,
  402.         Vector3(64, -5195, -71.1), Rotation(-90) ),
  403.     }
  404.     for k,v in pairs(objects) do if v then v:base():activate() end end
  405. end
  406.  
  407. firestarterd2 = firestarterd2 or function()
  408.     local id_fsd2randomloot = {
  409.         Idstring("units/payday2/pickups/gen_pku_cocaine/gen_pku_cocaine"),
  410.         Idstring("units/payday2/pickups/gen_pku_money/gen_pku_money"),
  411.         false, false
  412.     }
  413.     local id_fsd2randomloot1 = {
  414.         Idstring("units/payday2/equipment/gen_interactable_weapon_case_2x1/gen_interactable_weapon_case_2x1"),
  415.         false
  416.     }
  417.     local id_fsd2randomloot2 = {
  418.         Idstring("units/payday2/pickups/gen_pku_gold/gen_pku_gold"),
  419.         false, false, false
  420.     }
  421.     local fsd2pos1 = {Vector3(50, -326, 156), Vector3(50, -326, 0)}
  422.     local rand1 = id_fsd2randomloot[math.random(#id_fsd2randomloot)]
  423.     local rand2 = id_fsd2randomloot[math.random(#id_fsd2randomloot)]
  424.     local rand3 = id_fsd2randomloot[math.random(#id_fsd2randomloot)]
  425.     local rand4 = id_fsd2randomloot[math.random(#id_fsd2randomloot)]
  426.     local rand5 = id_fsd2randomloot[math.random(#id_fsd2randomloot)]
  427.     local rand6 = id_fsd2randomloot1[math.random(#id_fsd2randomloot1)]
  428.     local rand7 = id_fsd2randomloot1[math.random(#id_fsd2randomloot1)]
  429.     local rand8 = id_fsd2randomloot2[math.random(#id_fsd2randomloot2)]
  430.     local spawns = {
  431.         rand6 and World:spawn_unit( rand6,
  432.         Vector3(50, -130, 48) ),
  433.  
  434.         rand7 and World:spawn_unit( rand7,
  435.         Vector3(50, -130, 102) ),
  436.  
  437.         rand1 and World:spawn_unit( rand1,
  438.         fsd2pos1[math.random(1,2)], Rotation(-90) ),
  439.  
  440.         rand2 and World:spawn_unit( rand2,
  441.         Vector3(50, -426, 156), Rotation(-90) ),
  442.  
  443.         rand3 and World:spawn_unit( rand3,
  444.         Vector3(400, -397, 156) ),
  445.  
  446.         rand4 and World:spawn_unit( rand4,
  447.         Vector3(400, -302, 156) ),
  448.  
  449.         rand5 and World:spawn_unit( rand5,
  450.         Vector3(400, -302, 0), Rotation(-90) ),
  451.  
  452.         rand8 and World:spawn_unit( rand8,
  453.         Vector3(400, -217, 14), Rotation(-170) )
  454.     }
  455.     for k,v in pairs(spawns) do if v then v:interaction():set_active(true,true) end end
  456. end
  457.  
  458. ratsday2 = ratsday2 or function()
  459.     local id_rd2randomloot = {
  460.         Idstring("units/payday2/pickups/gen_pku_money/gen_pku_money"),
  461.         false
  462.     }
  463.     local id_rd2randomloot1 = {
  464.         Idstring("units/payday2/equipment/gen_interactable_sec_safe_1x1/gen_interactable_sec_safe_1x1"),
  465.         false, false
  466.     }
  467.     local rand = id_rd2randomloot[math.random(#id_rd2randomloot)]
  468.     local rand1 = id_rd2randomloot[math.random(#id_rd2randomloot)]
  469.     local rand2 = id_rd2randomloot[math.random(#id_rd2randomloot)]
  470.     local rand3 = id_rd2randomloot1[math.random(#id_rd2randomloot1)]
  471.     local spawns = {
  472.         rand and World:spawn_unit( rand,
  473.         Vector3(2124.36, 721.045, 71.4853), randrot() ),
  474.  
  475.         rand1 and World:spawn_unit( rand1,
  476.         Vector3(555.447, 2171.96, 120.5), Rotation(90) ),
  477.  
  478.         rand2 and World:spawn_unit( rand2,
  479.         Vector3(710.592, 1700.15, 19.5101) )
  480.     }
  481.     for k,v in pairs(spawns) do if v then v:interaction():set_active(true,true) end end
  482.  
  483.     autoloot_containers = {}
  484.     local randcontents = math.random(3)
  485.     if rand3 and randcontents == 1 then table.insert(autoloot_containers, {
  486.         { World:spawn_unit( rand3,
  487.         Vector3(2470, 2297, 0), Rotation(360) ),
  488.             "door_opened",
  489.             "interact"
  490.         },
  491.         'local unit = World:spawn_unit( Idstring('
  492.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  493.         .. 'Vector3(2432, 2227, 7), Rotation(-90) )'
  494.         .. 'unit:interaction():set_active(true, true)',
  495.  
  496.         'local unit = World:spawn_unit( Idstring('
  497.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  498.         .. 'Vector3(2432, 2268, 7), Rotation(-90) )'
  499.         .. 'unit:interaction():set_active(true, true)',
  500.  
  501.         'local unit = World:spawn_unit( Idstring('
  502.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  503.         .. 'Vector3(2425, 2227, 49), Rotation(-90) )'
  504.         .. 'unit:interaction():set_active(true, true)',
  505.  
  506.         'local unit = World:spawn_unit( Idstring('
  507.         .. '"units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_value_a" ),'
  508.         .. 'Vector3(2435, 2257, 49), Rotation(180) )'
  509.         .. 'unit:interaction():set_active(true, true)',
  510.  
  511.         'local unit = World:spawn_unit( Idstring('
  512.         .. '"units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_value_a" ),'
  513.         .. 'Vector3(2435, 2267, 49), Rotation(180) )'
  514.         .. 'unit:interaction():set_active(true, true)',
  515.  
  516.         'local unit = World:spawn_unit( Idstring('
  517.         .. '"units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_value_a" ),'
  518.         .. 'Vector3(2435, 2277, 49), Rotation(180) )'
  519.         .. 'unit:interaction():set_active(true, true)',
  520.     }) end
  521.         if rand3 and randcontents == 2 then table.insert(autoloot_containers, {
  522.         { World:spawn_unit( rand3,
  523.         Vector3(2470, 2297, 0), Rotation(360) ),
  524.             "door_opened",
  525.             "interact"
  526.         },
  527.         'local unit = World:spawn_unit( Idstring('
  528.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  529.         .. 'Vector3(2432, 2227, 7), Rotation(-90) )'
  530.         .. 'unit:interaction():set_active(true, true)',
  531.  
  532.         'local unit = World:spawn_unit( Idstring('
  533.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  534.         .. 'Vector3(2432, 2268, 7), Rotation(-90) )'
  535.         .. 'unit:interaction():set_active(true, true)',
  536.     }) end
  537.         if rand3 and randcontents == 3 then table.insert(autoloot_containers, {
  538.         { World:spawn_unit( rand3,
  539.         Vector3(2470, 2297, 0), Rotation(360) ),
  540.             "door_opened",
  541.             "interact"
  542.         },
  543.         'local unit = World:spawn_unit( Idstring('
  544.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  545.         .. 'Vector3(2425, 2227, 49), Rotation(-90) )'
  546.         .. 'unit:interaction():set_active(true, true)',
  547.  
  548.         'local unit = World:spawn_unit( Idstring('
  549.         .. '"units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_value_a" ),'
  550.         .. 'Vector3(2435, 2257, 49), Rotation(180) )'
  551.         .. 'unit:interaction():set_active(true, true)',
  552.  
  553.         'local unit = World:spawn_unit( Idstring('
  554.         .. '"units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_value_a" ),'
  555.         .. 'Vector3(2435, 2267, 49), Rotation(180) )'
  556.         .. 'unit:interaction():set_active(true, true)',
  557.  
  558.         'local unit = World:spawn_unit( Idstring('
  559.         .. '"units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_value_a" ),'
  560.         .. 'Vector3(2435, 2277, 49), Rotation(180) )'
  561.         .. 'unit:interaction():set_active(true, true)',
  562.     }) end
  563.     for k,v in ipairs(autoloot_containers) do if v then v[1][1]:base():activate() end end
  564. end
  565.  
  566. ratsday3 = ratsday3 or function()
  567.     local spawns = {
  568.         World:spawn_unit( Idstring(
  569.         "units/payday2/pickups/gen_pku_money_luggage/gen_pku_money_luggage"),
  570.         Vector3(10899.1, 23901, 2065.99), Rotation(-90) ),
  571.  
  572.         World:spawn_unit( Idstring(
  573.         "units/payday2/pickups/gen_pku_money_luggage/gen_pku_luggage_money_pile"),
  574.         Vector3(10899.1, 23901, 2065.99), Rotation(-90) ),
  575.  
  576.         World:spawn_unit( Idstring(
  577.         "units/payday2/pickups/gen_pku_money_luggage/gen_pku_money_luggage"),
  578.         Vector3(10899.1, 23747, 2065.99), Rotation(90) ),
  579.  
  580.         World:spawn_unit( Idstring(
  581.         "units/payday2/pickups/gen_pku_money_luggage/gen_pku_luggage_money_pile"),
  582.         Vector3(10899.1, 23747, 2065.99), Rotation(90) ),
  583.  
  584.         World:spawn_unit( Idstring(
  585.         "units/payday2/pickups/gen_pku_money_luggage/gen_pku_money_luggage"),
  586.         Vector3(10810.9, 23746, 2063.26), Rotation(90) ),
  587.  
  588.         World:spawn_unit( Idstring(
  589.         "units/payday2/pickups/gen_pku_money_luggage/gen_pku_luggage_money_pile"),
  590.         Vector3(10810.9, 23746, 2063.26), Rotation(90) )
  591.     }
  592.     for k,v in pairs(spawns) do v:interaction():set_active(true,true) end
  593. end
  594.  
  595. fourstores = fourstores or function()
  596.     local id_fsrandomloot = {
  597.         Idstring("units/payday2/props/gen_prop_bank_atm_standing/gen_prop_bank_atm_standing"),
  598.         false
  599.     }
  600.     local id_fsrandomloot1 = {
  601.         Idstring("units/payday2/equipment/gen_interactable_sec_safe_2x05/gen_interactable_sec_safe_2x05"),
  602.         false, false
  603.     }
  604.     local id_fsrandomloot2 = {
  605.         Idstring("units/payday2/equipment/gen_interactable_sec_safe_05x05/gen_interactable_sec_safe_05x05"),
  606.         false
  607.     }
  608.     local rand = id_fsrandomloot[math.random(#id_fsrandomloot)]
  609.     local rand1 = id_fsrandomloot1[math.random(#id_fsrandomloot1)]
  610.     local rand2 = id_fsrandomloot2[math.random(#id_fsrandomloot2)]
  611.     local spawns = {
  612.         World:spawn_unit( Idstring(
  613.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  614.         Vector3(1469.53, -6262.85, 61.0976), randrot() ),
  615.  
  616.         World:spawn_unit( Idstring(
  617.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  618.         Vector3(1372.47, -6229.6, 53.1498), randrot() ),
  619.  
  620.         World:spawn_unit( Idstring(
  621.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  622.         Vector3(-568.64, -5735.98, 98.2283), randrot() ),
  623.  
  624.         World:spawn_unit( Idstring(
  625.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  626.         Vector3(-605.937, -5733.94, 98.2283), randrot() ),
  627.  
  628.         World:spawn_unit( Idstring(
  629.         "units/payday2/props/com_prop_store_cashbox/com_prop_store_cashbox" ),
  630.         Vector3(-362, -5010, 125), Rotation(-90) ),
  631.  
  632.         World:spawn_unit( Idstring(
  633.         "units/payday2/props/com_prop_store_cashbox/com_prop_store_cashbox" ),
  634.         Vector3(560, -4734, 14), Rotation(180) ),
  635.  
  636.         World:spawn_unit( Idstring(
  637.         "units/payday2/props/com_prop_store_cashbox/com_prop_store_cashbox" ),
  638.         Vector3(560, -4804, 14), Rotation(180) )
  639.     }
  640.     for k,v in pairs(spawns) do v:interaction():set_active(true,true) end
  641.  
  642.     local objects = {
  643.         rand and World:spawn_unit( rand,
  644.         Vector3(285, -4182, 25), Rotation(-90) ),
  645.     }
  646.     for k,v in pairs(objects) do if v then v:base():activate() end end
  647.  
  648.     autoloot_containers = {}
  649.     if rand1 then table.insert(autoloot_containers, {
  650.         { World:spawn_unit( rand1,
  651.          Vector3(-921, -5461, 26), Rotation(90) ),
  652.             "door_opened",
  653.             "interact"
  654.         },
  655.         'local unit = World:spawn_unit( Idstring('
  656.         .. '"units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_box_01" ),'
  657.         .. 'Vector3(-883, -5500, 110), Rotation(180,65,0) )'
  658.         .. 'unit:interaction():set_active(true, true)',
  659.  
  660.         'local unit = World:spawn_unit( Idstring('
  661.         .. '"units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_value_a" ),'
  662.         .. 'Vector3(-905, -5487, 33.1028), Rotation(-90) )'
  663.         .. 'unit:interaction():set_active(true, true)',
  664.  
  665.         'local unit = World:spawn_unit( Idstring('
  666.         .. '"units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_value_a" ),'
  667.         .. 'Vector3(-890, -5487, 33.1028), Rotation(-90) )'
  668.         .. 'unit:interaction():set_active(true, true)',
  669.     }) end
  670.     if rand2 then table.insert(autoloot_containers, {
  671.         { World:spawn_unit( rand2,
  672.          Vector3(-462, -1099, 102), Rotation(349) ),
  673.             "door_opened",
  674.             "interact"
  675.         },
  676.         'local unit = World:spawn_unit( Idstring('
  677.         .. '"units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_value_e" ),'
  678.         .. 'Vector3(-501.572, -1118, 109.103), Rotation(349) )'
  679.         .. 'unit:interaction():set_active(true, true)',
  680.     }) end
  681.     for k,v in ipairs(autoloot_containers) do if v then v[1][1]:base():activate() end end
  682. end
  683.  
  684. ukranianjob = ukranianjob or function()
  685.     local id_ukrandomloot1 = {
  686.         Idstring("units/world/props/luxury_props/luxury_necklace_box_1"),
  687.         Idstring("units/world/props/luxury_props/luxury_necklace_box_2")
  688.     }
  689.     local id_ukrandomloot2 = {
  690.         Idstring("units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_bust_a"),
  691.         Idstring("units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_bust_b"),
  692.         Idstring("units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_bust_c")
  693.     }
  694.     local id_ukrandomloot3 = {
  695.         Idstring("units/payday2/equipment/gen_interactable_sec_safe_1x1/gen_interactable_sec_safe_1x1"),
  696.         false, false
  697.     }
  698.     local id_ukrandomloot4 = {
  699.         Idstring("units/payday2/equipment/gen_interactable_sec_safe_05x05/gen_interactable_sec_safe_05x05"),
  700.         false, false
  701.     }
  702.     id_ukrandomloot5 = {
  703.         Idstring("units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_box_01"),
  704.         Idstring("units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_box_02"),
  705.         Idstring("units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_box_03"),
  706.         false
  707.     }
  708.     local rand = id_ukrandomloot3[math.random(#id_ukrandomloot3)]
  709.     local rand1 = id_ukrandomloot4[math.random(#id_ukrandomloot4)]
  710.     local rand2 = id_ukrandomloot5[math.random(#id_ukrandomloot5)]
  711.     local rand3 = id_ukrandomloot5[math.random(#id_ukrandomloot5)]
  712.     local spawns = {
  713.         World:spawn_unit( Idstring(
  714.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  715.         Vector3(-697.64, -1114.36, 100), randrot() ),
  716.  
  717.         World:spawn_unit( Idstring(
  718.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  719.         Vector3(-739.765, -1127.37, 100), randrot() ),
  720.  
  721.         World:spawn_unit( Idstring(
  722.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  723.         Vector3(-852.138, -1114.8, 100), randrot() ),
  724.  
  725.         World:spawn_unit( Idstring(
  726.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  727.         Vector3(450.692, -1336.07, 114.476), randrot() ),
  728.  
  729.         World:spawn_unit( Idstring(
  730.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  731.         Vector3(561.633, -369.788, 143.055), randrot() ),
  732.  
  733.         World:spawn_unit( Idstring(
  734.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  735.         Vector3(221.756, 660.496, 125.055), randrot() ),
  736.  
  737.         World:spawn_unit( Idstring(
  738.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  739.         Vector3(240, -1765, 125), randrot() ),
  740.  
  741.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  742.         Vector3(806, 612, 149), Rotation(360) ),
  743.  
  744.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  745.         Vector3(806, 654, 149), Rotation(360) ),
  746.  
  747.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  748.         Vector3(806, -50, 149), Rotation(360) ),
  749.  
  750.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  751.         Vector3(806, -50, 201), Rotation(360) ),
  752.  
  753.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  754.         Vector3(803, -292, 200.1), Rotation(360) ),
  755.  
  756.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  757.         Vector3(803, -292, 150), Rotation(360) ),
  758.  
  759.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  760.         Vector3(803, 347, 114), Rotation(-90) ),
  761.  
  762.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  763.         Vector3(803, 302, 114), Rotation(-90) ),
  764.  
  765.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  766.         Vector3(803, 247, 114), Rotation(-90) ),
  767.  
  768.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  769.         Vector3(803, 200, 114), Rotation(-90) ),
  770.  
  771.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  772.         Vector3(803, 247, 150), Rotation(-90) ),
  773.  
  774.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  775.         Vector3(803, 200, 150), Rotation(-90) ),
  776.  
  777.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  778.         Vector3(803, 347, 150), Rotation(-90) ),
  779.  
  780.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  781.         Vector3(803, 302, 150), Rotation(-90) ),
  782.  
  783.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  784.         Vector3(803, 347, 184), Rotation(360) ),
  785.  
  786.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  787.         Vector3(803, 302, 216.5), Rotation(360) ),
  788.  
  789.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  790.         Vector3(803, 247, 216.5), Rotation(360) ),
  791.  
  792.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  793.         Vector3(803, 200, 216.5), Rotation(360) ),
  794.  
  795.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  796.         Vector3(803, 347, 216.5), Rotation(360) ),
  797.  
  798.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  799.         Vector3(803, 302, 184), Rotation(360) ),
  800.  
  801.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  802.         Vector3(803, 247, 184), Rotation(360) ),
  803.  
  804.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  805.         Vector3(803, 200, 184), Rotation(360) ),
  806.  
  807.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  808.         Vector3(-349, 110, 184), Rotation(180) ),
  809.  
  810.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  811.         Vector3(-349, 154, 184), Rotation(180) ),
  812.  
  813.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  814.         Vector3(-349., 110, 150), Rotation(90) ),
  815.  
  816.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  817.         Vector3(-349, 154, 150), Rotation(90) ),
  818.  
  819.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  820.         Vector3(-349., 110, 114), Rotation(90) ),
  821.  
  822.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  823.         Vector3(-349, 154, 114), Rotation(90) ),
  824.  
  825.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  826.         Vector3(-349., 210, 114), Rotation(90) ),
  827.  
  828.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  829.         Vector3(-349, 255, 114), Rotation(90) ),
  830.  
  831.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  832.         Vector3(-349., 210, 150), Rotation(90) ),
  833.  
  834.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  835.         Vector3(-349, 255, 150), Rotation(90) ),
  836.  
  837.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  838.         Vector3(-349, 110, 216.5), Rotation(180) ),
  839.  
  840.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  841.         Vector3(-349, 154, 216.5), Rotation(180) ),
  842.  
  843.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  844.         Vector3(-349, 210, 184), Rotation(180) ),
  845.  
  846.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  847.         Vector3(-349, 210, 216.5), Rotation(180) ),
  848.  
  849.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  850.         Vector3(-349, 255, 184), Rotation(180) ),
  851.  
  852.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  853.         Vector3(-349, 255, 216.5), Rotation(180) ),
  854.  
  855.         rand2 and World:spawn_unit( rand2,
  856.         Vector3(-1040, -1056, 127.5), Rotation(180) ),
  857.  
  858.         rand3 and World:spawn_unit( rand3,
  859.         Vector3(-756, -845, 114.524), Rotation(90) ),
  860.  
  861.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  862.         Vector3(-353, 545, 150), Rotation(180) ),
  863.  
  864.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  865.         Vector3(-353, 651, 150), Rotation(180) ),
  866.  
  867.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  868.         Vector3(-353, 651, 200.1), Rotation(180) ),
  869.  
  870.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  871.         Vector3(-353, 699, 150), Rotation(180) ),
  872.  
  873.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  874.         Vector3(-353, 699, 200.1), Rotation(180) ),
  875.  
  876.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  877.         Vector3(-353, 751, 150), Rotation(180) ),
  878.  
  879.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  880.         Vector3(-353, 751, 200.1), Rotation(180) ),
  881.  
  882.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  883.         Vector3(-353, -49, 200.1), Rotation(180) ),
  884.  
  885.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  886.         Vector3(599.5, -585, 148), Rotation(-90) ),
  887.  
  888.         World:spawn_unit( id_ukrandomloot2[math.random(3)],
  889.         Vector3(599.5, -585, 198), Rotation(-90) ),
  890.  
  891.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  892.         Vector3(353, -1776, 144.5), Rotation (-187) ),
  893.  
  894.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  895.         Vector3(439, -1770, 114.1), Rotation (180) ),
  896.  
  897.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  898.         Vector3(-410, -839, 125), Rotation(-90) ),
  899.  
  900.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  901.         Vector3(498, -1028, 94.5), Rotation(0) ),
  902.  
  903.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  904.         Vector3(450, -1028, 94.5), Rotation(0) ),
  905.  
  906.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  907.         Vector3(498, -1028, 62.5), Rotation(0) ),
  908.  
  909.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  910.         Vector3(450, -1028, 62.5), Rotation(0) ),
  911.  
  912.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  913.         Vector3(498, -1028, 31.5), Rotation(0) ),
  914.  
  915.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  916.         Vector3(450, -1028, 31.5), Rotation(0) ),
  917.  
  918.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  919.         Vector3(-783, -823, 115), Rotation (0) ),
  920.  
  921.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  922.         Vector3(-687, -823, 115), Rotation (0) ),
  923.  
  924.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  925.         Vector3(292, -1765, 94.5), Rotation(180) ),
  926.  
  927.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  928.         Vector3(244, -1765, 94.5), Rotation(180) ),
  929.  
  930.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  931.         Vector3(292, -1765, 62.5), Rotation(180) ),
  932.  
  933.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  934.         Vector3(244, -1765, 62.5), Rotation(180) ),
  935.  
  936.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  937.         Vector3(292, -1765, 31.5), Rotation(180) ),
  938.  
  939.         World:spawn_unit( id_ukrandomloot1[math.random(2)],
  940.         Vector3(244, -1765, 31.5), Rotation(180) ),
  941.     }
  942.     for k,v in pairs(spawns) do if v then v:interaction():set_active(true,true) end end
  943.  
  944.     autoloot_containers = {}
  945.     local randcontents = math.random(4)
  946.     if rand and randcontents == 1 then table.insert(autoloot_containers, {
  947.         { World:spawn_unit( rand,
  948.         Vector3(625, -1680, 25), Rotation(90) ),
  949.             "door_opened",
  950.             "interact"
  951.         },
  952.  
  953.         'local rand4 = id_ukrandomloot5[math.random(#id_ukrandomloot5)]'
  954.         ..'\nlocal unit = rand4 and World:spawn_unit('
  955.         .. 'rand4,'
  956.         .. 'Vector3(715, -1740, 75), Rotation(180) )'
  957.         .. '\nif unit then unit:interaction():set_active(true, true) end',
  958.  
  959.         'local rand5 = id_ukrandomloot5[math.random(#id_ukrandomloot5)]'
  960.         ..'\nlocal unit = rand5 and World:spawn_unit('
  961.         .. 'rand5,'
  962.         .. 'Vector3(665, -1740, 75), Rotation(180) )'
  963.         .. '\nif unit then unit:interaction():set_active(true, true) end',
  964.  
  965.         'local unit = World:spawn_unit( Idstring('
  966.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  967.         .. 'Vector3(675, -1720, 75), Rotation(90) )'
  968.         .. 'unit:interaction():set_active(true, true)',
  969.  
  970.         'local unit = World:spawn_unit( Idstring('
  971.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  972.         .. 'Vector3(647, -1720, 32), Rotation(0) )'
  973.         .. 'unit:interaction():set_active(true, true)',
  974.  
  975.         'local unit = World:spawn_unit( Idstring('
  976.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  977.         .. 'Vector3(647, -1710, 32), Rotation(0) )'
  978.         .. 'unit:interaction():set_active(true, true)',
  979.  
  980.         'local unit = World:spawn_unit( Idstring('
  981.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  982.         .. 'Vector3(685, -1730, 32), Rotation(360) )'
  983.         .. 'unit:interaction():set_active(true, true)',
  984.     }) end
  985.    
  986.     if rand and randcontents == 2 then table.insert(autoloot_containers, {
  987.         { World:spawn_unit( rand,
  988.         Vector3(625, -1680, 25), Rotation(90) ),
  989.             "door_opened",
  990.             "interact"
  991.         },
  992.  
  993.         'local rand4 = id_ukrandomloot5[math.random(#id_ukrandomloot5)]'
  994.         ..'\nlocal unit = rand4 and World:spawn_unit('
  995.         .. 'rand4,'
  996.         .. 'Vector3(715, -1740, 75), Rotation(180) )'
  997.         .. '\nif unit then unit:interaction():set_active(true, true) end',
  998.  
  999.         'local rand5 = id_ukrandomloot5[math.random(#id_ukrandomloot5)]'
  1000.         ..'\nlocal unit = rand5 and World:spawn_unit('
  1001.         .. 'rand5,'
  1002.         .. 'Vector3(665, -1740, 75), Rotation(180) )'
  1003.         .. '\nif unit then unit:interaction():set_active(true, true) end',
  1004.     }) end
  1005.    
  1006.     if rand and randcontents == 3 then table.insert(autoloot_containers, {
  1007.         { World:spawn_unit( rand,
  1008.         Vector3(625, -1680, 25), Rotation(90) ),
  1009.             "door_opened",
  1010.             "interact"
  1011.         },
  1012.         'local unit = World:spawn_unit( Idstring('
  1013.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1014.         .. 'Vector3(675, -1720, 75), Rotation(90) )'
  1015.         .. 'unit:interaction():set_active(true, true)',
  1016.  
  1017.         'local unit = World:spawn_unit( Idstring('
  1018.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1019.         .. 'Vector3(647, -17420, 32), Rotation(0) )'
  1020.         .. 'unit:interaction():set_active(true, true)',
  1021.  
  1022.         'local unit = World:spawn_unit( Idstring('
  1023.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1024.         .. 'Vector3(647, -1710, 32), Rotation(0) )'
  1025.         .. 'unit:interaction():set_active(true, true)',
  1026.  
  1027.         'local unit = World:spawn_unit( Idstring('
  1028.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  1029.         .. 'Vector3(685, -1730, 32), Rotation(360) )'
  1030.         .. 'unit:interaction():set_active(true, true)',
  1031.     }) end
  1032.    
  1033.     if rand and randcontents == 4 then table.insert(autoloot_containers, {
  1034.         { World:spawn_unit( rand,
  1035.         Vector3(625, -1680, 25), Rotation(90) ),
  1036.             "door_opened",
  1037.             "interact"
  1038.         },
  1039.         'local unit = World:spawn_unit( Idstring('
  1040.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  1041.         .. 'Vector3(685, -1730, 32), Rotation(360) )'
  1042.         .. 'unit:interaction():set_active(true, true)',
  1043.     }) end
  1044.    
  1045.     if rand1 then table.insert(autoloot_containers, {
  1046.         { World:spawn_unit( rand1,
  1047.          Vector3(-525, -1550, 125), Rotation(90) ),
  1048.             "door_opened",
  1049.             "interact"
  1050.         },
  1051.         'local unit = World:spawn_unit( Idstring('
  1052.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1053.         .. 'Vector3(-490, -1568.9, 132.103), Rotation(90) )'
  1054.         .. 'unit:interaction():set_active(true, true)',
  1055.  
  1056.         'local unit = World:spawn_unit( Idstring('
  1057.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1058.         .. 'Vector3(-499.7, -1568.9, 132.103), Rotation(90) )'
  1059.         .. 'unit:interaction():set_active(true, true)',
  1060.  
  1061.         'local unit = World:spawn_unit( Idstring('
  1062.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1063.         .. 'Vector3(-509.4, -1568.9, 132.103), Rotation(90) )'
  1064.         .. 'unit:interaction():set_active(true, true)',
  1065.  
  1066.         'local unit = World:spawn_unit( Idstring('
  1067.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1068.         .. 'Vector3(-490, -1568.9, 136.503), Rotation(90) )'
  1069.         .. 'unit:interaction():set_active(true, true)',
  1070.  
  1071.         'local unit = World:spawn_unit( Idstring('
  1072.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1073.         .. 'Vector3(-499.7, -1568.9, 136.503), Rotation(90) )'
  1074.         .. 'unit:interaction():set_active(true, true)',
  1075.  
  1076.         'local unit = World:spawn_unit( Idstring('
  1077.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1078.         .. 'Vector3(-509.4, -1568.9, 136.503), Rotation(90) )'
  1079.         .. 'unit:interaction():set_active(true, true)',
  1080.  
  1081.         'local unit = World:spawn_unit( Idstring('
  1082.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1083.         .. 'Vector3(-490, -1568.9, 140.903), Rotation(90) )'
  1084.         .. 'unit:interaction():set_active(true, true)',
  1085.  
  1086.         'local unit = World:spawn_unit( Idstring('
  1087.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1088.         .. 'Vector3(-499.7, -1568.9, 140.903), Rotation(90) )'
  1089.         .. 'unit:interaction():set_active(true, true)',
  1090.  
  1091.         'local unit = World:spawn_unit( Idstring('
  1092.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1093.         .. 'Vector3(-509.4, -1568.9, 140.903), Rotation(90) )'
  1094.         .. 'unit:interaction():set_active(true, true)',
  1095.  
  1096.         'local unit = World:spawn_unit( Idstring('
  1097.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1098.         .. 'Vector3(-490, -1568.9, 145.303), Rotation(90) )'
  1099.         .. 'unit:interaction():set_active(true, true)',
  1100.  
  1101.         'local unit = World:spawn_unit( Idstring('
  1102.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1103.         .. 'Vector3(-499.7, -1568.9, 145.303), Rotation(90) )'
  1104.         .. 'unit:interaction():set_active(true, true)',
  1105.  
  1106.         'local unit = World:spawn_unit( Idstring('
  1107.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1108.         .. 'Vector3(-509.4, -1568.9, 145.303), Rotation(90) )'
  1109.         .. 'unit:interaction():set_active(true, true)',
  1110.  
  1111.         'local unit = World:spawn_unit( Idstring('
  1112.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1113.         .. 'Vector3(-490, -1568.9, 149.703), Rotation(90) )'
  1114.         .. 'unit:interaction():set_active(true, true)',
  1115.  
  1116.         'local unit = World:spawn_unit( Idstring('
  1117.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1118.         .. 'Vector3(-499.7, -1568.9, 149.703), Rotation(90) )'
  1119.         .. 'unit:interaction():set_active(true, true)',
  1120.  
  1121.         'local unit = World:spawn_unit( Idstring('
  1122.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1123.         .. 'Vector3(-509.4, -1568.9, 149.703), Rotation(90) )'
  1124.         .. 'unit:interaction():set_active(true, true)',
  1125.  
  1126.         'local unit = World:spawn_unit( Idstring('
  1127.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1128.         .. 'Vector3(-490, -1568.9, 154.103), Rotation(90) )'
  1129.         .. 'unit:interaction():set_active(true, true)',
  1130.  
  1131.         'local unit = World:spawn_unit( Idstring('
  1132.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1133.         .. 'Vector3(-499.7, -1568.9, 154.103), Rotation(90) )'
  1134.         .. 'unit:interaction():set_active(true, true)',
  1135.  
  1136.         'local unit = World:spawn_unit( Idstring('
  1137.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1138.         .. 'Vector3(-509.4, -1568.9, 154.103), Rotation(90) )'
  1139.         .. 'unit:interaction():set_active(true, true)',
  1140.  
  1141.         'local unit = World:spawn_unit( Idstring('
  1142.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1143.         .. 'Vector3(-490, -1568.9, 158.503), Rotation(90) )'
  1144.         .. 'unit:interaction():set_active(true, true)',
  1145.  
  1146.         'local unit = World:spawn_unit( Idstring('
  1147.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1148.         .. 'Vector3(-499.7, -1568.9, 158.503), Rotation(90) )'
  1149.         .. 'unit:interaction():set_active(true, true)',
  1150.  
  1151.         'local unit = World:spawn_unit( Idstring('
  1152.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1153.         .. 'Vector3(-509.4, -1568.9, 158.503), Rotation(90) )'
  1154.         .. 'unit:interaction():set_active(true, true)',
  1155.     })
  1156.     end
  1157.     for k,v in ipairs(autoloot_containers) do if v then v[1][1]:base():activate() end end
  1158. end
  1159.  
  1160.  
  1161. mallcrasher = mallcrasher or function()
  1162.     World:spawn_unit( Idstring(
  1163.     "units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_bracelet_hanger" ),
  1164.     Vector3(-1745, -427, 501), Rotation(180) )
  1165.  
  1166.     World:spawn_unit( Idstring(
  1167.     "units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_bracelet_hanger" ),
  1168.     Vector3(-1494, -21, 501), Rotation(90) )
  1169.  
  1170.     World:spawn_unit( Idstring(
  1171.     "units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_bracelet_hanger"),
  1172.     Vector3(-1504.99, -282.52, 501), Rotation(360) )
  1173.  
  1174.     local id_mcrandomloot1 = {
  1175.         Idstring("units/payday2/props/com_prop_jewelry_bag/jewelry_necklace_box_1"),
  1176.         Idstring("units/payday2/props/com_prop_jewelry_bag/jewelry_necklace_box_2")
  1177.     }
  1178.     local id_mcrandomloot2 = {
  1179.         Idstring("units/payday2/props/gen_prop_bank_atm_standing/gen_prop_bank_atm_standing"),
  1180.         false
  1181.     }
  1182.     local rand = id_mcrandomloot2[math.random(#id_mcrandomloot2)]
  1183.     local rand1 = id_mcrandomloot2[math.random(#id_mcrandomloot2)]
  1184.     local spawns = {
  1185.         World:spawn_unit( Idstring(
  1186.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  1187.         Vector3(-1311.34, -266.751, 501), Rotation(90) ),
  1188.  
  1189.         World:spawn_unit( id_mcrandomloot1[math.random(1,2)],
  1190.         Vector3(-1500, -340, 470), Rotation(-50) ),
  1191.  
  1192.         World:spawn_unit( id_mcrandomloot1[math.random(1,2)],
  1193.         Vector3(-1500, -429, 470), Rotation(-125) ),
  1194.  
  1195.         World:spawn_unit( id_mcrandomloot1[math.random(1,2)],
  1196.         Vector3(-1295, -340, 470), Rotation(50) ),
  1197.  
  1198.         World:spawn_unit( id_mcrandomloot1[math.random(1,2)],
  1199.         Vector3(-1295, -429, 470), Rotation(125) ),
  1200.  
  1201.         World:spawn_unit( Idstring(
  1202.         "units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_bracelet" ),
  1203.         Vector3(-1504.99, -282.52, 501), Rotation(360) ),
  1204.  
  1205.         World:spawn_unit( Idstring(
  1206.         "units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_bracelet" ),
  1207.         Vector3(-1494, -21, 501), Rotation(90) ),
  1208.  
  1209.         World:spawn_unit( Idstring(
  1210.         "units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_bracelet" ),
  1211.         Vector3(-1745, -427, 501), Rotation(180) )
  1212.     }
  1213.     for k,v in pairs(spawns) do v:interaction():set_active(true,true) end
  1214.  
  1215.     local objects = {
  1216.         rand and World:spawn_unit( rand,
  1217.         Vector3(-914, -1599, 0), Rotation(-90) ),
  1218.  
  1219.         rand1 and World:spawn_unit( rand1,
  1220.         Vector3(368, -26, -9), Rotation(90) )
  1221.     }
  1222.     for k,v in pairs(objects) do if v then v:base():activate() end end
  1223. end
  1224.  
  1225. bigoilday1 = bigoilday1 or function()
  1226.     local id_bo1randomloot = {
  1227.         Idstring("units/payday2/pickups/gen_pku_cocaine/gen_pku_cocaine"),
  1228.         Idstring("units/payday2/pickups/gen_pku_money/gen_pku_money"),
  1229.         false, false
  1230.     }
  1231.     local id_bo1randomloot1 = {
  1232.         Idstring("units/payday2/equipment/gen_interactable_weapon_case_2x1/gen_interactable_weapon_case_2x1"),
  1233.         false
  1234.     }
  1235.     local rand = id_bo1randomloot[math.random(#id_bo1randomloot)]
  1236.     local rand1 = id_bo1randomloot[math.random(#id_bo1randomloot)]
  1237.     local rand2 = id_bo1randomloot[math.random(#id_bo1randomloot)]
  1238.     local rand3 = id_bo1randomloot[math.random(#id_bo1randomloot)]
  1239.     local rand4 = id_bo1randomloot[math.random(#id_bo1randomloot)]
  1240.     local rand5 = id_bo1randomloot[math.random(#id_bo1randomloot)]
  1241.     local rand6 = id_bo1randomloot[math.random(#id_bo1randomloot)]
  1242.     local rand7 = id_bo1randomloot[math.random(#id_bo1randomloot)]
  1243.     local rand8 = id_bo1randomloot1[math.random(#id_bo1randomloot1)]
  1244.     local rand9 = id_bo1randomloot1[math.random(#id_bo1randomloot1)]
  1245.     local rand10 = id_bo1randomloot1[math.random(#id_bo1randomloot1)]
  1246.     local rand11 = id_bo1randomloot1[math.random(#id_bo1randomloot1)]
  1247.     local bo1pos1 = {Vector3(2774, -3013, 302), Vector3(2774, -3013, 356)}
  1248.     local bo1pos2 = {Vector3(2774, -2910, 302), Vector3(2774, -2910, 356)}
  1249.     local spawns = {
  1250.         rand8 and World:spawn_unit( rand8,
  1251.         Vector3(503, -6814, 15), Rotation(180) ),
  1252.  
  1253.         rand9 and World:spawn_unit( rand9,
  1254.         Vector3(98, -6361.088, 81), Rotation(0) ),
  1255.  
  1256.         rand10 and World:spawn_unit( rand10,
  1257.         Vector3(98, -6247, 81), Rotation(0) ),
  1258.  
  1259.         rand11 and World:spawn_unit( rand11,
  1260.         Vector3(2503, -6673, 10), Rotation(0) ),
  1261.  
  1262.         rand and World:spawn_unit( rand,
  1263.         Vector3(2503, -6558, 80), Rotation(90) ),
  1264.  
  1265.         rand1 and World:spawn_unit( rand1,
  1266.         Vector3(2503, -6673, 80), Rotation(90) ),
  1267.  
  1268.         rand2 and World:spawn_unit( rand2,
  1269.         Vector3(2774, -2910, 248), Rotation(90) ),
  1270.  
  1271.         rand3 and World:spawn_unit( rand3,
  1272.         Vector3(2774, -3013, 248), Rotation(90) ),
  1273.  
  1274.         rand4 and World:spawn_unit( rand4,
  1275.         bo1pos1[math.random(2)], Rotation(90) ),
  1276.  
  1277.         rand5 and World:spawn_unit( rand5,
  1278.         bo1pos2[math.random(2)], Rotation(90) ),
  1279.  
  1280.         rand6 and World:spawn_unit( rand6,
  1281.         Vector3(3177, -2723, 650), Rotation(0) ),
  1282.  
  1283.         rand7 and World:spawn_unit( rand7,
  1284.         Vector3(2977, -27196, 600), randrot() )
  1285.     }
  1286.     for k,v in pairs(spawns) do if v then v:interaction():set_active(true,true) end end
  1287. end
  1288.  
  1289. bigoilday2 = bigoilday2 or function()
  1290.     local spawns = {
  1291.         World:spawn_unit( Idstring(
  1292.         "units/world/props/luxury_props/luxury_necklace_box_1" ),
  1293.         Vector3(-1510.13, -2361.65, 445.266), Rotation(180) ),
  1294.  
  1295.         World:spawn_unit( Idstring(
  1296.         "units/world/props/luxury_props/luxury_necklace_box_1" ),
  1297.         Vector3(-1074.48, -2242.82, 502.499), Rotation(-90) )
  1298.     }
  1299.     for k,v in pairs(spawns) do v:interaction():set_active(true,true) end
  1300. end
  1301.  
  1302. jewels = jewels or function()
  1303.     local rr = math.random(-180,180)
  1304.     local rot = Rotation(rr)
  1305.     local id_jsrandomloot1 = {
  1306.         Idstring("units/world/props/luxury_props/luxury_necklace_box_1"),
  1307.         Idstring("units/world/props/luxury_props/luxury_necklace_box_2")
  1308.     }
  1309.     local id_jsrandomloot2 = {
  1310.         Idstring("units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_bust_a"),
  1311.         Idstring("units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_bust_b"),
  1312.         Idstring("units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_bust_c")
  1313.     }
  1314.     id_jsrandomloot3 = {
  1315.         Idstring("units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_box_01"),
  1316.         Idstring("units/payday2/props/com_prop_jewelry_jewels/com_prop_jewelry_box_02"),
  1317.         false
  1318.     }
  1319.     local id_jsrandomloot4 = {
  1320.         Idstring("units/payday2/equipment/gen_interactable_sec_safe_1x1/gen_interactable_sec_safe_1x1"),
  1321.         false, false
  1322.     }
  1323.     local rand = id_jsrandomloot4[math.random(#id_jsrandomloot4)]
  1324.     local spawns = {
  1325.         World:spawn_unit( Idstring(
  1326.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  1327.         Vector3(458.885, -1353.05, 114.476), rot ),
  1328.  
  1329.         World:spawn_unit( Idstring(
  1330.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  1331.         Vector3(498.444, -1316.81, 114.476), rot ),
  1332.  
  1333.         World:spawn_unit( Idstring(
  1334.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  1335.         Vector3(-742.608, -1142.51, 100), rot ),
  1336.  
  1337.         World:spawn_unit( Idstring(
  1338.         "units/world/props/bank/money_wrap/money_wrap_single_bundle" ),
  1339.         Vector3(-782.136, -1151.92, 100), rot ),
  1340.  
  1341.         World:spawn_unit( id_jsrandomloot2[math.random(1,3)],
  1342.         Vector3(-355, 176, 200.1), Rotation (180) ),
  1343.  
  1344.         World:spawn_unit( id_jsrandomloot2[math.random(1,3)],
  1345.         Vector3(-355, 425, 200.1), Rotation (180) ),
  1346.  
  1347.         World:spawn_unit( id_jsrandomloot2[math.random(1,3)],
  1348.         Vector3(-355, 472, 200.1), Rotation (180) ),
  1349.  
  1350.         World:spawn_unit( id_jsrandomloot2[math.random(1,3)],
  1351.         Vector3(-355, 524, 200.1), Rotation (180) ),
  1352.  
  1353.         World:spawn_unit( id_jsrandomloot2[math.random(1,3)],
  1354.         Vector3(-355, 320, 150), Rotation (180) ),
  1355.  
  1356.         World:spawn_unit( id_jsrandomloot2[math.random(1,3)],
  1357.         Vector3(-355, 524, 150), Rotation (180) ),
  1358.  
  1359.         World:spawn_unit( id_jsrandomloot2[math.random(1,3)],
  1360.         Vector3(505, -1018, 200.1), Rotation (90) ),
  1361.  
  1362.         World:spawn_unit( id_jsrandomloot2[math.random(1,3)],
  1363.         Vector3(505, -1020, 150), Rotation (90) ),
  1364.  
  1365.         World:spawn_unit( id_jsrandomloot2[math.random(1,3)],
  1366.         Vector3(700, -1020, 200.1), Rotation (90) ),
  1367.  
  1368.         World:spawn_unit( id_jsrandomloot2[math.random(1,3)],
  1369.         Vector3(700, -1018, 150), Rotation (90) ),
  1370.  
  1371.         World:spawn_unit( id_jsrandomloot2[math.random(1,3)],
  1372.         Vector3(345, -1018, 150), Rotation (90) ),
  1373.  
  1374.         World:spawn_unit( id_jsrandomloot2[math.random(1,3)],
  1375.         Vector3(302, -1018, 150), Rotation (90) ),
  1376.  
  1377.         World:spawn_unit( id_jsrandomloot1[math.random(1,2)],
  1378.         Vector3(356, -1771, 144.5), Rotation (-187) ),
  1379.  
  1380.         World:spawn_unit( id_jsrandomloot1[math.random(1,2)],
  1381.         Vector3(439, -1770, 114.1), Rotation (-180) ),
  1382.  
  1383.         World:spawn_unit( id_jsrandomloot1[math.random(1,2)],
  1384.         Vector3(-737, -823, 115), Rotation (0) ),
  1385.  
  1386.         World:spawn_unit( id_jsrandomloot1[math.random(1,2)],
  1387.         Vector3(-791, -823, 115), Rotation (0) ),
  1388.  
  1389.         World:spawn_unit( id_jsrandomloot1[math.random(1,2)],
  1390.         Vector3(-679, -823, 115), Rotation (0) ),
  1391.  
  1392.         World:spawn_unit( id_jsrandomloot1[math.random(1,2)],
  1393.         Vector3(-400, -1475, 125), Rotation (-90) ),
  1394.  
  1395.         World:spawn_unit( id_jsrandomloot1[math.random(1,2)],
  1396.         Vector3(-450, -1576, 125), Rotation (180) ),
  1397.     }
  1398.     for k,v in pairs(spawns) do v:interaction():set_active(true,true) end
  1399.  
  1400.     autoloot_containers = {}
  1401.     local randcontents = math.random(4)
  1402.     if rand and randcontents == 1 then table.insert(autoloot_containers, {
  1403.         { World:spawn_unit( rand,
  1404.         Vector3(625, -1680, 25), Rotation(90) ),
  1405.             "door_opened",
  1406.             "interact"
  1407.         },
  1408.  
  1409.         'local rand4 = id_jsrandomloot3[math.random(#id_jsrandomloot3)]'
  1410.         ..'\nlocal unit = rand4 and World:spawn_unit('
  1411.         .. 'rand4,'
  1412.         .. 'Vector3(715, -1740, 75), Rotation(180) )'
  1413.         .. '\nif unit then unit:interaction():set_active(true, true) end',
  1414.  
  1415.         'local rand5 = id_jsrandomloot3[math.random(#id_jsrandomloot3)]'
  1416.         ..'\nlocal unit = rand5 and World:spawn_unit('
  1417.         .. 'rand5,'
  1418.         .. 'Vector3(665, -1740, 75), Rotation(180) )'
  1419.         .. '\nif unit then unit:interaction():set_active(true, true) end',
  1420.  
  1421.         'local unit = World:spawn_unit( Idstring('
  1422.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1423.         .. 'Vector3(675, -1720, 75), Rotation(90) )'
  1424.         .. 'unit:interaction():set_active(true, true)',
  1425.  
  1426.         'local unit = World:spawn_unit( Idstring('
  1427.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1428.         .. 'Vector3(647, -1720, 32), Rotation(0) )'
  1429.         .. 'unit:interaction():set_active(true, true)',
  1430.  
  1431.         'local unit = World:spawn_unit( Idstring('
  1432.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1433.         .. 'Vector3(647, -1710, 32), Rotation(0) )'
  1434.         .. 'unit:interaction():set_active(true, true)',
  1435.  
  1436.         'local unit = World:spawn_unit( Idstring('
  1437.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  1438.         .. 'Vector3(685, -1730, 32), Rotation(360) )'
  1439.         .. 'unit:interaction():set_active(true, true)',
  1440.     }) end
  1441.    
  1442.     if rand and randcontents == 2 then table.insert(autoloot_containers, {
  1443.         { World:spawn_unit( rand,
  1444.         Vector3(625, -1680, 25), Rotation(90) ),
  1445.             "door_opened",
  1446.             "interact"
  1447.         },
  1448.  
  1449.         'local rand4 = id_jsrandomloot3[math.random(#id_jsrandomloot3)]'
  1450.         ..'\nlocal unit = rand4 and World:spawn_unit('
  1451.         .. 'rand4,'
  1452.         .. 'Vector3(715, -1740, 75), Rotation(180) )'
  1453.         .. '\nif unit then unit:interaction():set_active(true, true) end',
  1454.  
  1455.         'local rand5 = id_jsrandomloot3[math.random(#id_jsrandomloot3)]'
  1456.         ..'\nlocal unit = rand5 and World:spawn_unit('
  1457.         .. 'rand5,'
  1458.         .. 'Vector3(665, -1740, 75), Rotation(180) )'
  1459.         .. '\nif unit then unit:interaction():set_active(true, true) end',
  1460.     }) end
  1461.    
  1462.     if rand and randcontents == 3 then table.insert(autoloot_containers, {
  1463.         { World:spawn_unit( rand,
  1464.         Vector3(625, -1680, 25), Rotation(90) ),
  1465.             "door_opened",
  1466.             "interact"
  1467.         },
  1468.         'local unit = World:spawn_unit( Idstring('
  1469.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1470.         .. 'Vector3(675, -1720, 75), Rotation(90) )'
  1471.         .. 'unit:interaction():set_active(true, true)',
  1472.  
  1473.         'local unit = World:spawn_unit( Idstring('
  1474.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1475.         .. 'Vector3(647, -17420, 32), Rotation(0) )'
  1476.         .. 'unit:interaction():set_active(true, true)',
  1477.  
  1478.         'local unit = World:spawn_unit( Idstring('
  1479.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  1480.         .. 'Vector3(647, -1710, 32), Rotation(0) )'
  1481.         .. 'unit:interaction():set_active(true, true)',
  1482.  
  1483.         'local unit = World:spawn_unit( Idstring('
  1484.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  1485.         .. 'Vector3(685, -1730, 32), Rotation(360) )'
  1486.         .. 'unit:interaction():set_active(true, true)',
  1487.     }) end
  1488.    
  1489.     if rand and randcontents == 4 then table.insert(autoloot_containers, {
  1490.         { World:spawn_unit( rand,
  1491.         Vector3(625, -1680, 25), Rotation(90) ),
  1492.             "door_opened",
  1493.             "interact"
  1494.         },
  1495.         'local unit = World:spawn_unit( Idstring('
  1496.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  1497.         .. 'Vector3(685, -1730, 32), Rotation(360) )'
  1498.         .. 'unit:interaction():set_active(true, true)',
  1499.     }) end
  1500.     for k,v in ipairs(autoloot_containers) do if v then v[1][1]:base():activate() end end
  1501. end
  1502.  
  1503.    
  1504.  
  1505. nightclub = nightclub or function(id)
  1506.     local id_ncrandomloot = {
  1507.             Idstring("units/payday2/pickups/gen_pku_money/gen_pku_money"),
  1508.             false, false, false
  1509.     }
  1510.     local id_ncrandomloot1 = {
  1511.             Idstring("units/payday2/equipment/gen_interactable_sec_safe_1x1/gen_interactable_sec_safe_1x1"),
  1512.             false, false
  1513.     }
  1514.     local id_ncrandomloot2 = {
  1515.             Idstring("units/payday2/props/com_prop_store_cashbox/com_prop_store_cashbox"),
  1516.             false, false
  1517.     }
  1518.     local id_ncrandomloot3 = {
  1519.             Idstring("units/world/props/bank/money_wrap/money_wrap_single_bundle"),
  1520.             false, false
  1521.     }
  1522.     local id_ncrandomloot4 = {
  1523.             Idstring("units/world/props/bank/money_wrap/money_wrap_single_bundle"),
  1524.             Idstring("units/world/props/bank/money_wrap/money_wrap_single_bundle"),
  1525.             false
  1526.     }
  1527.     local rand = id_ncrandomloot1[math.random(#id_ncrandomloot1)]
  1528.     local rand1 = id_ncrandomloot[math.random(#id_ncrandomloot)]
  1529.     local rand2 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1530.     local rand3 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1531.     local rand4 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1532.     local rand5 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1533.     local rand6 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1534.     local rand7 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1535.     local rand8 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1536.     local rand9 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1537.     local rand10 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1538.     local rand11 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1539.     local rand12 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1540.     local rand13 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1541.     local rand14 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1542.     local rand15 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1543.     local rand16 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1544.     local rand17 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1545.     local rand18 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1546.     local rand19 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1547.     local rand20 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1548.     local rand21 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1549.     local rand22 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1550.     local rand23 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1551.     local rand24 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1552.     local rand25 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1553.     local rand26 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1554.     local rand27 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1555.     local rand28 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1556.     local rand29 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1557.     local rand30 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1558.     local rand31 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1559.     local rand32 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1560.     local rand33 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1561.     local rand34 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1562.     local rand35 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1563.     local rand36 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1564.     local rand37 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1565.     local rand38 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1566.     local rand39 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1567.     local rand40 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1568.     local rand41 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1569.     local rand42 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1570.     local rand43 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1571.     local rand44 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1572.     local rand45 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1573.     local rand46 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1574.     local rand47 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1575.     local rand48 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1576.     local rand49 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1577.     local rand50 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1578.     local rand51 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1579.     local rand52 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1580.     local rand53 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1581.     local rand54 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1582.     local rand55 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1583.     local rand56 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1584.     local rand57 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1585.     local rand58 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1586.     local rand59 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1587.     local rand60 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1588.     local rand61 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1589.     local rand62 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1590.     local rand63 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1591.     local rand64 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1592.     local rand65 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1593.     local rand66 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1594.     local rand67 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1595.     local rand68 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1596.     local rand69 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1597.     local rand70 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1598.     local rand71 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1599.     local rand72 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1600.     local rand73 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1601.     local rand74 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1602.     local rand75 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1603.     local rand76 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1604.     local rand77 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1605.     local rand78 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1606.     local rand79 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1607.     local rand80 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1608.     local rand81 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1609.     local rand82 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1610.     local rand83 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1611.     local rand84 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1612.     local rand85 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1613.     local rand86 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1614.     local rand87 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1615.     local rand88 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1616.     local rand89 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1617.     local rand90 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1618.     local rand91 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1619.     local rand92 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1620.     local rand93 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1621.     local rand94 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1622.     local rand95 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1623.     local rand96 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1624.     local rand97 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1625.     local rand98 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1626.     local rand99 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1627.     local rand100 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1628.     local rand101 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1629.     local rand102 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1630.     local rand103 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1631.     local rand104 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1632.     local rand105 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1633.     local rand106 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1634.     local rand107 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1635.     local rand108 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1636.     local rand109 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1637.     local rand110 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1638.     local rand111 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1639.     local rand112 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1640.     local rand113 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1641.     local rand114 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1642.     local rand115 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1643.     local rand116 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1644.     local rand117 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1645.     local rand118 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1646.     local rand119 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1647.     local rand120 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1648.     local rand121 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1649.     local rand122 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1650.     local rand123 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1651.     local rand124 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1652.     local rand125 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1653.     local rand126 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1654.     local rand127 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1655.     local rand128 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1656.     local rand129 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1657.     local rand130 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1658.     local rand131 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1659.     local rand132 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1660.     local rand133 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1661.     local rand134 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1662.     local rand135 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1663.     local rand136 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1664.     local rand137 = id_ncrandomloot2[math.random(#id_ncrandomloot2)]
  1665.     local rand138 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1666.     local rand139 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1667.     local rand140 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1668.     local rand141 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1669.     local rand142 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1670.     local rand143 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1671.     local rand144 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1672.     local rand145 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1673.     local rand146 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1674.     local rand147 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1675.     local rand148 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1676.     local rand149 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1677.     local rand150 = id_ncrandomloot3[math.random(#id_ncrandomloot3)]
  1678.     local group1 = id_ncrandomloot4[math.random(#id_ncrandomloot4)]
  1679.     local group2 = id_ncrandomloot4[math.random(#id_ncrandomloot4)]
  1680.     local group3 = id_ncrandomloot4[math.random(#id_ncrandomloot4)]
  1681.     local group4 = id_ncrandomloot4[math.random(#id_ncrandomloot4)]
  1682.     local group5 = id_ncrandomloot4[math.random(#id_ncrandomloot4)]
  1683.     local group6 = id_ncrandomloot4[math.random(#id_ncrandomloot4)]
  1684.     local group7 = id_ncrandomloot4[math.random(#id_ncrandomloot4)]
  1685.    
  1686.    
  1687.     local spawns = {
  1688.             rand1 and World:spawn_unit( rand1,
  1689.             Vector3(3211.48, -5498.88, 475), randrot() ),
  1690.            
  1691.             rand2 and World:spawn_unit( rand2,
  1692.             Vector3(2479, -6471, 17.83), Rotation(270) ),
  1693.            
  1694.             rand3 and World:spawn_unit( rand3,
  1695.             Vector3(2279, -6471, 17.83), Rotation(270) ),
  1696.            
  1697.             rand4 and World:spawn_unit( rand4,
  1698.             Vector3(1980, -6471, 42.83), Rotation(270) ),
  1699.            
  1700.             rand5 and World:spawn_unit( rand5,
  1701.             Vector3(2279, -6471, 17.83), Rotation(270) ),
  1702.            
  1703.             rand6 and World:spawn_unit( rand6,
  1704.             Vector3(2180, -6471, 17.83), Rotation(270) ),
  1705.            
  1706.             rand7 and World:spawn_unit( rand7,
  1707.             Vector3(2180, -6471, 42.83), Rotation(270) ),
  1708.            
  1709.             rand8 and World:spawn_unit( rand8,
  1710.             Vector3(2080, -6471, 17.83), Rotation(270) ),
  1711.            
  1712.             rand9 and World:spawn_unit( rand9,
  1713.             Vector3(2080, -6471, 42.83), Rotation(270) ),
  1714.            
  1715.             rand10 and World:spawn_unit( rand10,
  1716.             Vector3(604, -4767, 493.83), Rotation(270) ),
  1717.            
  1718.             rand11 and World:spawn_unit( rand11,
  1719.             Vector3(604, -4767, 468.83), Rotation(270) ),
  1720.            
  1721.             rand12 and World:spawn_unit( rand12,
  1722.             Vector3(704, -4767, 493.83), Rotation(270) ),
  1723.            
  1724.             rand13 and World:spawn_unit( rand13,
  1725.             Vector3(704, -4767, 468.83), Rotation(270) ),
  1726.            
  1727.             rand14 and World:spawn_unit( rand14,
  1728.             Vector3(804, -4767, 468.83), Rotation(270) ),
  1729.            
  1730.             rand15 and World:spawn_unit( rand15,
  1731.             Vector3(904, -4767, 493.83), Rotation(270) ),
  1732.            
  1733.             rand16 and World:spawn_unit( rand16,
  1734.             Vector3(904, -4767, 468.83), Rotation(270) ),
  1735.            
  1736.             rand17 and World:spawn_unit( rand17,
  1737.             Vector3(595, -4985, 546), Rotation(90) ),
  1738.            
  1739.             rand18 and World:spawn_unit( rand18,
  1740.             Vector3(552, -4985, 546), Rotation(90) ),
  1741.            
  1742.             rand19 and World:spawn_unit( rand19,
  1743.             Vector3(2282, -6683, 95), Rotation(90) ),
  1744.            
  1745.             rand20 and World:spawn_unit( rand20,
  1746.             Vector3(2239, -6683, 95), Rotation(90) ),
  1747.            
  1748.             rand21 and World:spawn_unit( rand21,
  1749.             Vector3(2196, -6683, 95), Rotation(90) ),
  1750.            
  1751.             rand22 and World:spawn_unit( rand22,
  1752.             Vector3(709, -4879.5, 43.83), Rotation(180) ),
  1753.            
  1754.             rand23 and World:spawn_unit( rand23,
  1755.             Vector3(709, -4879.5, 18.83), Rotation(180) ),
  1756.            
  1757.             rand24 and World:spawn_unit( rand24,
  1758.             Vector3(2361, -6472, 94.94), randrot() ),
  1759.            
  1760.             rand25 and World:spawn_unit( rand25,
  1761.             Vector3(2500, -6484, -8), randrot() ),
  1762.            
  1763.             rand26 and World:spawn_unit( rand26,
  1764.             Vector3(2300, -6484, -8), randrot() ),
  1765.            
  1766.             rand27 and World:spawn_unit( rand27,
  1767.             Vector3(2200, -6484, -8), randrot() ),
  1768.            
  1769.             rand28 and World:spawn_unit( rand28,
  1770.             Vector3(2100, -6484, -8), randrot() ),
  1771.            
  1772.             rand29 and World:spawn_unit( rand29,
  1773.             Vector3(2000, -6484, -8), randrot() ),
  1774.            
  1775.             rand30 and World:spawn_unit( rand30,
  1776.             Vector3(1263, -7250, 156.181), randrot() ),
  1777.            
  1778.             rand31 and World:spawn_unit( rand31,
  1779.             Vector3(1166, -8169, -25), randrot() ),
  1780.            
  1781.             rand32 and World:spawn_unit( rand32,
  1782.             Vector3(1262, -8616, -25), randrot() ),
  1783.            
  1784.             rand33 and World:spawn_unit( rand33,
  1785.             Vector3(1438, -9508, 25), randrot() ),
  1786.            
  1787.             rand34 and World:spawn_unit( rand34,
  1788.             Vector3(3419, -8181, 38.73), randrot() ),
  1789.            
  1790.             rand35 and World:spawn_unit( rand35,
  1791.             Vector3(3437, -7781, 156.181), randrot() ),
  1792.            
  1793.             rand36 and World:spawn_unit( rand36,
  1794.             Vector3(3118, -7485, 205), Rotation(97) ),
  1795.            
  1796.             rand37 and World:spawn_unit( rand37,
  1797.             Vector3(3118, -7566, 25), Rotation(84) ),
  1798.            
  1799.             rand38 and World:spawn_unit( rand38,
  1800.             Vector3(3426, -7054, -19.75), randrot() ),
  1801.            
  1802.             rand39 and World:spawn_unit( rand39,
  1803.             Vector3(3403, -8736, -25), randrot() ),
  1804.            
  1805.             rand40 and World:spawn_unit( rand40,
  1806.             Vector3(3009, -6068, 525.9), Rotation(70) ),
  1807.            
  1808.             rand41 and World:spawn_unit( rand41,
  1809.             Vector3(3024, -6074, 480.25), randrot() ),
  1810.            
  1811.             rand42 and World:spawn_unit( rand42,
  1812.             Vector3(3448, -6253, 594.938), randrot() ),
  1813.            
  1814.             rand43 and World:spawn_unit( rand43,
  1815.             Vector3(3448, -6092, 594.938), randrot() ),
  1816.            
  1817.             rand44 and World:spawn_unit( rand44,
  1818.             Vector3(3121, -7026, 480.25), randrot() ),
  1819.            
  1820.             rand45 and World:spawn_unit( rand45,
  1821.             Vector3(3134, -6854, 576.5), randrot() ),
  1822.            
  1823.             rand46 and World:spawn_unit( rand46,
  1824.             Vector3(3269, -6854, 576.5), randrot() ),
  1825.            
  1826.             rand47 and World:spawn_unit( rand47,
  1827.             Vector3(3458, -7086, 476.3), randrot() ),
  1828.            
  1829.             rand48 and World:spawn_unit( rand48,
  1830.             Vector3(3479, -6660, 709.5), Rotation(84) ),
  1831.            
  1832.             rand49 and World:spawn_unit( rand49,
  1833.             Vector3(3118, -7363, 208), Rotation(84) ),
  1834.            
  1835.             rand50 and World:spawn_unit( rand50,
  1836.             Vector3(3480, -6488.5, 684), Rotation(90, 0, 46) ),
  1837.            
  1838.             rand51 and World:spawn_unit( rand51,
  1839.             Vector3(3454, -5757, 581.6), randrot() ),
  1840.            
  1841.             rand52 and World:spawn_unit( rand52,
  1842.             Vector3(3454, -5694, 581.6), randrot() ),
  1843.            
  1844.             rand53 and World:spawn_unit( rand53,
  1845.             Vector3(3170, -5267, 615), Rotation(12) ),
  1846.            
  1847.             rand54 and World:spawn_unit( rand54,
  1848.             Vector3(3053, -5267, 705), Rotation(12) ),
  1849.            
  1850.             group1 and World:spawn_unit( group1,
  1851.             Vector3(3315.3, -5263, 536.4), Rotation(0, 0, 110) ),
  1852.            
  1853.             group1 and World:spawn_unit( group1,
  1854.             Vector3(3310.6, -5263, 536.4), Rotation(0, 0, 110) ),
  1855.            
  1856.             group1 and World:spawn_unit( group1,
  1857.             Vector3(3305.9, -5263, 536.4), Rotation(0, 0, 110) ),
  1858.            
  1859.             group1 and World:spawn_unit( group1,
  1860.             Vector3(3300.5, -5263, 536.4), Rotation(0, 0, 114) ),
  1861.            
  1862.             group1 and World:spawn_unit( group1,
  1863.             Vector3(3294.9, -5263, 536.4), Rotation(0, 0, 118) ),
  1864.            
  1865.             group1 and World:spawn_unit( group1,
  1866.             Vector3(3289.3, -5263, 536.3), Rotation(0, 0, 121) ),
  1867.            
  1868.             group1 and World:spawn_unit( group1,
  1869.             Vector3(3283.3, -5263, 536.2), Rotation(0, 0, 125) ),
  1870.            
  1871.             group1 and World:spawn_unit( group1,
  1872.             Vector3(3276.7, -5263, 536), Rotation(0, 0, 130) ),
  1873.            
  1874.             group2 and World:spawn_unit( group2,
  1875.             Vector3(3088, -5482, 550.079), Rotation(94) ),
  1876.            
  1877.             group2 and World:spawn_unit( group2,
  1878.             Vector3(3076, -5482, 557), Rotation(7, 0, 164.5) ),
  1879.            
  1880.             group2 and World:spawn_unit( group2,
  1881.             Vector3(3096, -5482, 552.5), Rotation(94, 30) ),
  1882.            
  1883.             rand55 and World:spawn_unit( rand55,
  1884.             Vector3(3043, -5553, 550.079), randrot() ),
  1885.            
  1886.             rand56 and World:spawn_unit( rand56,
  1887.             Vector3(3004, -6191, 475), randrot() ),
  1888.            
  1889.             rand57 and World:spawn_unit( rand57,
  1890.             Vector3(3157, -6844, 474), randrot() ),
  1891.            
  1892.             rand58 and World:spawn_unit( rand58,
  1893.             Vector3(2696, -8284, 125.311), randrot() ),
  1894.            
  1895.             rand59 and World:spawn_unit( rand59,
  1896.             Vector3(1913, -8687, 123), randrot() ),
  1897.            
  1898.             rand60 and World:spawn_unit( rand60,
  1899.             Vector3(1898, -8762, 74.6), randrot() ),
  1900.            
  1901.             rand61 and World:spawn_unit( rand61,
  1902.             Vector3(1761, -8882, 135.522), randrot() ),
  1903.            
  1904.             rand62 and World:spawn_unit( rand62,
  1905.             Vector3(1741, -8937, 25), randrot() ),
  1906.            
  1907.             group3 and World:spawn_unit( group3,
  1908.             Vector3(1727, -7636, 52.9), Rotation(170) ),
  1909.            
  1910.             group3 and World:spawn_unit( group3,
  1911.             Vector3(1727, -7636, 57.3), Rotation(174) ),
  1912.            
  1913.             group3 and World:spawn_unit( group3,
  1914.             Vector3(1727, -7636, 61.7), Rotation(166) ),
  1915.            
  1916.             group4 and World:spawn_unit( group4,
  1917.             Vector3(1760, -7614, 52.9), Rotation(164) ),
  1918.            
  1919.             group4 and World:spawn_unit( group4,
  1920.             Vector3(1760, -7614, 57.3), Rotation(158) ),
  1921.            
  1922.             group5 and World:spawn_unit( group5,
  1923.             Vector3(1743, -7570, 52.9), Rotation(0) ),
  1924.            
  1925.             group5 and World:spawn_unit( group5,
  1926.             Vector3(1743, -7570, 57.3), Rotation(-6) ),
  1927.            
  1928.             group5 and World:spawn_unit( group5,
  1929.             Vector3(1743, -7570, 61.7), Rotation(4) ),
  1930.  
  1931.             group6 and World:spawn_unit( group6,
  1932.             Vector3(1754, -7586, 52.9), Rotation(106) ),
  1933.            
  1934.             group6 and World:spawn_unit( group6,
  1935.             Vector3(1754, -7586, 57.3), Rotation(100) ),
  1936.            
  1937.             group6 and World:spawn_unit( group6,
  1938.             Vector3(1754, -7586, 61.7), Rotation(110) ),
  1939.            
  1940.             group7 and World:spawn_unit( group7,
  1941.             Vector3(1718, -7535, 52.9), Rotation(55) ),
  1942.            
  1943.             group7 and World:spawn_unit( group7,
  1944.             Vector3(1718, -7535, 57.3), Rotation(49) ),
  1945.            
  1946.             group7 and World:spawn_unit( group7,
  1947.             Vector3(1718, -7535, 61.7), Rotation(59) ),
  1948.            
  1949.             rand63 and World:spawn_unit( rand63,
  1950.             Vector3(1749, -7534, 52.9), randrot() ),
  1951.            
  1952.             rand64 and World:spawn_unit( rand64,
  1953.             Vector3(1781, -7574, 52.9), randrot() ),
  1954.            
  1955.             rand65 and World:spawn_unit( rand65,
  1956.             Vector3(1709, -7578, 52.9), randrot() ),
  1957.            
  1958.             rand66 and World:spawn_unit( rand66,
  1959.             Vector3(2733, -8233, 130.2), Rotation(23, 90) ),
  1960.            
  1961.             rand67 and World:spawn_unit( rand67,
  1962.             Vector3(2861, -7173, -21.5), randrot() ),
  1963.            
  1964.             rand68 and World:spawn_unit( rand68,
  1965.             Vector3(3066, -7426, -25), Rotation(70) ),
  1966.            
  1967.             rand69 and World:spawn_unit( rand69,
  1968.             Vector3(3442, -8085, 130.2), Rotation(83, 90) ),
  1969.            
  1970.             rand70 and World:spawn_unit( rand70,
  1971.             Vector3(2761, -7782, -25), randrot() ),
  1972.            
  1973.             rand71 and World:spawn_unit( rand71,
  1974.             Vector3(2115, -7608, -25), randrot() ),
  1975.            
  1976.             rand72 and World:spawn_unit( rand72,
  1977.             Vector3(2092, -6783, -25), randrot() ),
  1978.            
  1979.             rand73 and World:spawn_unit( rand73,
  1980.             Vector3(2102, -7522, 85.4679), randrot() ),
  1981.            
  1982.             rand74 and World:spawn_unit( rand74,
  1983.             Vector3(2002, -7169, 140.3), randrot() ),
  1984.            
  1985.             rand75 and World:spawn_unit( rand75,
  1986.             Vector3(2746, -6909, 140.3), randrot() ),
  1987.            
  1988.             rand76 and World:spawn_unit( rand76,
  1989.             Vector3(1883, -7184, -20), Rotation(81, 90) ),
  1990.            
  1991.             rand77 and World:spawn_unit( rand77,
  1992.             Vector3(2821, -5755, 185), randrot() ),
  1993.            
  1994.             rand78 and World:spawn_unit( rand78,
  1995.             Vector3(1249, -5587, -25), randrot() ),
  1996.            
  1997.             rand79 and World:spawn_unit( rand79,
  1998.             Vector3(1231, -6241, -25), randrot() ),
  1999.            
  2000.             rand80 and World:spawn_unit( rand80,
  2001.             Vector3(1375, -6203, -19.75), randrot() ),
  2002.            
  2003.             rand81 and World:spawn_unit( rand81,
  2004.             Vector3(1670, -6128, 85.282), randrot() ),
  2005.            
  2006.             rand82 and World:spawn_unit( rand82,
  2007.             Vector3(1648, -5682, -25), randrot() ),
  2008.            
  2009.             rand83 and World:spawn_unit( rand83,
  2010.             Vector3(1895, -5510, -25), randrot() ),
  2011.            
  2012.             rand84 and World:spawn_unit( rand84,
  2013.             Vector3(1481, -4950, -18), randrot() ),
  2014.            
  2015.             rand85 and World:spawn_unit( rand85,
  2016.             Vector3(2107, -7231, 52.288), randrot() ),
  2017.            
  2018.             rand86 and World:spawn_unit( rand86,
  2019.             Vector3(2119, -7372, 72), randrot() ),
  2020.            
  2021.             rand87 and World:spawn_unit( rand87,
  2022.             Vector3(2443, -7399, 72), randrot() ),
  2023.            
  2024.             rand88 and World:spawn_unit( rand88,
  2025.             Vector3(2531, -7773, 91.3), randrot() ),
  2026.            
  2027.             rand89 and World:spawn_unit( rand89,
  2028.             Vector3(2703, -7377, 198.546), randrot() ),
  2029.            
  2030.             rand90 and World:spawn_unit( rand90,
  2031.             Vector3(3486, -6805, 597.6), Rotation(0, 0, 101) ),
  2032.            
  2033.             rand91 and World:spawn_unit( rand91,
  2034.             Vector3(2194, -4614, -25), randrot() ),
  2035.            
  2036.             rand92 and World:spawn_unit( rand92,
  2037.             Vector3(2473, -4550, -25), randrot() ),
  2038.            
  2039.             rand93 and World:spawn_unit( rand93,
  2040.             Vector3(2108, -5165, 28), randrot() ),
  2041.            
  2042.             rand94 and World:spawn_unit( rand94,
  2043.             Vector3(1161, -6444.6, 72.6), Rotation(0, 103) ),
  2044.            
  2045.             rand95 and World:spawn_unit( rand95,
  2046.             Vector3(2456, -5210, -17.7), randrot() ),
  2047.            
  2048.             rand96 and World:spawn_unit( rand96,
  2049.             Vector3(2814, -4741, 179.263), randrot() ),
  2050.            
  2051.             rand97 and World:spawn_unit( rand97,
  2052.             Vector3(3237, -4899, -25), randrot() ),
  2053.            
  2054.             rand98 and World:spawn_unit( rand98,
  2055.             Vector3(2860, -5110, -25), randrot() ),
  2056.            
  2057.             rand99 and World:spawn_unit( rand99,
  2058.             Vector3(2149, -6090, -17.7), randrot() ),
  2059.            
  2060.             rand100 and World:spawn_unit( rand100,
  2061.             Vector3(2508, -6165, -25), randrot() ),
  2062.            
  2063.             rand101 and World:spawn_unit( rand101,
  2064.             Vector3(333, -5544.5, 80), Rotation(90, 105, 90) ),
  2065.            
  2066.             rand102 and World:spawn_unit( rand102,
  2067.             Vector3(402, -5544.5, 80), Rotation(90, 105, 90) ),
  2068.            
  2069.             rand103 and World:spawn_unit( rand103,
  2070.             Vector3(506, -5544.5, 80), Rotation(90, 105, 90) ),
  2071.            
  2072.             rand104 and World:spawn_unit( rand104,
  2073.             Vector3(553, -5544.5, 80), Rotation(90, 105, 90) ),
  2074.            
  2075.             rand105 and World:spawn_unit( rand105,
  2076.             Vector3(620, -5468, 80), Rotation(90, 6, 90) ),
  2077.            
  2078.             rand106 and World:spawn_unit( rand106,
  2079.             Vector3(344, -4756, 80), Rotation(90, 105, 90) ),
  2080.            
  2081.             rand107 and World:spawn_unit( rand107,
  2082.             Vector3(390, -4756, 80), Rotation(90, 105, 90) ),
  2083.            
  2084.             rand108 and World:spawn_unit( rand108,
  2085.             Vector3(989, -4985, 545.94), randrot() ),
  2086.            
  2087.             rand109 and World:spawn_unit( rand109,
  2088.             Vector3(764, -4971, 674.17), randrot() ),
  2089.            
  2090.             rand110 and World:spawn_unit( rand110,
  2091.             Vector3(969.5, -5000, 685), Rotation(90, 0, 90) ),
  2092.            
  2093.             rand111 and World:spawn_unit( rand111,
  2094.             Vector3(565, -4398, 426), randrot() ),
  2095.            
  2096.             rand112 and World:spawn_unit( rand112,
  2097.             Vector3(288, -4292, 426), randrot() ),
  2098.            
  2099.             rand113 and World:spawn_unit( rand113,
  2100.             Vector3(356, -4594, 476.9), randrot() ),
  2101.            
  2102.             rand114 and World:spawn_unit( rand114,
  2103.             Vector3(1174, -4287, 535), randrot() ),
  2104.            
  2105.             rand115 and World:spawn_unit( rand115,
  2106.             Vector3(1490, -4270.2, 440), Rotation(0, 94) ),
  2107.            
  2108.             rand116 and World:spawn_unit( rand116,
  2109.             Vector3(1525, -6430, 465), randrot() ),
  2110.            
  2111.             rand117 and World:spawn_unit( rand117,
  2112.             Vector3(1483, -5778, 375), randrot() ),
  2113.            
  2114.             rand118 and World:spawn_unit( rand118,
  2115.             Vector3(1131, -5747, 380.2), randrot() ),
  2116.            
  2117.             rand119 and World:spawn_unit( rand119,
  2118.             Vector3(1580, -4747, 380.2), randrot() ),
  2119.            
  2120.             rand120 and World:spawn_unit( rand120,
  2121.             Vector3(2698, -4817, 375), randrot() ),
  2122.            
  2123.             rand121 and World:spawn_unit( rand121,
  2124.             Vector3(3256, -4686, 425), randrot() ),
  2125.            
  2126.             rand122 and World:spawn_unit( rand122,
  2127.             Vector3(2960, -4270, 535), randrot() ),
  2128.            
  2129.             rand123 and World:spawn_unit( rand123,
  2130.             Vector3(2737, -4420.3, 430.6), Rotation(0, 94) ),
  2131.            
  2132.             rand124 and World:spawn_unit( rand124,
  2133.             Vector3(459, -7230, 605), Rotation(13) ),
  2134.            
  2135.             rand125 and World:spawn_unit( rand125,
  2136.             Vector3(307, -7233, 586), Rotation(0) ),
  2137.            
  2138.             rand126 and World:spawn_unit( rand126,
  2139.             Vector3(1198, -6896, -25), randrot() ),
  2140.            
  2141.             rand127 and World:spawn_unit( rand127,
  2142.             Vector3(1508, -6817, 156.2), randrot() ),
  2143.            
  2144.             rand128 and World:spawn_unit( rand128,
  2145.             Vector3(2453, -7298, -25), randrot() ),
  2146.            
  2147.             rand129 and World:spawn_unit( rand129,
  2148.             Vector3(2057, -6940, -315), Rotation(210) ),
  2149.            
  2150.             rand130 and World:spawn_unit( rand130,
  2151.             Vector3(1365, -7474, -245), randrot() ),
  2152.            
  2153.             rand131 and World:spawn_unit( rand131,
  2154.             Vector3(1939, -8121, -350), Rotation(170) ),
  2155.            
  2156.             rand132 and World:spawn_unit( rand132,
  2157.             Vector3(1382, -7986, -350), Rotation(13) ),
  2158.            
  2159.             rand133 and World:spawn_unit( rand133,
  2160.             Vector3(1403, -8150, -199.7), randrot() ),
  2161.            
  2162.             rand134 and World:spawn_unit( rand134,
  2163.             Vector3(2031, -7340, -307.2), randrot() ),
  2164.            
  2165.             rand135 and World:spawn_unit( rand135,
  2166.             Vector3(354, -4945, 80), Rotation(90, 230, 90) ),
  2167.            
  2168.             rand136 and World:spawn_unit( rand136,
  2169.             Vector3(384, -4945, 80), Rotation(90, 230, 90) ),
  2170.            
  2171.             rand137 and World:spawn_unit( rand137,
  2172.             Vector3(-572, -1074, 25), randrot() ),
  2173.            
  2174.             rand138 and World:spawn_unit( rand138,
  2175.             Vector3(-583, -2292, 25), randrot() ),
  2176.            
  2177.             rand139 and World:spawn_unit( rand139,
  2178.             Vector3(238, -4396, 25), Rotation(94) ),
  2179.            
  2180.             rand140 and World:spawn_unit( rand140,
  2181.             Vector3(2578, -2079, 30), Rotation(0, 90) ),
  2182.            
  2183.             rand141 and World:spawn_unit( rand141,
  2184.             Vector3(2695, -1830, 170), Rotation(86, 90) ),
  2185.            
  2186.             rand142 and World:spawn_unit( rand142,
  2187.             Vector3(2317, -622, 100), randrot() ),
  2188.            
  2189.             rand143 and World:spawn_unit( rand143,
  2190.             Vector3(1713, -7153, -425), randrot() ),
  2191.            
  2192.             rand144 and World:spawn_unit( rand144,
  2193.             Vector3(1706, -7246, -425), randrot() ),
  2194.            
  2195.             rand145 and World:spawn_unit( rand145,
  2196.             Vector3(1614, -7295, -425), randrot() ),
  2197.            
  2198.             rand146 and World:spawn_unit( rand146,
  2199.             Vector3(458.447, -6877, 450.079), randrot() ),
  2200.  
  2201.             rand147 and World:spawn_unit( rand147,
  2202.             Vector3(494.163, -6865.05, 450.079), randrot() ),
  2203.  
  2204.             rand148 and World:spawn_unit( rand148,
  2205.             Vector3(624.966, -6873.36, 450.079), randrot() ),
  2206.  
  2207.             rand149 and World:spawn_unit( rand149,
  2208.             Vector3(3219.16, -5530.47, 550.079), randrot() ),
  2209.  
  2210.             rand150 and World:spawn_unit( rand150,
  2211.             Vector3(3136.91, -5535.36, 550.079), randrot() ),
  2212.     }
  2213.     for k,v in pairs(spawns) do if v then v:interaction():set_active(true,true) end end
  2214. autoloot_containers = {}
  2215.     local randcontents = math.random(4)
  2216.         if rand and randcontents == 1 then table.insert(autoloot_containers, {
  2217.             { World:spawn_unit( rand,
  2218.             Vector3(1430, -7342, -425), Rotation(360) ),
  2219.             "interact",
  2220.             "door_opened"
  2221.             },
  2222.         'local unit = World:spawn_unit( Idstring('                                                  
  2223.         .. '"units/payday2/pickups/gen_pku_cocaine/gen_pku_cocaine" ),'
  2224.         .. 'Vector3(1380, -7419, -417), Rotation(180) )',
  2225.  
  2226.         'local unit = World:spawn_unit( Idstring('
  2227.         .. '"units/payday2/pickups/gen_pku_cocaine/gen_pku_cocaine" ),'
  2228.         .. 'Vector3(1380, -7391, -417), Rotation(180) )',
  2229.  
  2230.         'local unit = World:spawn_unit( Idstring('
  2231.         .. '"units/payday2/pickups/gen_pku_cocaine/gen_pku_cocaine" ),'
  2232.         .. 'Vector3(1380, -7363, -417), Rotation(180) )',
  2233.  
  2234.         'local unit = World:spawn_unit( Idstring('
  2235.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  2236.         .. 'Vector3(1380, -7412, -375), Rotation(90) )'
  2237.         .. 'unit:interaction():set_active(true, true)',
  2238.  
  2239.         'local unit = World:spawn_unit( Idstring('
  2240.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  2241.         .. 'Vector3(1380, -7371, -375), Rotation(90) )'
  2242.         .. 'unit:interaction():set_active(true, true)',
  2243.     }) end
  2244.     if rand and randcontents == 2 then table.insert(autoloot_containers, {
  2245.             { World:spawn_unit( rand,
  2246.             Vector3(1430, -7342, -425), Rotation(360) ),
  2247.             "interact",
  2248.             "door_opened"
  2249.             },
  2250.         'local unit = World:spawn_unit( Idstring('                                          
  2251.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  2252.         .. 'Vector3(1380, -7412, -375), Rotation(90) )'
  2253.         .. 'unit:interaction():set_active(true, true)',
  2254.  
  2255.         'local unit = World:spawn_unit( Idstring('
  2256.         .. '"units/payday2/pickups/gen_pku_money/gen_pku_money" ),'
  2257.         .. 'Vector3(1380, -7371, -375), Rotation(90) )'
  2258.         .. 'unit:interaction():set_active(true, true)',
  2259.        
  2260.         'local unit = World:spawn_unit( Idstring('
  2261.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2262.         .. 'Vector3(1386, -7393, -417.9), Rotation(43) )'
  2263.         .. 'unit:interaction():set_active(true, true)',
  2264.  
  2265.         'local unit = World:spawn_unit( Idstring('
  2266.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2267.         .. 'Vector3(1380, -7374, -415), Rotation(48, 322) )'
  2268.         .. 'unit:interaction():set_active(true, true)',
  2269.  
  2270.         'local unit = World:spawn_unit( Idstring('
  2271.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2272.         .. 'Vector3(1391, -7376, -414.5), Rotation(55, 0, 18) )'
  2273.         .. 'unit:interaction():set_active(true, true)',
  2274.  
  2275.         'local unit = World:spawn_unit( Idstring('
  2276.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2277.         .. 'Vector3(1386, -7391, -413.5), Rotation(340) )'
  2278.         .. 'unit:interaction():set_active(true, true)',
  2279.  
  2280.         'local unit = World:spawn_unit( Idstring('
  2281.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2282.         .. 'Vector3(1379, -7403, -414.5), Rotation(320, 42) )'
  2283.         .. 'unit:interaction():set_active(true, true)',
  2284.  
  2285.         'local unit = World:spawn_unit( Idstring('
  2286.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2287.         .. 'Vector3(1390.5, -7406, -412), Rotation(332, 320, 15) )'
  2288.         .. 'unit:interaction():set_active(true, true)',
  2289.  
  2290.         'local unit = World:spawn_unit( Idstring('
  2291.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2292.         .. 'Vector3(1400, -7385.2, -412.3), Rotation(346, 350, 27) )'
  2293.         .. 'unit:interaction():set_active(true, true)',
  2294.  
  2295.         'local unit = World:spawn_unit( Idstring('
  2296.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2297.         .. 'Vector3(1403, -7400, -412.9), Rotation(320, 350, 23.3) )'
  2298.         .. 'unit:interaction():set_active(true, true)',
  2299.  
  2300.         'local unit = World:spawn_unit( Idstring('
  2301.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2302.         .. 'Vector3(1384, -7385.5, -407.5), Rotation(290, 8, 7) )'
  2303.         .. 'unit:interaction():set_active(true, true)',
  2304.        
  2305.         'local unit = World:spawn_unit( Idstring('
  2306.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2307.         .. 'Vector3(1396, -7416.1, -417.9), Rotation(320) )'
  2308.         .. 'unit:interaction():set_active(true, true)',
  2309.  
  2310.         'local unit = World:spawn_unit( Idstring('
  2311.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2312.         .. 'Vector3(1377, -7418, -417.9), Rotation(160) )'
  2313.         .. 'unit:interaction():set_active(true, true)',
  2314.  
  2315.         'local unit = World:spawn_unit( Idstring('
  2316.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2317.         .. 'Vector3(1387, -7420, -413.5), Rotation(190) )'
  2318.         .. 'unit:interaction():set_active(true, true)',
  2319.  
  2320.         'local unit = World:spawn_unit( Idstring('
  2321.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2322.         .. 'Vector3(1406.5, -7370, -417.9), Rotation(70) )'
  2323.         .. 'unit:interaction():set_active(true, true)',
  2324.  
  2325.         'local unit = World:spawn_unit( Idstring('
  2326.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2327.         .. 'Vector3(1393.5, -7358.5, -417.9), Rotation(350) )'
  2328.         .. 'unit:interaction():set_active(true, true)',
  2329.  
  2330.         'local unit = World:spawn_unit( Idstring('
  2331.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2332.         .. 'Vector3(1406, -7368, -413.5), Rotation(300) )'
  2333.         .. 'unit:interaction():set_active(true, true)',
  2334.  
  2335.         'local unit = World:spawn_unit( Idstring('
  2336.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2337.         .. 'Vector3(1382, -7360, -413.3), Rotation(0, 352, 338) )'
  2338.         .. 'unit:interaction():set_active(true, true)',
  2339.     }) end
  2340.     if rand and randcontents == 3 then table.insert(autoloot_containers, {
  2341.     { World:spawn_unit( rand,
  2342.     Vector3(1430, -7342, -425), Rotation(360) ),
  2343.     "interact",
  2344.     "door_opened"
  2345.     },
  2346.         'local unit = World:spawn_unit( Idstring('
  2347.         .. '"units/payday2/pickups/gen_pku_cocaine/gen_pku_cocaine" ),'          
  2348.         .. 'Vector3(1380, -7412, -375), Rotation(180) )'
  2349.         .. 'unit:interaction():set_active(true, true)',
  2350.  
  2351.         'local unit = World:spawn_unit( Idstring('
  2352.         .. '"units/payday2/pickups/gen_pku_cocaine/gen_pku_cocaine" ),'
  2353.         .. 'Vector3(1380, -7371, -375), Rotation(180) )'
  2354.         .. 'unit:interaction():set_active(true, true)',
  2355.        
  2356.         'local unit = World:spawn_unit( Idstring('
  2357.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2358.         .. 'Vector3(1386, -7393, -417.9), Rotation(43) )'
  2359.         .. 'unit:interaction():set_active(true, true)',
  2360.  
  2361.         'local unit = World:spawn_unit( Idstring('
  2362.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2363.         .. 'Vector3(1380, -7374, -415), Rotation(48, 322) )'
  2364.         .. 'unit:interaction():set_active(true, true)',
  2365.  
  2366.         'local unit = World:spawn_unit( Idstring('
  2367.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2368.         .. 'Vector3(1391, -7376, -414.5), Rotation(55, 0, 18) )'
  2369.         .. 'unit:interaction():set_active(true, true)',
  2370.  
  2371.         'local unit = World:spawn_unit( Idstring('
  2372.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2373.         .. 'Vector3(1386, -7391, -413.5), Rotation(340) )'
  2374.         .. 'unit:interaction():set_active(true, true)',
  2375.  
  2376.         'local unit = World:spawn_unit( Idstring('
  2377.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2378.         .. 'Vector3(1379, -7403, -414.5), Rotation(320, 42) )'
  2379.         .. 'unit:interaction():set_active(true, true)',
  2380.  
  2381.         'local unit = World:spawn_unit( Idstring('
  2382.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2383.         .. 'Vector3(1390.5, -7406, -412), Rotation(332, 320, 15) )'
  2384.         .. 'unit:interaction():set_active(true, true)',
  2385.  
  2386.         'local unit = World:spawn_unit( Idstring('
  2387.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2388.         .. 'Vector3(1400, -7385.2, -412.3), Rotation(346, 350, 27) )'
  2389.         .. 'unit:interaction():set_active(true, true)',
  2390.  
  2391.         'local unit = World:spawn_unit( Idstring('
  2392.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2393.         .. 'Vector3(1403, -7400, -412.9), Rotation(320, 350, 23.3) )'
  2394.         .. 'unit:interaction():set_active(true, true)',
  2395.  
  2396.         'local unit = World:spawn_unit( Idstring('
  2397.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2398.         .. 'Vector3(1384, -7385.5, -407.5), Rotation(290, 8, 7) )'
  2399.         .. 'unit:interaction():set_active(true, true)',
  2400.        
  2401.         'local unit = World:spawn_unit( Idstring('
  2402.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2403.         .. 'Vector3(1396, -7416.1, -417.9), Rotation(320) )'
  2404.         .. 'unit:interaction():set_active(true, true)',
  2405.  
  2406.         'local unit = World:spawn_unit( Idstring('
  2407.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2408.         .. 'Vector3(1377, -7418, -417.9), Rotation(160) )'
  2409.         .. 'unit:interaction():set_active(true, true)',
  2410.  
  2411.         'local unit = World:spawn_unit( Idstring('
  2412.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2413.         .. 'Vector3(1387, -7420, -413.5), Rotation(190) )'
  2414.         .. 'unit:interaction():set_active(true, true)',
  2415.  
  2416.         'local unit = World:spawn_unit( Idstring('
  2417.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2418.         .. 'Vector3(1406.5, -7370, -417.9), Rotation(70) )'
  2419.         .. 'unit:interaction():set_active(true, true)',
  2420.  
  2421.         'local unit = World:spawn_unit( Idstring('
  2422.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2423.         .. 'Vector3(1393.5, -7358.5, -417.9), Rotation(350) )'
  2424.         .. 'unit:interaction():set_active(true, true)',
  2425.  
  2426.         'local unit = World:spawn_unit( Idstring('
  2427.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2428.         .. 'Vector3(1406, -7368, -413.5), Rotation(300) )'
  2429.         .. 'unit:interaction():set_active(true, true)',
  2430.  
  2431.         'local unit = World:spawn_unit( Idstring('
  2432.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2433.         .. 'Vector3(1382, -7360, -413.3), Rotation(0, 352, 338) )'
  2434.         .. 'unit:interaction():set_active(true, true)',
  2435.     }) end
  2436.     if rand and randcontents == 4 then table.insert(autoloot_containers, {
  2437.         { World:spawn_unit( rand,
  2438.         Vector3(1430, -7342, -425), Rotation(360) ),
  2439.         "interact",
  2440.         "door_opened"
  2441.         },
  2442.         'local unit = World:spawn_unit( Idstring('
  2443.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2444.         .. 'Vector3(1386, -7393, -417.9), Rotation(43) )'
  2445.         .. 'unit:interaction():set_active(true, true)',
  2446.  
  2447.         'local unit = World:spawn_unit( Idstring('
  2448.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2449.         .. 'Vector3(1380, -7374, -415), Rotation(48, 322) )'
  2450.         .. 'unit:interaction():set_active(true, true)',
  2451.  
  2452.         'local unit = World:spawn_unit( Idstring('
  2453.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2454.         .. 'Vector3(1391, -7376, -414.5), Rotation(55, 0, 18) )'
  2455.         .. 'unit:interaction():set_active(true, true)',
  2456.  
  2457.         'local unit = World:spawn_unit( Idstring('
  2458.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2459.         .. 'Vector3(1386, -7391, -413.5), Rotation(340) )'
  2460.         .. 'unit:interaction():set_active(true, true)',
  2461.  
  2462.         'local unit = World:spawn_unit( Idstring('
  2463.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2464.         .. 'Vector3(1379, -7403, -414.5), Rotation(320, 42) )'
  2465.         .. 'unit:interaction():set_active(true, true)',
  2466.  
  2467.         'local unit = World:spawn_unit( Idstring('
  2468.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2469.         .. 'Vector3(1390.5, -7406, -412), Rotation(332, 320, 15) )'
  2470.         .. 'unit:interaction():set_active(true, true)',
  2471.  
  2472.         'local unit = World:spawn_unit( Idstring('
  2473.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2474.         .. 'Vector3(1400, -7385.2, -412.3), Rotation(346, 350, 27) )'
  2475.         .. 'unit:interaction():set_active(true, true)',
  2476.  
  2477.         'local unit = World:spawn_unit( Idstring('
  2478.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2479.         .. 'Vector3(1403, -7400, -412.9), Rotation(320, 350, 23.3) )'
  2480.         .. 'unit:interaction():set_active(true, true)',
  2481.  
  2482.         'local unit = World:spawn_unit( Idstring('
  2483.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2484.         .. 'Vector3(1384, -7385.5, -407.5), Rotation(290, 8, 7) )'
  2485.         .. 'unit:interaction():set_active(true, true)',
  2486.        
  2487.         'local unit = World:spawn_unit( Idstring('
  2488.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2489.         .. 'Vector3(1396, -7416.1, -417.9), Rotation(320) )'
  2490.         .. 'unit:interaction():set_active(true, true)',
  2491.  
  2492.         'local unit = World:spawn_unit( Idstring('
  2493.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2494.         .. 'Vector3(1377, -7418, -417.9), Rotation(160) )'
  2495.         .. 'unit:interaction():set_active(true, true)',
  2496.  
  2497.         'local unit = World:spawn_unit( Idstring('
  2498.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2499.         .. 'Vector3(1387, -7420, -413.5), Rotation(190) )'
  2500.         .. 'unit:interaction():set_active(true, true)',
  2501.  
  2502.         'local unit = World:spawn_unit( Idstring('
  2503.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2504.         .. 'Vector3(1406.5, -7370, -417.9), Rotation(70) )'
  2505.         .. 'unit:interaction():set_active(true, true)',
  2506.  
  2507.         'local unit = World:spawn_unit( Idstring('
  2508.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2509.         .. 'Vector3(1393.5, -7358.5, -417.9), Rotation(350) )'
  2510.         .. 'unit:interaction():set_active(true, true)',
  2511.  
  2512.         'local unit = World:spawn_unit( Idstring('
  2513.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2514.         .. 'Vector3(1406, -7368, -413.5), Rotation(300) )'
  2515.         .. 'unit:interaction():set_active(true, true)',
  2516.  
  2517.         'local unit = World:spawn_unit( Idstring('
  2518.         .. '"units/world/props/bank/money_wrap/money_wrap_single_bundle" ),'
  2519.         .. 'Vector3(1382, -7360, -413.3), Rotation(0, 352, 338) )'
  2520.         .. 'unit:interaction():set_active(true, true)',
  2521.     }) end
  2522.     for k,v in ipairs(autoloot_containers) do if v then v[1][1]:base():activate() end end
  2523. end
  2524.  
  2525. electionwarehouse = electionwarehouse or function()
  2526.     local id_ewrandomloot = {
  2527.         Idstring("units/payday2/pickups/gen_pku_bucket_of_money/gen_pku_bucket_of_money"),
  2528.         false
  2529.     }
  2530.     local rand = id_ewrandomloot[math.random(#id_ewrandomloot)]
  2531.     local rand1 = id_ewrandomloot[math.random(#id_ewrandomloot)]
  2532.     local rand2 = id_ewrandomloot[math.random(#id_ewrandomloot)]
  2533.     local spawns = {
  2534.         rand and World:spawn_unit( rand,
  2535.         Vector3(-2644, -1325, 601.485), Rotation(-180) ),
  2536.  
  2537.         rand1 and World:spawn_unit( rand1,
  2538.         Vector3(-1160.22, -964.71, 500), Rotation(-180) ),
  2539.  
  2540.         rand2 and World:spawn_unit( rand2,
  2541.         Vector3(-2373.58, -2411.31, 575), Rotation(90) )
  2542.     }
  2543.     for k,v in pairs(spawns) do if v then v:interaction():set_active(true,true) end end
  2544. end
  2545.  
  2546. shadow = shadow or function()
  2547.     local id_srandomloot = {
  2548.         Idstring("units/payday2/pickups/gen_pku_cocaine/gen_pku_cocaine"),
  2549.         Idstring("units/payday2/equipment/ind_interactable_hardcase_loot/ind_interactable_hardcase_loot_gold"),
  2550.         Idstring("units/payday2/equipment/ind_interactable_hardcase_loot/ind_interactable_hardcase_loot_money"),
  2551.         false, false
  2552.     }
  2553.     local id_srandomloot1 = {
  2554.         Idstring("units/payday2/equipment/gen_interactable_weapon_case_2x1/gen_interactable_weapon_case_2x1"),
  2555.         false
  2556.     }
  2557.     local rand1 = id_srandomloot[math.random(#id_srandomloot)]
  2558.     local rand2 = id_srandomloot[math.random(#id_srandomloot)]
  2559.     local rand3 = id_srandomloot[math.random(#id_srandomloot)]
  2560.     local rand4 = id_srandomloot[math.random(#id_srandomloot)]
  2561.     local rand5 = id_srandomloot[math.random(#id_srandomloot)]
  2562.     local rand6 = id_srandomloot[math.random(#id_srandomloot)]
  2563.     local rand7 = id_srandomloot[math.random(#id_srandomloot)]
  2564.     local rand8 = id_srandomloot[math.random(#id_srandomloot)]
  2565.     local rand9 = id_srandomloot[math.random(#id_srandomloot)]
  2566.     local rand10 = id_srandomloot1[math.random(#id_srandomloot1)]
  2567.     local rand11 = id_srandomloot1[math.random(#id_srandomloot1)]
  2568.     local rand12 = id_srandomloot1[math.random(#id_srandomloot1)]
  2569.     local rand13 = id_srandomloot1[math.random(#id_srandomloot1)]
  2570.     local rand14 = id_srandomloot1[math.random(#id_srandomloot1)]
  2571.     local spawns = {
  2572.         rand10 and World:spawn_unit( rand10,
  2573.         Vector3(-2824.47, -5555.74, 1058.98), Rotation(180) ),
  2574.  
  2575.         rand1 and World:spawn_unit( rand1,
  2576.         Vector3(-2948.14, -5625.3, 1057.59), Rotation(-180) ),
  2577.  
  2578.         rand2 and World:spawn_unit( rand2,
  2579.         Vector3(-3126.01, -5625.3, 1057.59), Rotation(-180) ),
  2580.  
  2581.         rand11 and World:spawn_unit( rand11,
  2582.         Vector3(-3250.74, -4944.50, 1058.98), Rotation(360) ),
  2583.  
  2584.         rand12 and World:spawn_unit( rand12,
  2585.         Vector3(-2824.47, -4944.50, 1058.28), Rotation(180) ),
  2586.  
  2587.         rand3 and World:spawn_unit( rand3,
  2588.         Vector3(-2948.14, -4874.86, 1057.59), Rotation(180) ),
  2589.  
  2590.         rand4 and World:spawn_unit( rand4,
  2591.         Vector3(-1521.73, -5410.55, 1062.84), Rotation(90) ),
  2592.  
  2593.         rand13 and World:spawn_unit( rand13,
  2594.         Vector3(-972.55, -5567.1, 1401.17), Rotation(90) ),
  2595.  
  2596.         rand5 and World:spawn_unit( rand5,
  2597.         Vector3(-1902.55, -5591.68, 1401.17), Rotation(180) ),
  2598.  
  2599.         rand14 and World:spawn_unit( rand14,
  2600.         Vector3(-827.749, -4482.73, 975), Rotation(-90) ),
  2601.  
  2602.         rand6 and World:spawn_unit( rand6,
  2603.         Vector3(-1956.23, -3945.4, 1024.23), Rotation(90) ),
  2604.  
  2605.         rand7 and World:spawn_unit( rand7,
  2606.         Vector3(-3145.82, -4874, 1057.59), Rotation(90) ),
  2607.  
  2608.         rand8 and World:spawn_unit( rand8,
  2609.         Vector3(-3103.7, -4874, 1057.59), Rotation(90) ),
  2610.  
  2611.         rand9 and World:spawn_unit( rand9,
  2612.         Vector3(-3248.89, -5550.66, 1057.59), Rotation(0) ),
  2613.  
  2614.         World:spawn_unit( Idstring(
  2615.         "units/pd2_dlc1/equipment/ind_interactable_shipping_crate_2x1x1m/ind_interactable_shipping_crate_2x1x1m"),
  2616.         Vector3(-3378.53, -5402.14, 975), Rotation(-90) ),
  2617.  
  2618.         World:spawn_unit( Idstring(
  2619.         "units/payday2/pickups/gen_pku_artifact_statue/gen_pku_artifact_statue"),
  2620.         Vector3(-3378.53, -5402.14, 1005), Rotation(90) )
  2621.     }
  2622.     for k,v in pairs(spawns) do if v then v:interaction():set_active(true,true) end end
  2623. end
  2624.  
  2625. transportcross = transportcross or function()
  2626.     local spawns = {
  2627.         World:spawn_unit( Idstring(
  2628.         "units/payday2/props/com_prop_store_cashregister_low/com_prop_store_cashregister_low" ),
  2629.         Vector3(-1579, 1556, 102.5), Rotation(90) ),
  2630.  
  2631.         World:spawn_unit( Idstring(
  2632.         "units/payday2/props/com_prop_store_cashregister_low/com_prop_store_cashregister_low" ),
  2633.         Vector3(1609, -1045, 100), Rotation(360) ),
  2634.  
  2635.         World:spawn_unit( Idstring(
  2636.         "units/payday2/props/com_prop_store_cashregister_low/com_prop_store_cashregister_low" ),
  2637.         Vector3(-1174, -1703, 119.2), Rotation(-90) )
  2638.     }
  2639.     for k,v in pairs(spawns) do v:interaction():set_active(true,true) end
  2640.  
  2641.     local objects = {
  2642.         World:spawn_unit( Idstring(
  2643.         "units/payday2/props/gen_prop_bank_atm_standing/gen_prop_bank_atm_standing" ),
  2644.         Vector3(751, 1621, -2.98023), Rotation(360) )
  2645.     }
  2646.     for k,v in pairs(objects) do v:base():activate() end
  2647. end
  2648.  
  2649. bigbank = bigbank or function()
  2650.     local id_bbrandomloot = {
  2651.         Idstring("units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_value_f"),
  2652.         false
  2653.     }
  2654.     local id_bbrandomloot1 = {
  2655.         Idstring("units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_value_g"),
  2656.         false
  2657.     }
  2658.     local id_bbrandomloot2 = {
  2659.         Idstring("units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_value_h"),
  2660.         false
  2661.     }
  2662.     local id_bbrandomloot3 = {
  2663.         Idstring("units/payday2/props/bnk_prop_vault_loot_value_i/bnk_prop_vault_loot_value_i"),
  2664.         false
  2665.     }
  2666.     local id_bbrandomloot4 = {
  2667.         Idstring("units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_value_j"),
  2668.         false
  2669.     }
  2670.     local id_bbrandomloot5 = {
  2671.         Idstring("units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_value_k"),
  2672.         false
  2673.     }
  2674.     local id_bbrandomloot6 = {
  2675.         Idstring("units/payday2/pickups/gen_pku_money/gen_pku_money"),
  2676.         false
  2677.     }
  2678.     local id_bbrandomloot7 = {
  2679.         Idstring("units/payday2/pickups/gen_pku_gold/gen_pku_gold"),
  2680.         false, false
  2681.     }
  2682.     local id_bbrandomloot8 = {
  2683.         Idstring("units/payday2/equipment/gen_interactable_sec_safe_05x05/gen_interactable_sec_safe_05x05"),
  2684.     }
  2685.     local rand = id_bbrandomloot[math.random(#id_bbrandomloot)]
  2686.     local rand1 = id_bbrandomloot[math.random(#id_bbrandomloot)]
  2687.     local rand2 = id_bbrandomloot[math.random(#id_bbrandomloot)]
  2688.     local rand3 = id_bbrandomloot[math.random(#id_bbrandomloot)]
  2689.     local rand4 = id_bbrandomloot[math.random(#id_bbrandomloot)]
  2690.     local rand5 = id_bbrandomloot1[math.random(#id_bbrandomloot1)]
  2691.     local rand6 = id_bbrandomloot1[math.random(#id_bbrandomloot1)]
  2692.     local rand7 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2693.     local rand8 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2694.     local rand9 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2695.     local rand10 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2696.     local rand11 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2697.     local rand12 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2698.     local rand13 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2699.     local rand14 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2700.     local rand15 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2701.     local rand16 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2702.     local rand17 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2703.     local rand18 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2704.     local rand19 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2705.     local rand20 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2706.     local rand21 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2707.     local rand22 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2708.     local rand23 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2709.     local rand24 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2710.     local rand25 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2711.     local rand26 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2712.     local rand27 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2713.     local rand28 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2714.     local rand29 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2715.     local rand30 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2716.     local rand31 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2717.     local rand32 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2718.     local rand33 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2719.     local rand34 = id_bbrandomloot2[math.random(#id_bbrandomloot2)]
  2720.     local rand35 = id_bbrandomloot3[math.random(#id_bbrandomloot3)]
  2721.     local rand36 = id_bbrandomloot3[math.random(#id_bbrandomloot3)]
  2722.     local rand37 = id_bbrandomloot3[math.random(#id_bbrandomloot3)]
  2723.     local rand38 = id_bbrandomloot3[math.random(#id_bbrandomloot3)]
  2724.     local rand39 = id_bbrandomloot3[math.random(#id_bbrandomloot3)]
  2725.     local rand40 = id_bbrandomloot3[math.random(#id_bbrandomloot3)]
  2726.     local rand41 = id_bbrandomloot3[math.random(#id_bbrandomloot3)]
  2727.     local rand42 = id_bbrandomloot4[math.random(#id_bbrandomloot4)]
  2728.     local rand43 = id_bbrandomloot4[math.random(#id_bbrandomloot4)]
  2729.     local rand44 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2730.     local rand45 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2731.     local rand46 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2732.     local rand47 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2733.     local rand48 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2734.     local rand49 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2735.     local rand50 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2736.     local rand51 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2737.     local rand52 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2738.     local rand53 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2739.     local rand54 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2740.     local rand55 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2741.     local rand56 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2742.     local rand57 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2743.     local rand58 = id_bbrandomloot5[math.random(#id_bbrandomloot5)]
  2744.     local rand59 = id_bbrandomloot7[math.random(#id_bbrandomloot6)]
  2745.     local rand60 = id_bbrandomloot7[math.random(#id_bbrandomloot6)]
  2746.     local rand61 = id_bbrandomloot7[math.random(#id_bbrandomloot7)]
  2747.     local rand62 = id_bbrandomloot7[math.random(#id_bbrandomloot7)]
  2748.     local rand63 = id_bbrandomloot7[math.random(#id_bbrandomloot7)]
  2749.     local rand64 = id_bbrandomloot7[math.random(#id_bbrandomloot7)]
  2750.     local rand65 = id_bbrandomloot7[math.random(#id_bbrandomloot7)]
  2751.     local rand66 = id_bbrandomloot7[math.random(#id_bbrandomloot7)]
  2752.     local rand67 = id_bbrandomloot7[math.random(#id_bbrandomloot7)]
  2753.     local rand68 = id_bbrandomloot7[math.random(#id_bbrandomloot7)]
  2754.     local rand69 = id_bbrandomloot7[math.random(#id_bbrandomloot7)]
  2755.     local rand70 = id_bbrandomloot7[math.random(#id_bbrandomloot7)]
  2756.     local rand71 = id_bbrandomloot7[math.random(#id_bbrandomloot7)]
  2757.     local rand72 = id_bbrandomloot7[math.random(#id_bbrandomloot7)]
  2758.     local rand73 = id_bbrandomloot7[math.random(#id_bbrandomloot7)]
  2759.     local rand74 = id_bbrandomloot7[math.random(#id_bbrandomloot7)]
  2760.     local rand75 = id_bbrandomloot8[math.random(#id_bbrandomloot8)]
  2761.  
  2762.     World:spawn_unit( Idstring(
  2763.     "units/payday2/props/bnk_prop_security_moneycounter/bnk_prop_security_moneycounter" ),
  2764.     Vector3(-2416, -371, -1000), Rotation(180) )
  2765.  
  2766.     World:spawn_unit( Idstring(
  2767.     "units/payday2/props/bnk_prop_security_moneycounter/bnk_prop_security_moneycounter" ),
  2768.     Vector3(-2346, -371, -1000), Rotation(180) )
  2769.  
  2770.     World:spawn_unit( Idstring(
  2771.     "units/payday2/props/bnk_prop_security_moneycounter/bnk_prop_security_moneycounter" ),
  2772.     Vector3(-2745, -38, -1000), Rotation(90) )
  2773.  
  2774.     local spawns = {
  2775.         rand and World:spawn_unit( rand,
  2776.         Vector3(1334, -1559, -551.624), Rotation(183) ),
  2777.  
  2778.         rand1 and World:spawn_unit( rand1,
  2779.         Vector3(1472, -1715, -46.7), Rotation(0) ),
  2780.  
  2781.         rand2 and World:spawn_unit( rand2,
  2782.         Vector3(1320, -2100, -51.7), Rotation(90) ),
  2783.  
  2784.         rand3 and World:spawn_unit( rand3,
  2785.         Vector3(789, -1910, -46.7), Rotation(0) ),
  2786.  
  2787.         rand4 and World:spawn_unit( rand4,
  2788.         Vector3(425, -1562, -51.7), Rotation(90) ),
  2789.  
  2790.         rand5 and World:spawn_unit( rand5,
  2791.         Vector3(316, -1678, -551.624), Rotation(42) ),
  2792.  
  2793.         rand6 and World:spawn_unit( rand6,
  2794.         Vector3(3240, 1947, -190), Rotation(0) ),
  2795.  
  2796.         rand7 and World:spawn_unit( rand7,
  2797.         Vector3(-3432, 198, -925), Rotation(0) ),
  2798.  
  2799.         rand8 and World:spawn_unit( rand8,
  2800.         Vector3(-2535, 1849, -511.7), Rotation(0) ),
  2801.  
  2802.         rand9 and World:spawn_unit( rand9,
  2803.         Vector3(-1800, 1175, -500.71), Rotation(0) ),
  2804.  
  2805.         rand10 and World:spawn_unit( rand10,
  2806.         Vector3(-3721, 1547, -911.7), Rotation(0) ),
  2807.  
  2808.         rand11 and World:spawn_unit( rand11,
  2809.         Vector3(-917, 1372, -500.886), Rotation(0) ),
  2810.  
  2811.         rand12 and World:spawn_unit( rand12,
  2812.         Vector3(-1062, 1372, -500.886), Rotation(0) ),
  2813.  
  2814.         rand13 and World:spawn_unit( rand13,
  2815.         Vector3(-1320, 1372, -500.886), Rotation(0) ),
  2816.  
  2817.         rand14 and World:spawn_unit( rand14,
  2818.         Vector3(-1461, 1372, -500.886), Rotation(0) ),
  2819.  
  2820.         rand15 and World:spawn_unit( rand15,
  2821.         Vector3(1490, -1770, -405.014), Rotation(270) ),
  2822.  
  2823.         rand16 and World:spawn_unit( rand16,
  2824.         Vector3(1490, -1790, -405.014), Rotation(270) ),
  2825.  
  2826.         rand17 and World:spawn_unit( rand17,
  2827.         Vector3(1490, -1810, -405.014), Rotation(270) ),
  2828.  
  2829.         rand18 and World:spawn_unit( rand18,
  2830.         Vector3(1490, -1830, -405.014), Rotation(270) ),
  2831.  
  2832.         rand19 and World:spawn_unit( rand19,
  2833.         Vector3(574, -1050, -524.699), Rotation(0) ),
  2834.  
  2835.         rand20 and World:spawn_unit( rand20,
  2836.         Vector3(3110, 1280, -900.639), Rotation(90) ),
  2837.  
  2838.         rand21 and World:spawn_unit( rand21,
  2839.         Vector3(3110, 1415, -900.639), Rotation(90) ),
  2840.  
  2841.         rand22 and World:spawn_unit( rand22,
  2842.         Vector3(875, 1353, -834.5), Rotation(0) ),
  2843.  
  2844.         rand23 and World:spawn_unit( rand23,
  2845.         Vector3(3962, -862, -551.374), Rotation(261) ),
  2846.  
  2847.         rand24 and World:spawn_unit( rand24,
  2848.         Vector3(2325, 1371, -924.696), Rotation(90) ),
  2849.  
  2850.         rand25 and World:spawn_unit( rand25,
  2851.         Vector3(2500, 1723, -924.696), Rotation(0) ),
  2852.  
  2853.         rand26 and World:spawn_unit( rand26,
  2854.         Vector3(1800, 1723, -924.696), Rotation(0) ),
  2855.  
  2856.         rand27 and World:spawn_unit( rand27,
  2857.         Vector3(148, -1125, -433.889), Rotation(90) ),
  2858.  
  2859.         rand28 and World:spawn_unit( rand28,
  2860.         Vector3(3270, -1067, -900.639), Rotation(180) ),
  2861.  
  2862.         rand29 and World:spawn_unit( rand29,
  2863.         Vector3(-3131, -2253, -511.6), Rotation(180) ),
  2864.  
  2865.         rand30 and World:spawn_unit( rand30,
  2866.         Vector3(1276, -2153, -834.5), Rotation(180) ),
  2867.  
  2868.         rand31 and World:spawn_unit( rand31,
  2869.         Vector3(-1001, -124.5, -980.598), Rotation(225) ),
  2870.  
  2871.         rand32 and World:spawn_unit( rand32,
  2872.         Vector3(-1598, 373, -980.598), Rotation(45) ),
  2873.  
  2874.         rand33 and World:spawn_unit( rand33,
  2875.         Vector3(-3980, 1388, -496.194), Rotation(90) ),
  2876.  
  2877.         rand34 and World:spawn_unit( rand34,
  2878.         Vector3(-3980, 1513, -496.194), Rotation(90) ),
  2879.  
  2880.         rand35 and World:spawn_unit( rand35,
  2881.         Vector3(3342, -1067, -900.639), Rotation(180) ),
  2882.  
  2883.         rand36 and World:spawn_unit( rand36,
  2884.         Vector3(3900, 1075, -551.373), Rotation(270) ),
  2885.  
  2886.         rand37 and World:spawn_unit( rand37,
  2887.         Vector3(800, -1827, -405.014), Rotation(270) ),
  2888.  
  2889.         rand38 and World:spawn_unit( rand38,
  2890.         Vector3(853, -12, -951.37), Rotation(90) ),
  2891.  
  2892.         rand39 and World:spawn_unit( rand39,
  2893.         Vector3(-1390, 1372, -588.5), Rotation(0) ),
  2894.  
  2895.         rand40 and World:spawn_unit( rand40,
  2896.         Vector3(-989, 1372, -588.5), Rotation(0) ),
  2897.  
  2898.         rand41 and World:spawn_unit( rand41,
  2899.         Vector3(478, -1053, -524.699), Rotation(0) ),
  2900.  
  2901.         rand42 and World:spawn_unit( rand42,
  2902.         Vector3(-1200, 937, -551.618), Rotation(180) ),
  2903.  
  2904.         rand43 and World:spawn_unit( rand43,
  2905.         Vector3(330, -1620, -551.624), Rotation(140) ),
  2906.  
  2907.         rand44 and World:spawn_unit( rand44,
  2908.         Vector3(-1197, 914, -589.52), Rotation(220) ),
  2909.  
  2910.         rand45 and World:spawn_unit( rand45,
  2911.         Vector3(-2370, -1844, -524.921), Rotation(220) ),
  2912.  
  2913.         rand46 and World:spawn_unit( rand46,
  2914.         Vector3(-3409, 1290, -524.921), Rotation(18) ),
  2915.  
  2916.         rand47 and World:spawn_unit( rand47,
  2917.         Vector3(562, -1893, -523.016), Rotation(101) ),
  2918.  
  2919.         rand48 and World:spawn_unit( rand48,
  2920.         Vector3(1286, -1906, -523.095), Rotation(98) ),
  2921.  
  2922.         rand49 and World:spawn_unit( rand49,
  2923.         Vector3(2721, 1360, -922.772), Rotation(188) ),
  2924.  
  2925.         rand50 and World:spawn_unit( rand50,
  2926.         Vector3(2046, 1362, -922.772), Rotation(192) ),
  2927.  
  2928.         rand51 and World:spawn_unit( rand51,
  2929.         Vector3(1960, 1429, -922.772), Rotation(30) ),
  2930.  
  2931.         rand52 and World:spawn_unit( rand52,
  2932.         Vector3(2457, 1892, -922.772), Rotation(11) ),
  2933.  
  2934.         rand53 and World:spawn_unit( rand53,
  2935.         Vector3(2337, 1345, -522.762), Rotation(-8) ),
  2936.  
  2937.         rand54 and World:spawn_unit( rand54,
  2938.         Vector3(1167, 1205, -522.762), Rotation(6) ),
  2939.  
  2940.         rand55 and World:spawn_unit( rand55,
  2941.         Vector3(2878, 1202, -522.762), Rotation(186) ),
  2942.  
  2943.         rand56 and World:spawn_unit( rand56,
  2944.         Vector3(1933, 1544, -522.762), Rotation(273) ),
  2945.  
  2946.         rand57 and World:spawn_unit( rand57,
  2947.         Vector3(2950, 708, -905), Rotation(274) ),
  2948.  
  2949.         rand58 and World:spawn_unit( rand58,
  2950.         Vector3(2343, 282, -891.116), Rotation(274) ),
  2951.  
  2952.         rand59 and World:spawn_unit( rand59,
  2953.         Vector3(-2546, 180, -906.8), Rotation(90) ),
  2954.  
  2955.         rand60 and World:spawn_unit( rand60,
  2956.         Vector3(-2744, -366, -906.8), Rotation(0) ),
  2957.  
  2958.         rand61 and World:spawn_unit( rand61,
  2959.         Vector3(-5069, -239, -916.215), Rotation(180) ),
  2960.  
  2961.         rand62 and World:spawn_unit( rand62,
  2962.         Vector3(-5069, -239, -866.215), Rotation(180) ),
  2963.  
  2964.         rand63 and World:spawn_unit( rand63,
  2965.         Vector3(-5069, -239, -516.215), Rotation(180) ),
  2966.  
  2967.         rand64 and World:spawn_unit( rand64,
  2968.         Vector3(-5069, -239, -466.215), Rotation(180) ),
  2969.  
  2970.         rand65 and World:spawn_unit( rand65,
  2971.         Vector3(-5130, -1761, -916.215), Rotation(0) ),
  2972.  
  2973.         rand66 and World:spawn_unit( rand66,
  2974.         Vector3(-5130, -1761, -866.215), Rotation(0) ),
  2975.  
  2976.         rand67 and World:spawn_unit( rand67,
  2977.         Vector3(-5130, -1761, -516.215), Rotation(0) ),
  2978.  
  2979.         rand68 and World:spawn_unit( rand68,
  2980.         Vector3(-5130, -1761, -466.215), Rotation(0) ),
  2981.  
  2982.         rand69 and World:spawn_unit( rand69,
  2983.         Vector3(-4010, -1870, -916.215), Rotation(270) ),
  2984.  
  2985.         rand70 and World:spawn_unit( rand70,
  2986.         Vector3(-4010, -1870, -866.215), Rotation(270) ),
  2987.  
  2988.         rand71 and World:spawn_unit( rand71,
  2989.         Vector3(-4010, -1870, -516.215), Rotation(270) ),
  2990.  
  2991.         rand72 and World:spawn_unit( rand72,
  2992.         Vector3(-4010, -1870, -466.215), Rotation(270) ),
  2993.  
  2994.         rand73 and World:spawn_unit( rand73,
  2995.         Vector3(-3631, -1761, -916.215), Rotation(0) ),
  2996.  
  2997.         rand74 and World:spawn_unit( rand74,
  2998.         Vector3(-3631, -1761, -866.215), Rotation(0) ),
  2999.     }
  3000.     for k,v in pairs(spawns) do if v then v:interaction():set_active(true,true) end end
  3001.  
  3002.     autoloot_containers = {}
  3003.     if rand75 then table.insert(autoloot_containers, {
  3004.         { World:spawn_unit( rand75,
  3005.         Vector3(1587, 885, -904), Rotation(360) ),
  3006.             "door_opened",
  3007.             "interact"
  3008.         },
  3009.         'local unit = World:spawn_unit( Idstring('
  3010.         .. '"units/payday2/props/bnk_prop_vault_loot/bnk_prop_vault_loot_special_money" ),'
  3011.         .. 'Vector3(1560, 858, -896), Rotation(90) )'
  3012.         .. 'unit:interaction():set_active(true, true)'
  3013.     }) end
  3014.     for k,v in ipairs(autoloot_containers) do if v then v[1][1]:base():activate() end end
  3015. end
  3016. ----------------------
  3017. ------- GAME ---------
  3018. ----------------------
  3019. autoloot_containers = autoloot_containers or {}
  3020. id_ukrandomloot5 = id_ukrandomloot5 or {}
  3021. id_jsrandomloot3 = id_jsrandomloot3 or {}
  3022. CoreUnitDamage_run_sequence = CoreUnitDamage_run_sequence or CoreUnitDamage.run_sequence
  3023. function CoreUnitDamage:run_sequence( name, endurance_type, source_unit, dest_body, normal, position, direction, damage, velocity, params )
  3024.     for _,loot in ipairs(autoloot_containers) do
  3025.         if loot[1][1] == self._unit then
  3026.             local continue = false
  3027.             for _,spawns in ipairs(loot) do
  3028.                 if type(spawns) == "table" then
  3029.                     for _,sequences in ipairs(spawns) do
  3030.                         if sequences == name then continue = true end
  3031.                     end
  3032.                 elseif continue == true and type(spawns) == "string" then
  3033.                     local func = loadstring(spawns)
  3034.                     func()
  3035.     end end end end
  3036.     CoreUnitDamage_run_sequence( self, name, endurance_type, source_unit, dest_body, normal, position, direction, damage, velocity, params )
  3037. end
  3038.  
  3039.  
  3040. function autoloot()
  3041.     if inGame() and isPlaying() and isHost() then
  3042.         autoloot_containers = {}
  3043.  
  3044.         if managers.job:current_level_id() == "branchbank" then bank()
  3045.  
  3046.         elseif managers.job:current_level_id() == "family" then diamondstore()
  3047.  
  3048.         elseif managers.job:current_level_id() == "roberts" then gobank()
  3049.  
  3050.         elseif managers.job:current_level_id() == "four_stores" then fourstores()
  3051.  
  3052.         elseif managers.job:current_level_id() == "mallcrasher" then mallcrasher()
  3053.  
  3054.         elseif managers.job:current_level_id() == "ukrainian_job" then ukranianjob()
  3055.  
  3056.         elseif managers.job:current_level_id() == "jewelry_store" then jewels()
  3057.  
  3058.         elseif managers.job:current_level_id() == "election_day_2" then electionwarehouse()
  3059.  
  3060.         elseif managers.job:current_level_id() == "firestarter_3" then bank()
  3061.  
  3062.         elseif managers.job:current_level_id() == "firestarter_2" then firestarterd2()
  3063.  
  3064.         elseif managers.job:current_level_id() == "alex_2" then ratsday2()
  3065.  
  3066.         elseif managers.job:current_level_id() == "alex_3" then ratsday3()
  3067.  
  3068.         elseif managers.job:current_level_id() == "welcome_to_the_jungle_1" then bigoilday1()
  3069.  
  3070.         elseif managers.job:current_level_id() == "welcome_to_the_jungle_2" then bigoilday2()
  3071.  
  3072.         elseif managers.job:current_level_id() == "nightclub" then nightclub()
  3073.  
  3074.         elseif managers.job:current_level_id() == "kosugi" then shadow()
  3075.  
  3076.         elseif managers.job:current_level_id() == "big" then bigbank()
  3077.  
  3078.         elseif managers.job:current_level_id() == "arm_cro" then transportcross()
  3079.  
  3080.         else
  3081.         ChatMessage("MAP UNAVAILABLE FOR LOOT", "AUTOLOOT")
  3082.         return
  3083.         end
  3084.     elseif not isHost() then
  3085.         ChatMessage("YOU ARE NOT THE HOST", "AUTOLOOT")
  3086.         return
  3087.     end
  3088.     ChatMessage("LOOT SPAWNED", "AUTOLOOT")
  3089. end
  3090.  
  3091. IngameWaitingForPlayersState_at_exit = IngameWaitingForPlayersState_at_exit or IngameWaitingForPlayersState.at_exit
  3092. function IngameWaitingForPlayersState:at_exit()
  3093.         IngameWaitingForPlayersState_at_exit( self )
  3094.         if autoloot then autoloot() end
  3095.     if autoequip then autoequip() end
  3096. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement