Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- openmenu = functionERROR_nil:show()
- end
- if not inGame() then
- spoofmyfuckingname = functionSetConfig("SpoofName", "" .. ERROR_nil .. "", true)
- end
- end
- if not dontwait then
- dontwait = functionif managers.network:game() then
- managers.network:game():spawn_players()
- end
- end
- end
- if inGame() and isPlaying() then
- if not _deadCop then
- _deadCop = CopDamage.die
- end
- ServerSpawnBag = function if not alive(managers.player:player_unit()) then
- return
- end
- if Network:is_client() then
- managers.network:session():send_to_host("server_drop_carry", ERROR_nil, managers.money:get_bag_value(ERROR_nil), true, true, 1, managers.player:player_unit():camera():position(), managers.player:player_unit():camera():rotation(), managers.player:player_unit():camera():forward(), 100)
- else
- managers.player:server_drop_carry(ERROR_nil, managers.money:get_bag_value(ERROR_nil), true, true, 1, managers.player:player_unit():camera():position(), managers.player:player_unit():camera():rotation(), managers.player:player_unit():camera():forward(), 100)
- end
- end
- GiveBag = function if not alive(managers.player:player_unit()) or managers.player:is_carrying() then
- return
- end
- managers.player:set_carry(ERROR_nil, managers.money:get_bag_value(ERROR_nil), true, true, 1)
- end
- if not freekill then
- freekill = function MoneyManager.get_civilian_deduction = function return 0
- end
- MoneyManager.civilian_killed = function return
- end
- UnitNetworkHandler.sync_hostage_killed_warning = function return 0
- end
- end
- end
- if not sppersonbag then
- sppersonbag = function ServerSpawnBag("person")
- managers.hud:show_hint({text = "BODY BAG SPAWNED"})
- end
- end
- if not sppaintbag then
- sppaintbag = function ServerSpawnBag("painting")
- managers.hud:show_hint({text = "PAINTING BAG SPAWNED"})
- end
- end
- if not spservbag then
- spservbag = function ServerSpawnBag("circuit")
- managers.hud:show_hint({text = "SERVER BAG SPAWNED"})
- end
- end
- if not spenginebag then
- spenginebag = function ServerSpawnBag("engine_01")
- managers.hud:show_hint({text = "FUSION ENGINE BAG SPAWNED"})
- end
- end
- if not spthermbag then
- spthermbag = function ServerSpawnBag("lance_bag")
- managers.hud:show_hint({text = "THERMAL DRILL BAG SPAWNED"})
- end
- end
- if not spsthermbag then
- spsthermbag = function GiveBag("lance_bag")
- end
- end
- if not spturret1 then
- spturret1 = function ServerSpawnBag("turret")
- managers.hud:show_hint({text = "TURRET WEAPON PART BAG SPAWNED"})
- end
- end
- if not spsturret1 then
- spsturret1 = function GiveBag("turret")
- end
- end
- if not spdrillinv then
- spdrillinv = function managers.player:add_special({name = "drill", silent = true, amount = 1})
- managers.hud:show_hint({text = "Drill added to inventory"})
- end
- end
- if not spgoldinv then
- spgoldinv = function managers.player:add_special({name = "gold", silent = false, amount = 1})
- managers.hud:show_hint({text = "Goldbar added to inventory"})
- end
- end
- if not spcrowinv then
- spcrowinv = function managers.player:add_special({name = "crowbar", silent = true, amount = 1})
- managers.hud:show_hint({text = "Crowbar added to inventory"})
- end
- end
- if not spchavesinv then
- spchavesinv = function managers.player:add_special({name = "chavez_key", silent = true, amount = 1})
- managers.hud:show_hint({text = " Chaves Key added to inventory"})
- end
- end
- if not spbloodinv then
- spbloodinv = function managers.player:add_special({name = "blood_sample", silent = true, amount = 1})
- managers.hud:show_hint({text = "Bloodsample added to inventory"})
- end
- end
- if not spgcutinv then
- spgcutinv = function managers.player:add_special({name = "glass_cutter", silent = true, amount = 1})
- managers.hud:show_hint({text = "Glass cutter added to inventory"})
- end
- end
- if not spbmkey then
- spbmkey = function managers.player:add_special({name = "bank_manager_key", silent = true, amount = 1})
- managers.hud:show_hint({text = "Bankmanagers keycard added to inventory"})
- end
- end
- if not statenorm then
- statenorm = function managers.player:set_player_state("standard")
- end
- end
- if not stateclean then
- stateclean = function managers.player:set_player_state("clean")
- end
- end
- if not statecarry then
- statecarry = function managers.player:set_player_state("carry")
- end
- end
- if not statecuffs then
- statecuffs = function managers.player:set_player_state("arrested")
- end
- end
- if not statetased then
- statetased = function managers.player:set_player_state("tased")
- end
- end
- if not stateblood then
- stateblood = function managers.player:set_player_state("bleed_out")
- end
- end
- if not stateinca then
- stateinca = function managers.player:set_player_state("incapacitated")
- end
- end
- if not ply1level1 then
- ply1level1 = function if managers.network:session():peer(1) then
- managers.network:session():peer(1):set_level(1)
- end
- managers.network:session():send_to_peers_synched("sync_level_up", 1, 1)
- end
- end
- if not ply2level1 then
- ply2level1 = function if managers.network:session():peer(2) then
- managers.network:session():peer(2):set_level(1)
- end
- managers.network:session():send_to_peers_synched("sync_level_up", 2, 1)
- end
- end
- if not ply3level1 then
- ply3level1 = function if managers.network:session():peer(3) then
- managers.network:session():peer(3):set_level(1)
- end
- managers.network:session():send_to_peers_synched("sync_level_up", 3, 1)
- end
- end
- if not ply4level1 then
- ply4level1 = function if managers.network:session():peer(4) then
- managers.network:session():peer(4):set_level(1)
- end
- managers.network:session():send_to_peers_synched("sync_level_up", 4, 1)
- end
- end
- if not ply1level100 then
- ply1level100 = function if managers.network:session():peer(1) then
- managers.network:session():peer(1):set_level(100)
- end
- managers.network:session():send_to_peers_synched("sync_level_up", 1, 100)
- end
- end
- if not ply2level100 then
- ply2level100 = function if managers.network:session():peer(2) then
- managers.network:session():peer(2):set_level(100)
- end
- managers.network:session():send_to_peers_synched("sync_level_up", 2, 100)
- end
- end
- if not ply3level100 then
- ply3level100 = function if managers.network:session():peer(3) then
- managers.network:session():peer(3):set_level(100)
- end
- managers.network:session():send_to_peers_synched("sync_level_up", 3, 100)
- end
- end
- if not ply4level100 then
- ply4level100 = function if managers.network:session():peer(4) then
- managers.network:session():peer(4):set_level(100)
- end
- managers.network:session():send_to_peers_synched("sync_level_up", 4, 100)
- end
- end
- if not ply1level255 then
- ply1level255 = function if managers.network:session():peer(1) then
- managers.network:session():peer(1):set_level(255)
- end
- managers.network:session():send_to_peers_synched("sync_level_up", 1, 255)
- end
- end
- if not ply2level255 then
- ply2level255 = function if managers.network:session():peer(2) then
- managers.network:session():peer(2):set_level(255)
- end
- managers.network:session():send_to_peers_synched("sync_level_up", 2, 255)
- end
- end
- if not ply3level255 then
- ply3level255 = function if managers.network:session():peer(3) then
- managers.network:session():peer(3):set_level(255)
- end
- managers.network:session():send_to_peers_synched("sync_level_up", 3, 255)
- end
- end
- if not ply4level255 then
- ply4level255 = function if managers.network:session():peer(4) then
- managers.network:session():peer(4):set_level(255)
- end
- managers.network:session():send_to_peers_synched("sync_level_up", 4, 255)
- end
- end
- if not teamlvl1 then
- teamlvl1 = function -- WARNING: pending registers. Declaring locals.
- local l_41_0 = 1
- for i_0,i_1 in pairs(managers.groupai:state():all_player_criminals()) do
- if i_1.status ~= "dead" then
- managers.network:session():peer(l_41_0):set_level(1)
- managers.network:session():send_to_peers_synched("sync_level_up", l_41_0, 1)
- end
- end
- -- WARNING: undefined locals caused missing assignments!
- end
- end
- if not teamlvl100 then
- teamlvl100 = function -- WARNING: pending registers. Declaring locals.
- local l_42_0 = 1
- for i_0,i_1 in pairs(managers.groupai:state():all_player_criminals()) do
- if i_1.status ~= "dead" then
- managers.network:session():peer(l_42_0):set_level(100)
- managers.network:session():send_to_peers_synched("sync_level_up", l_42_0, 100)
- end
- end
- -- WARNING: undefined locals caused missing assignments!
- end
- end
- if not teamlvl255 then
- teamlvl255 = function -- WARNING: pending registers. Declaring locals.
- local l_43_0 = 1
- for i_0,i_1 in pairs(managers.groupai:state():all_player_criminals()) do
- if i_1.status ~= "dead" then
- managers.network:session():peer(l_43_0):set_level(255)
- managers.network:session():send_to_peers_synched("sync_level_up", l_43_0, 255)
- end
- end
- -- WARNING: undefined locals caused missing assignments!
- end
- end
- if not teleporttoply then
- teleporttoply = function -- WARNING: pending registers. Declaring locals.
- local l_44_1 = nil
- for i_0,i_1 in pairs(managers.groupai:state():all_player_criminals()) do
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_44_7 = managers.groupai:state():all_player_criminals()[i_0].unit
- if i_1.status ~= "dead" and managers.groupai:state():all_player_criminals()[i_0].unit:network():peer():id() == ERROR_nil then
- l_44_1 = l_44_7:position()
- end
- end
- if l_44_1 then
- managers.player:warp_to(l_44_1, managers.player:player_unit():rotation())
- end
- end
- end
- nukeunit = function ERROR_nil.unit:character_damage():damage_explosion({variant = "explosion", damage = 1000, attacker_unit = managers.player:player_unit(),
- col_ray = {ray = Vector3(1, 0, 0), position = ERROR_nil.unit:position()}})
- end
- if not apocalypse then
- apocalypse = function for i_0,i_1 in pairs(managers.enemy:all_civilians()) do
- nukeunit(i_1)
- end
- for i_0,i_1 in pairs(managers.enemy:all_enemies()) do
- i_1.char_tweak.has_alarm_pager = nil
- nukeunit(i_1)
- end
- end
- end
- unlock_asset = function if managers.assets:_get_asset_by_id(ERROR_nil) then
- if Network:is_server() and not managers.assets:get_asset_triggered_by_id(ERROR_nil) then
- managers.assets:server_unlock_asset(ERROR_nil)
- else
- if not managers.assets:get_asset_unlocked_by_id(ERROR_nil) then
- managers.network:session():send_to_host("server_unlock_asset", ERROR_nil)
- end
- end
- managers.assets:_get_asset_by_id(ERROR_nil).show = true
- else
- table.insert(managers.assets._global.assets, {id = ERROR_nil, unlocked = true, show = true, can_unlock = false})
- end
- managers.assets:init_finalize()
- managers.menu_component:create_asset_mission_briefing_gui()
- end
- if not escnone then
- escnone = function unlock_asset("safe_escape")
- end
- end
- spawn_bulldozer = function World:spawn_unit(Idstring("units/payday2/characters/ene_bulldozer_1/ene_bulldozer_1"), ERROR_nil, ERROR_nil):base().bulldozer = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_bulldozer_1/ene_bulldozer_1"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_bulldozer_1/ene_bulldozer_1"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_bulldozer_1/ene_bulldozer_1"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- if not bullcop then
- bullcop = function if not _deadCop then
- _deadCop = CopDamage.die
- end
- CopDamage.die = function return _deadCop(ERROR_nil, ERROR_nil)
- end
- CopDamage.die = function if not ERROR_nil._unit:base().bulldozer then
- spawn_bulldozer(ERROR_nil._unit:position(), ERROR_nil._unit:rotation())
- end
- return _deadCop(ERROR_nil, ...)
- end
- end
- end
- spawn_cop_1 = function World:spawn_unit(Idstring("units/payday2/characters/ene_cop_1/ene_cop_1"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_cop_1/ene_cop_1"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_cop_1/ene_cop_1"), ERROR_nil, ERROR_nil):brain():set_active(true)
- World:spawn_unit(Idstring("units/payday2/characters/ene_cop_1/ene_cop_1"), ERROR_nil, ERROR_nil):base().cop_1 = true
- end
- spawn_cop_2 = function World:spawn_unit(Idstring("units/payday2/characters/ene_cop_2/ene_cop_2"), ERROR_nil, ERROR_nil):base().cop_2 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_cop_2/ene_cop_2"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_cop_2/ene_cop_2"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_cop_2/ene_cop_2"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_cop_3 = function World:spawn_unit(Idstring("units/payday2/characters/ene_cop_3/ene_cop_3"), ERROR_nil, ERROR_nil):base().cop_3 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_cop_3/ene_cop_3"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_cop_3/ene_cop_3"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_cop_3/ene_cop_3"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_cop_4 = function World:spawn_unit(Idstring("units/payday2/characters/ene_cop_4/ene_cop_4"), ERROR_nil, ERROR_nil):base().cop_4 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_cop_4/ene_cop_4"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_cop_4/ene_cop_4"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_cop_4/ene_cop_4"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_bulldozer = function World:spawn_unit(Idstring("units/payday2/characters/ene_bulldozer_1/ene_bulldozer_1"), ERROR_nil, ERROR_nil):base().bulldozer = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_bulldozer_1/ene_bulldozer_1"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_bulldozer_1/ene_bulldozer_1"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_bulldozer_1/ene_bulldozer_1"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_fbi_1 = function World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_1/ene_fbi_1"), ERROR_nil, ERROR_nil):base().fbi_1 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_1/ene_fbi_1"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_1/ene_fbi_1"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_1/ene_fbi_1"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_fbi_2 = function World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_2/ene_fbi_2"), ERROR_nil, ERROR_nil):base().fbi_2 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_2/ene_fbi_2"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_2/ene_fbi_2"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_2/ene_fbi_2"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_fbi_3 = function World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_3/ene_fbi_3"), ERROR_nil, ERROR_nil):base().fbi_3 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_3/ene_fbi_3"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_3/ene_fbi_3"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_3/ene_fbi_3"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_fbi_4 = function World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_heavy_1/ene_fbi_heavy_1"), ERROR_nil, ERROR_nil):base().fbi_4 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_heavy_1/ene_fbi_heavy_1"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_heavy_1/ene_fbi_heavy_1"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_heavy_1/ene_fbi_heavy_1"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_swat_f_1 = function World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_swat_1/ene_fbi_swat_1"), ERROR_nil, ERROR_nil):base().swat_f_1 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_swat_1/ene_fbi_swat_1"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_swat_1/ene_fbi_swat_1"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_swat_1/ene_fbi_swat_1"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_swat_f_2 = function World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_swat_2/ene_fbi_swat_2"), ERROR_nil, ERROR_nil):base().swat_f_2 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_swat_2/ene_fbi_swat_2"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_swat_2/ene_fbi_swat_2"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_fbi_swat_2/ene_fbi_swat_2"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_shield_1 = function World:spawn_unit(Idstring("units/payday2/characters/ene_shield_1/ene_shield_1"), ERROR_nil, ERROR_nil):base().shield_1 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_shield_1/ene_shield_1"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_shield_1/ene_shield_1"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_shield_1/ene_shield_1"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_shield_2 = function World:spawn_unit(Idstring("units/payday2/characters/ene_shield_2/ene_shield_2"), ERROR_nil, ERROR_nil):base().shield_2 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_shield_2/ene_shield_2"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_shield_2/ene_shield_2"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_shield_2/ene_shield_2"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_sniper_1 = function World:spawn_unit(Idstring("units/payday2/characters/ene_sniper_1/ene_sniper_1"), ERROR_nil, ERROR_nil):base().sniper_1 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_sniper_1/ene_sniper_1"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_sniper_1/ene_sniper_1"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_sniper_1/ene_sniper_1"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_sniper_2 = function World:spawn_unit(Idstring("units/payday2/characters/ene_sniper_2/ene_sniper_2"), ERROR_nil, ERROR_nil):base().sniper_2 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_sniper_2/ene_sniper_2"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_sniper_2/ene_sniper_2"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_sniper_2/ene_sniper_2"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_spook_1 = function World:spawn_unit(Idstring("units/payday2/characters/ene_spook_1/ene_spook_1"), ERROR_nil, ERROR_nil):base().spook_1 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_spook_1/ene_spook_1"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_spook_1/ene_spook_1"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_spook_1/ene_spook_1"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_swat_1 = function World:spawn_unit(Idstring("units/payday2/characters/ene_swat_1/ene_swat_1"), ERROR_nil, ERROR_nil):base().swat_1 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_swat_1/ene_swat_1"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_swat_1/ene_swat_1"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_swat_1/ene_swat_1"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_swat_2 = function World:spawn_unit(Idstring("units/payday2/characters/ene_swat_2/ene_swat_2"), ERROR_nil, ERROR_nil):base().swat_2 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_swat_2/ene_swat_2"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_swat_2/ene_swat_2"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_swat_2/ene_swat_2"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_swat_heavy_1 = function World:spawn_unit(Idstring("units/payday2/characters/ene_swat_heavy_1/ene_swat_heavy_1"), ERROR_nil, ERROR_nil):base().swat_heavy_1 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_swat_heavy_1/ene_swat_heavy_1"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_swat_heavy_1/ene_swat_heavy_1"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "attack"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_swat_heavy_1/ene_swat_heavy_1"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_tazer_1 = function World:spawn_unit(Idstring("units/payday2/characters/ene_tazer_1/ene_tazer_1"), ERROR_nil, ERROR_nil):base().tazer_1 = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_tazer_1/ene_tazer_1"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_tazer_1/ene_tazer_1"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "idle"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_tazer_1/ene_tazer_1"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- if not onetotwo then
- onetotwo = function if not _deadCop then
- _deadCop = CopDamage.die
- end
- CopDamage.die = function return _deadCop(ERROR_nil, ERROR_nil)
- end
- CopDamage.die = function if not ERROR_nil._unit:base().cop_1 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_cop_1/ene_cop_1") then
- spawn_cop_1(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_cop_1(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().cop_2 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_cop_2/ene_cop_2") then
- spawn_cop_2(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_cop_2(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().cop_3 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_cop_3/ene_cop_3") then
- spawn_cop_3(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_cop_3(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().cop_4 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_cop_4/ene_cop_4") then
- spawn_cop_4(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_cop_4(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().bulldozer and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_bulldozer_1/ene_bulldozer_1") then
- spawn_bulldozer(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_bulldozer(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().fbi_1 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_fbi_1/ene_fbi_1") then
- spawn_fbi_1(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_fbi_1(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().fbi_2 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_fbi_2/ene_fbi_2") then
- spawn_fbi_2(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_fbi_2(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().fbi_3 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_fbi_3/ene_fbi_3") then
- spawn_fbi_3(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_fbi_3(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().fbi_4 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_fbi_heavy_1/ene_fbi_heavy_1") then
- spawn_fbi_4(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_fbi_4(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().swat_f_1 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_fbi_swat_1/ene_fbi_swat_1") then
- spawn_swat_f_1(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_swat_f_1(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().swat_f_2 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_fbi_swat_2/ene_fbi_swat_2") then
- spawn_swat_f_2(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_swat_f_2(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().shield_1 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_shield_1/ene_shield_1") then
- spawn_shield_1(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_shield_1(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().shield_2 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_shield_2/ene_shield_2") then
- spawn_shield_2(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_shield_2(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().sniper_1 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_sniper_1/ene_sniper_1") then
- spawn_sniper_1(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_sniper_1(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().sniper_2 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_sniper_2/ene_sniper_2") then
- spawn_sniper_2(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_sniper_2(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().spook_1 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_spook_1/ene_spook_1") then
- spawn_spook_1(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_spook_1(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().swat_1 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_swat_1/ene_swat_1") then
- spawn_swat_1(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_swat_1(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().swat_2 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_swat_2/ene_swat_2") then
- spawn_swat_2(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_swat_2(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().swat_heavy_1 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_swat_heavy_1/ene_swat_heavy_1") then
- spawn_swat_heavy_1(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_swat_heavy_1(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- if not ERROR_nil._unit:base().tazer_1 and ERROR_nil._unit:name() == Idstring("units/payday2/characters/ene_tazer_1/ene_tazer_1") then
- spawn_tazer_1(Vector3(ERROR_nil._unit:position().x + math.random(9, 10) * 5, ERROR_nil._unit:position().y + math.random(9, 10) * 5, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- spawn_tazer_1(Vector3(ERROR_nil._unit:position().x + math.random(3, 5) * 3, ERROR_nil._unit:position().y + math.random(3, 5) * 3, ERROR_nil._unit:position().z), ERROR_nil._unit:rotation())
- end
- return _deadCop(ERROR_nil, ...)
- end
- end
- end
- find_computer = function for i_0,i_1 in ipairs(World:find_units_quick("all")) do
- if i_1.interaction and i_1:interaction() and i_1:interaction().tweak_data == "computer_test" then
- return i_1
- end
- end
- end
- spawn_loot = function if ERROR_nil then
- mvector3.set_z(mvector3.copy(ERROR_nil), mvector3.copy(ERROR_nil).z + ERROR_nil)
- end
- if Network:is_client() then
- managers.network:session():send_to_host("server_drop_carry", ERROR_nil, (managers.money:get_bag_value(ERROR_nil)), nil, nil, 0, mvector3.copy(ERROR_nil), Rotation(math.UP, math.random() * 360), Vector3(0, 0, 0), 0)
- else
- managers.player:server_drop_carry(ERROR_nil, (managers.money:get_bag_value(ERROR_nil)), nil, nil, 0, mvector3.copy(ERROR_nil), Rotation(math.UP, math.random() * 360), Vector3(0, 0, 0), 0)
- end
- end
- spawn = function World:spawn_unit(Idstring("units/payday2/characters/ene_bulldozer_1/ene_bulldozer_1"), ERROR_nil, ERROR_nil):base().made_of_gold = true
- World:spawn_unit(Idstring("units/payday2/characters/ene_bulldozer_1/ene_bulldozer_1"), ERROR_nil, ERROR_nil):movement():set_character_anim_variables()
- World:spawn_unit(Idstring("units/payday2/characters/ene_bulldozer_1/ene_bulldozer_1"), ERROR_nil, ERROR_nil):brain():set_spawn_ai({init_state = "idle"})
- World:spawn_unit(Idstring("units/payday2/characters/ene_bulldozer_1/ene_bulldozer_1"), ERROR_nil, ERROR_nil):brain():set_active(true)
- end
- spawn_cluster = function for i = 1, ERROR_nil do
- spawn(Vector3(ERROR_nil.x + (math.random() * ERROR_nil * 2 - ERROR_nil), ERROR_nil.y + (math.random() * ERROR_nil * 2 - ERROR_nil), ERROR_nil.z), Rotation(math.UP, math.random() * 360))
- end
- end
- if not _CopDamageDie then
- _CopDamageDie = CopDamage.die
- end
- if not _modCopDamageDir then
- _modCopDamageDie = function if ERROR_nil._unit:base().made_of_gold then
- spawn_loot("gold", ERROR_nil._unit:position(), 120)
- end
- return _deadCop(ERROR_nil, ERROR_nil)
- end
- end
- if not _drillDone then
- _drillDone = Drill.done
- end
- if not _modDrillDone then
- _modDrillDone = function if managers.job:current_level_id() == "branchbank" then
- if find_computer() and find_computer():position().x == -1281 then
- spawn_cluster(Vector3(-2068.93, 2197.47, 1.1), 3, 100)
- spawn_cluster(Vector3(-2222.62, 2285.03, 1.1), 3, 100)
- elseif find_computer() and find_computer():position().x == -2920 then
- spawn_cluster(Vector3(-2246.11, 2061.04, 1.1), 3, 100)
- spawn_cluster(Vector3(-2175.62, 2285.41, 1.1), 3, 100)
- end
- end
- return _drillDone(ERROR_nil)
- end
- end
- if not _deadCiv then
- _deadCiv = CivilianDamage.die
- end
- if not _modDeadCiv then
- _modDeadCiv = function spawn(ERROR_nil._unit:position(), ERROR_nil._unit:rotation())
- ERROR_nil._unit:set_slot(0)
- managers.network:session():send_to_peers_synched("remove_unit", ERROR_nil._unit)
- return _deadCiv(ERROR_nil, ...)
- end
- end
- banktoggle = banktoggle or false
- togglebank = function if banktoggle then
- CopDamage.die = _CopDamageDie
- if _drillDone then
- Drill.done = _drillDone
- end
- CivilianDamage.die = _deadCiv
- banktoggle = false
- managers.hud:show_hint({text = "Goldozer Bank Off"})
- else
- CopDamage.die = _modCopDamageDie
- if _drillDone then
- Drill.done = _modDrillDone
- end
- CivilianDamage.die = _modDeadCiv
- banktoggle = true
- managers.hud:show_hint({text = "Goldozer Bank On"})
- end
- end
- if not faceoff then
- faceoff = function managers.player:set_player_state("throw_grenade")
- show_mid_text("peek a boo...", "MASK OFF", 1.5)
- end
- end
- if not bankbuster then
- bankbuster = function -- WARNING: pending registers. Declaring locals.
- local l_81_1 = nil
- for i_0,i_1 in pairs(managers.interaction._interactive_objects) do
- if i_1.interaction then
- l_81_1 = string.sub(i_1:interaction()._unit:name():t(), 1, 10)
- if l_81_1 == "@ID7999172" or l_81_1 == "@IDe4bc870" or l_81_1 == "@ID51da6d6" or l_81_1 == "@ID8d8c766" or l_81_1 == "@ID50aac55" or l_81_1 == "@ID5dcd177" or l_81_1 == "@IDe93c9b2" then
- end
- table.insert({}, i_1:interaction())
- end
- end
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_81_0 = {}
- for i_0,i_1 in pairs(l_81_0) do
- i_1:interact(managers.player:player_unit())
- end
- show_mid_text("...deposits busted", "Pooooof", 0.5)
- end
- end
- if not giveammoto then
- giveammoto = function -- WARNING: pending registers. Declaring locals.
- local l_82_1 = managers.player:upgrade_level("ammo_bag", "ammo_increase")
- for i_0,i_1 in pairs(managers.groupai:state():all_player_criminals()) do
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_82_7 = managers.groupai:state():all_player_criminals()[i_0].unit
- if i_1.status ~= "dead" and managers.groupai:state():all_player_criminals()[i_0].unit:network():peer():id() == ERROR_nil then
- if Network:is_client() then
- managers.network:session():send_to_host("place_deployable_bag", "AmmoBagBase", l_82_7:position(), managers.player:player_unit():rotation(), l_82_1)
- end
- else
- AmmoBagBase.spawn(l_82_7:position(), managers.player:player_unit():rotation(), l_82_1)
- end
- end
- end
- end
- if not givemedikito then
- givemedikito = function -- WARNING: pending registers. Declaring locals.
- local l_83_1 = managers.player:upgrade_level("doctor_bag", "amount_increase")
- for i_0,i_1 in pairs(managers.groupai:state():all_player_criminals()) do
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_83_7 = managers.groupai:state():all_player_criminals()[i_0].unit
- if i_1.status ~= "dead" and managers.groupai:state():all_player_criminals()[i_0].unit:network():peer():id() == ERROR_nil then
- if Network:is_client() then
- managers.network:session():send_to_host("place_deployable_bag", "DoctorBagBase", l_83_7:position(), managers.player:player_unit():rotation(), l_83_1)
- end
- else
- DoctorBagBase.spawn(l_83_7:position(), managers.player:player_unit():rotation(), l_83_1)
- end
- end
- end
- end
- if not givemoneyto then
- givemoneyto = function for i_0,i_1 in pairs(managers.groupai:state():all_player_criminals()) do
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_84_6 = managers.groupai:state():all_player_criminals()[i_0].unit
- if i_1.status ~= "dead" and managers.groupai:state():all_player_criminals()[i_0].unit:network():peer():id() == ERROR_nil then
- if Network:is_client() then
- managers.network:session():send_to_host("server_drop_carry", "money", (managers.money:get_bag_value("turret")), nil, nil, 0, l_84_6:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, -50), 0)
- end
- else
- managers.player:server_drop_carry("money", (managers.money:get_bag_value("turret")), nil, nil, 0, l_84_6:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, -50), 0)
- end
- end
- end
- end
- if not givegoldto then
- givegoldto = function for i_0,i_1 in pairs(managers.groupai:state():all_player_criminals()) do
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_85_6 = managers.groupai:state():all_player_criminals()[i_0].unit
- if i_1.status ~= "dead" and managers.groupai:state():all_player_criminals()[i_0].unit:network():peer():id() == ERROR_nil then
- if Network:is_client() then
- managers.network:session():send_to_host("server_drop_carry", "gold", (managers.money:get_bag_value("gold")), nil, nil, 0, l_85_6:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, 0), 0)
- end
- else
- managers.player:server_drop_carry("gold", (managers.money:get_bag_value("gold")), nil, nil, 0, l_85_6:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, 0), 0)
- end
- end
- end
- end
- if not goldteam then
- goldteam = function for i_0,i_1 in pairs(managers.groupai:state():all_player_criminals()) do
- if i_1.status ~= "dead" then
- if Network:is_client() then
- managers.network:session():send_to_host("server_drop_carry", "gold", (managers.money:get_bag_value("gold")), nil, nil, 0, managers.groupai:state():all_player_criminals()[i_0].unit:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, -70), 0)
- end
- else
- managers.player:server_drop_carry("gold", (managers.money:get_bag_value("gold")), nil, nil, 0, managers.groupai:state():all_player_criminals()[i_0].unit:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, -100), 0)
- end
- end
- end
- end
- if not moneyteam then
- moneyteam = function for i_0,i_1 in pairs(managers.groupai:state():all_player_criminals()) do
- if i_1.status ~= "dead" then
- if Network:is_client() then
- managers.network:session():send_to_host("server_drop_carry", "money", (managers.money:get_bag_value("turret")), nil, nil, 0, managers.groupai:state():all_player_criminals()[i_0].unit:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, -100), 0)
- managers.network:session():send_to_host("server_drop_carry", "money", (managers.money:get_bag_value("turret")), nil, nil, 0, managers.groupai:state():all_player_criminals()[i_0].unit:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, -100), 0)
- managers.network:session():send_to_host("server_drop_carry", "money", (managers.money:get_bag_value("turret")), nil, nil, 0, managers.groupai:state():all_player_criminals()[i_0].unit:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, -100), 0)
- managers.network:session():send_to_host("server_drop_carry", "money", (managers.money:get_bag_value("turret")), nil, nil, 0, managers.groupai:state():all_player_criminals()[i_0].unit:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, -100), 0)
- managers.network:session():send_to_host("server_drop_carry", "money", (managers.money:get_bag_value("turret")), nil, nil, 0, managers.groupai:state():all_player_criminals()[i_0].unit:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, -100), 0)
- end
- else
- managers.player:server_drop_carry("money", (managers.money:get_bag_value("turret")), nil, nil, 0, managers.groupai:state():all_player_criminals()[i_0].unit:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, -100), 0)
- managers.player:server_drop_carry("money", (managers.money:get_bag_value("turret")), nil, nil, 0, managers.groupai:state():all_player_criminals()[i_0].unit:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, -100), 0)
- managers.player:server_drop_carry("money", (managers.money:get_bag_value("turret")), nil, nil, 0, managers.groupai:state():all_player_criminals()[i_0].unit:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, -100), 0)
- managers.player:server_drop_carry("money", (managers.money:get_bag_value("turret")), nil, nil, 0, managers.groupai:state():all_player_criminals()[i_0].unit:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, -100), 0)
- managers.player:server_drop_carry("money", (managers.money:get_bag_value("turret")), nil, nil, 0, managers.groupai:state():all_player_criminals()[i_0].unit:position(), Rotation(math.UP, math.random() * 360), Vector3(0, 0, -100), 0)
- end
- end
- end
- end
- if not teamnoob then
- teamnoob = function -- WARNING: pending registers. Declaring locals.
- local l_88_0 = 1
- for i_0,i_1 in pairs(managers.groupai:state():all_player_criminals()) do
- if i_1.status ~= "dead" then
- managers.network:session():peer(l_88_0):set_profile(1)
- managers.network:session():peer(l_88_0):set_name("Noob")
- end
- end
- -- WARNING: undefined locals caused missing assignments!
- end
- end
- if not stat1 then
- stat1 = function managers.network:session():peer(1):set_statistics(666, 666, 666, 6, 66)
- end
- end
- if not stat2 then
- stat2 = function managers.network:session():peer(2):set_statistics(666, 666, 666, 6, 66)
- end
- end
- if not stat3 then
- stat3 = function managers.network:session():peer(3):set_statistics(666, 666, 666, 6, 66)
- end
- end
- if not stat4 then
- stat4 = function managers.network:session():peer(4):set_statistics(666, 666, 666, 6, 66)
- end
- end
- if not syncreleaseply1 then
- syncreleaseply1 = function if isHost() then
- IngameWaitingForRespawnState.request_player_spawn(1)
- else
- show_mid_text("..n000000b", "HOST ONLY", 1.5)
- end
- end
- end
- if not syncreleaseply2 then
- syncreleaseply2 = function if isHost() then
- IngameWaitingForRespawnState.request_player_spawn(2)
- else
- show_mid_text("..n000000b", "HOST ONLY", 1.5)
- end
- end
- end
- if not syncreleaseply3 then
- syncreleaseply3 = function if isHost() then
- IngameWaitingForRespawnState.request_player_spawn(3)
- else
- show_mid_text("..n000000b", "HOST ONLY", 1.5)
- end
- end
- end
- if not syncreleaseply4 then
- syncreleaseply4 = function if isHost() then
- IngameWaitingForRespawnState.request_player_spawn(4)
- else
- show_mid_text("..n000000b", "HOST ONLY", 1.5)
- end
- end
- end
- if not releaseteam then
- releaseteam = function syncreleaseply1()
- syncreleaseply2()
- syncreleaseply3()
- syncreleaseply4()
- end
- end
- if not releaseme then
- releaseme = function if game_state_machine:current_state_name() == "ingame_waiting_for_respawn" and not alive(managers.player:player_unit()) then
- IngameWaitingForRespawnState:_begin_game_enter_transition()
- end
- end
- end
- if not sendalltojail then
- sendalltojail = function for i_0,i_1 in pairs(managers.groupai:state():all_player_criminals()) do
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_99_6 = i_1.unit
- if ERROR_nil == i_1.unit:network():peer():id() or ERROR_nil == -1 then
- l_99_6:network():send("sync_player_movement_state", "dead", 0, l_99_6:id())
- l_99_6:network():send_to_unit({"spawn_dropin_penalty", true, nil, 0, nil, nil})
- managers.groupai:state():on_player_criminal_death(l_99_6:network():peer():id())
- end
- end
- end
- end
- if not spraydance then
- spraydance = function end
- end
- if inGame() then
- if not _hasUpgrade then
- _hasUpgrade = BaseInteractionExt._has_required_upgrade
- end
- if not _hasDeploy then
- _hasDeploy = BaseInteractionExt._has_required_deployable
- end
- if not _canInteract then
- _canInteract = BaseInteractionExt.can_interact
- end
- if not _infEquip then
- _infEquip = PlayerManager.remove_equipment
- end
- if not resetinf then
- resetinf = function if _infEquip then
- PlayerManager.remove_equipment = _infEquip
- _infEquip = nil
- end
- if _hasUpgrade then
- BaseInteractionExt._has_required_upgrade = _hasUpgrade
- _hasUpgrade = nil
- end
- if _hasDeploy then
- BaseInteractionExt._has_required_deployable = _hasDeploy
- _hasDeploy = nil
- end
- if _canInteract then
- BaseInteractionExt.can_interact = _canInteract
- _canInteract = nil
- end
- end
- end
- if not dexactany then
- dexactany = function BaseInteractionExt._has_required_upgrade = function return true
- end
- BaseInteractionExt._has_required_deployable = function return true
- end
- BaseInteractionExt.can_interact = function return true
- end
- PlayerManager.remove_equipment = function end
- end
- end
- end
- if not picklockst then
- picklockst = function -- WARNING: pending registers. Declaring locals.
- local l_103_1 = nil
- for i_0,i_1 in pairs(managers.interaction._interactive_objects) do
- if i_1.interaction then
- l_103_1 = string.sub(i_1:interaction()._unit:name():t(), 1, 10)
- if l_103_1 == "@IDe653b95" or l_103_1 == "@ID18a7cac" or l_103_1 == "@IDa25106d" or l_103_1 == "@IDb025e83" or l_103_1 == "@ID08a3353" or l_103_1 == "@ID851f323" or l_103_1 == "@ID8e70272" or l_103_1 == "@ID1d283db" or l_103_1 == "@ID5a95fe8" or l_103_1 == "@ID622b34c" or l_103_1 == "@ID1e56fe5" or l_103_1 == "@IDa096513" or l_103_1 == "@IDcfb8d38" or l_103_1 == "@IDb68beff" or l_103_1 == "@IDcfb8d38" or l_103_1 == "@ID31ccfa0" or l_103_1 == "@IDe653b95" or l_103_1 == "@IDd40d72e" then
- end
- table.insert({}, i_1:interaction())
- end
- end
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_103_0 = {}
- for i_0,i_1 in pairs(l_103_0) do
- i_1:interact(managers.player:player_unit())
- end
- show_mid_text("...open sesame", "Pooooof", 0.5)
- end
- end
- if not instahackzt then
- instahackzt = function -- WARNING: pending registers. Declaring locals.
- local l_104_1 = nil
- for i_0,i_1 in pairs(managers.interaction._interactive_objects) do
- if i_1.interaction then
- l_104_1 = string.sub(i_1:interaction()._unit:name():t(), 1, 10)
- if l_104_1 == "@ID58cb6c4" or l_104_1 == "@ID2721ad0" then
- end
- table.insert({}, i_1:interaction())
- end
- end
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_104_0 = {}
- for i_0,i_1 in pairs(l_104_0) do
- i_1:interact(managers.player:player_unit())
- end
- show_mid_text("...lua hacked injected", "Pooooof", 0.5)
- end
- end
- if not usekeycardt then
- usekeycardt = function -- WARNING: pending registers. Declaring locals.
- local l_105_1 = nil
- for i_0,i_1 in pairs(managers.interaction._interactive_objects) do
- if i_1.interaction then
- l_105_1 = string.sub(i_1:interaction()._unit:name():t(), 1, 10)
- if l_105_1 == "@ID15d846f" or l_105_1 == "@ID2a72308" then
- end
- table.insert({}, i_1:interaction())
- end
- end
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_105_0 = {}
- for i_0,i_1 in pairs(l_105_0) do
- i_1:interact(managers.player:player_unit())
- end
- show_mid_text("...keycard(s) remote swiped", "Pooooof", 0.5)
- end
- end
- if not minormagict then
- minormagict = function -- WARNING: pending registers. Declaring locals.
- local l_106_1 = nil
- for i_0,i_1 in pairs(managers.interaction._interactive_objects) do
- if i_1.interaction then
- l_106_1 = string.sub(i_1:interaction()._unit:name():t(), 1, 10)
- if l_106_1 == "@IDc9609ee" or l_106_1 == "@IDe5cdb6f" or l_106_1 == "@IDb527421" or l_106_1 == "@ID6dbc2f1" or l_106_1 == "@ID6a55816" or l_106_1 == "@ID5a95fe8" or l_106_1 == "@IDd904ebd" or l_106_1 == "@ID9ed5ee9" or l_106_1 == "@IDc9b068a" or l_106_1 == "@ID9c3047f" or l_106_1 == "@ID3b0947a" or l_106_1 == "@IDfac10a8" or l_106_1 == "@ID6c5d032" or l_106_1 == "@IDac5a9a0" then
- end
- table.insert({}, i_1:interaction())
- end
- end
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_106_0 = {}
- for i_0,i_1 in pairs(l_106_0) do
- i_1:interact(managers.player:player_unit())
- end
- show_mid_text("...It's a kind of magic", "Pooooof", 0.5)
- end
- end
- if not instaboardst then
- instaboardst = function -- WARNING: pending registers. Declaring locals.
- local l_107_1 = nil
- for i_0,i_1 in pairs(managers.interaction._interactive_objects) do
- if i_1.interaction then
- l_107_1 = string.sub(i_1:interaction()._unit:name():t(), 1, 10)
- if l_107_1 == "@IDb71bf75" or l_107_1 == "@IDb71bf75" or l_107_1 == "@IDb55faf1" or l_107_1 == "@IDb55faf1" or l_107_1 == "@ID4738b25" or l_107_1 == "@IDb524e47" then
- end
- table.insert({}, i_1:interaction())
- end
- end
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_107_0 = {}
- for i_0,i_1 in pairs(l_107_0) do
- i_1:interact(managers.player:player_unit())
- end
- show_mid_text("...let there be... .hmmm darkness", "Pooooof", 0.5)
- end
- end
- if not callcentert then
- callcentert = function -- WARNING: pending registers. Declaring locals.
- local l_108_1 = nil
- for i_0,i_1 in pairs(managers.interaction._interactive_objects) do
- if i_1.interaction then
- l_108_1 = string.sub(i_1:interaction()._unit:name():t(), 1, 10)
- if l_108_1 == "@IDd5e1a53" or l_108_1 == "@ID6dbc2f1" or l_108_1 == "@IDba2c036" then
- end
- table.insert({}, i_1:interaction())
- end
- end
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_108_0 = {}
- for i_0,i_1 in pairs(l_108_0) do
- i_1:interact(managers.player:player_unit())
- end
- show_mid_text("...phones and pagers dealt with", "Pooooof", 0.5)
- end
- end
- if not getpatht then
- getpatht = function bagpacker()
- managers.player:carry_stacker()
- -- WARNING: pending registers. Declaring locals.
- local l_109_1 = nil
- for i_0,i_1 in pairs(managers.interaction._interactive_objects) do
- if i_1.interaction then
- l_109_1 = string.sub(i_1:interaction()._unit:name():t(), 1, 10)
- if l_109_1 == "@ID99aa0ad" or l_109_1 == "@ID51001ab" or l_109_1 == "@IDca8a8a2" or l_109_1 == "@ID51001ab" or l_109_1 == "@ID03777a0" or l_109_1 == "@ID4a6b073" or l_109_1 == "@ID7883aa4" or l_109_1 == "@IDeee53eb" or l_109_1 == "@ID1a1c9b0" or l_109_1 == "@IDda87b02" or l_109_1 == "@ID9140188" or l_109_1 == "@ID15d846f" or l_109_1 == "@ID4e2b16f" or l_109_1 == "@IDf1461ef" or l_109_1 == "@ID7dc5f75" or l_109_1 == "@IDd8b036e" or l_109_1 == "@ID9140188" or l_109_1 == "@ID39a5689" or l_109_1 == "@ID22c41a3" or l_109_1 == "@IDdf59d98" or l_109_1 == "@ID5a95fe8" or l_109_1 == "@ID6a55816" or l_109_1 == "@IDf105b35" or l_109_1 == "@IDd8b036e" or l_109_1 == "@ID64b82ec" or l_109_1 == "@ID1f6a50d" or l_109_1 == "@ID077636c" or l_109_1 == "@ID6dbc2f1" or l_109_1 == "@IDdd16274" or l_109_1 == "@ID136f21b" or l_109_1 == "@ID2be5897" or l_109_1 == "@IDc54c876" or l_109_1 == "@IDdb2e8d0" or l_109_1 == "@ID2a72308" or l_109_1 == "@IDd5e1a53" or l_109_1 == "@ID853940b" or l_109_1 == "@IDcfbdf01" or l_109_1 == "@IDbb82cfc" or l_109_1 == "@ID54e8d78" or l_109_1 == "@IDd90bf4a" or l_109_1 == "@ID0275b3e" or l_109_1 == "@ID08a6323" or l_109_1 == "@IDdd0578d" or l_109_1 == "@ID4ba585b" or l_109_1 == "@IDe258187" or l_109_1 == "@ID5422d8b" or l_109_1 == "@ID3b0947a" or l_109_1 == "@IDe6cb9c8" then
- end
- table.insert({}, i_1:interaction())
- end
- end
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_109_0 = {}
- for i_0,i_1 in pairs(l_109_0) do
- i_1:interact(managers.player:player_unit())
- end
- show_mid_text("...and the mission continues", "Pooooof", 0.5)
- end
- end
- if not thrilldrillt then
- thrilldrillt = function -- WARNING: pending registers. Declaring locals.
- local l_110_1 = nil
- for i_0,i_1 in pairs(managers.interaction._interactive_objects) do
- if i_1.interaction then
- l_110_1 = string.sub(i_1:interaction()._unit:name():t(), 1, 10)
- if l_110_1 == "@ID584bea0" or l_110_1 == "@ID1f6a50d" or l_110_1 == "@ID51001ab" or l_110_1 == "@IDf594e56" then
- end
- table.insert({}, i_1:interaction())
- end
- end
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_110_0 = {}
- for i_0,i_1 in pairs(l_110_0) do
- i_1:interact(managers.player:player_unit())
- end
- show_mid_text("...all doors drilling", "Pooooof", 0.5)
- end
- end
- if not popatmregzt then
- popatmregzt = function if Network:is_server() then
- dexactany()
- -- WARNING: pending registers. Declaring locals.
- local l_111_1 = nil
- for i_0,i_1 in pairs(managers.interaction._interactive_objects) do
- if i_1.interaction then
- l_111_1 = string.sub(i_1:interaction()._unit:name():t(), 1, 10)
- if l_111_1 == "@IDc403e02" or l_111_1 == "@ID380834f" or l_111_1 == "@IDe8c25ec" or l_111_1 == "@IDd2e9092" or l_111_1 == "@ID8834e3a" or l_111_1 == "@ID3e96491" then
- end
- table.insert({}, i_1:interaction())
- end
- end
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_111_0 = {}
- for i_0,i_1 in pairs(l_111_0) do
- i_1:interact(managers.player:player_unit())
- end
- show_mid_text("...atms, safes and cash registers popped", "Pooooof", 0.5)
- resetinf()
- end
- end
- end
- if not picklocksecmt then
- picklocksecmt = function if Network:is_server() then
- dexactany()
- -- WARNING: pending registers. Declaring locals.
- local l_112_1 = nil
- for i_0,i_1 in pairs(managers.interaction._interactive_objects) do
- if i_1.interaction then
- l_112_1 = string.sub(i_1:interaction()._unit:name():t(), 1, 10)
- if l_112_1 == "@ID35ecf58" then
- end
- table.insert({}, i_1:interaction())
- end
- end
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_112_0 = {}
- for i_0,i_1 in pairs(l_112_0) do
- i_1:interact(managers.player:player_unit())
- end
- show_mid_text("...It's jammer time", "Pooooof", 0.5)
- resetinf()
- end
- end
- end
- if not callrainmenu then
- callrainmenu = function dofiles("trainer/assets/rainmenu.lua")
- end
- end
- if not crapout then
- crapout = function dofiles("trainer/assets/trashit.lua")
- end
- end
- if not lockmeup then
- lockmeup = function dofiles("trainer/assets/jailme.lua")
- end
- end
- if not bagpacker then
- bagpacker = function dofiles("trainer/assets/carrystacker.lua")
- end
- end
- end
- player_name = function if managers.platform:presence() ~= "Playing" then
- return ""
- end
- for i_0,i_1 in pairs(managers.groupai:state():all_player_criminals()) do
- -- DECOMPILER ERROR: Confused about usage of registers, missing locals? Creating them
- local l_117_6 = i_1.unit
- if i_1.unit:network():peer():id() == ERROR_nil then
- return l_117_6:base():nick_name()
- end
- end
- return ""
- end
- if not calltrollmenuo then
- calltrollrootmenuo = functionopenmenu(trollmenuo)
- end
- end
- if not calltrollrootmenui then
- calltrollrootmenui = functionopenmenu(trollmenui)
- end
- end
- if not calltrollspoofmenu2 then
- calltrollspoofmenu2 = functionopenmenu(spoofmenu2)
- end
- end
- if not calltrollspoofmenu3 then
- calltrollspoofmenu3 = functionopenmenu(spoofmenu3)
- end
- end
- if not calltrollspoofmenu4 then
- calltrollspoofmenu4 = functionopenmenu(spoofmenu4)
- end
- end
- if not calltrollspoofmenu5 then
- calltrollspoofmenu5 = functionopenmenu(spoofmenu5)
- end
- end
- if not calldonormenu then
- calldonormenu = functionopenmenu(donormenu)
- end
- end
- if not calldonormenu2 then
- calldonormenu2 = functionopenmenu(donormenu2)
- end
- end
- if not calldonormenu3 then
- calldonormenu3 = functionopenmenu(donormenu3)
- end
- end
- if not callsyncmainmenu then
- callsyncmainmenu = functionopenmenu(syncpmenu)
- end
- end
- if not callpstatemenu then
- callpstatemenu = functionopenmenu(pstatemenu)
- end
- end
- if not callsync1menu then
- callsync1menu = functionopenmenu(syncp1menu)
- end
- end
- if not callsync2menu then
- callsync2menu = functionopenmenu(syncp2menu)
- end
- end
- if not callsync3menu then
- callsync3menu = functionopenmenu(syncp3menu)
- end
- end
- if not callsync4menu then
- callsync4menu = functionopenmenu(syncp4menu)
- end
- end
- if not pstateopt then
- pstateopt = {
- {text = "Back", callback = calltrollrootmenui},
- {text = "", is_cancel_button = true},
- {text = "Clean", callback = stateclean},
- {text = "Tased", callback = statetased},
- {text = "Normal", callback = statenorm},
- {text = "Cuffed", callback = statecuffs},
- {text = "Bleed Out", callback = stateblood},
- {text = "Incapacitated", callback = stateinca},
- {},
- {text = "Spoof level to 1", callback = selflevel1},
- {text = "Spoof level to 100", callback = selflevel100},
- {text = "Spoof level to 255", callback = selflevel255},
- {},
- {text = "Release me from jail", callback = releaseme},
- {text = "Throw my ass in jail", callback = lockmeup}}
- end
- if not pstatemenu then
- pstatemenu = SimpleMenu:new("MESS WITH SELF", "fake death, bleed out bonanza or getouttajail free card", pstateopt)
- end
- syncp1opt = {
- {text = "Back", callback = callsyncmainmenu},
- {text = "", is_cancel_button = true},
- {text = "Release player from jail (HOST)", callback = syncreleaseply1},
- {text = "Throw player in jail (HOST)", callback = sendalltojail, data = 1},
- {text = "Change final stats to evil", callback = stat1},
- {text = "Teleport to player", callback = teleporttoply, data = 1},
- {},
- {text = "Set player level to 1", callback = ply1level1},
- {text = "Set player level to 100", callback = ply1level100},
- {text = "Set player level to 255", callback = ply1level255},
- {},
- {text = "Give him grenade case (HOST)", callback = givenadesto1},
- {text = "Give him ammo bag", callback = giveammoto, data = 1},
- {text = "Give him medikit", callback = givemedikito, data = 1},
- {},
- {text = "Plant gold bag on him (HOST)", callback = givegoldto, data = 1},
- {text = "Give him x-mas gift", callback = givemoneyto, data = 1}}
- syncp1menu = SimpleMenu:new("MESS WITH " .. player_name(1) .. "", "..choose how to troll", syncp1opt)
- syncp2opt = {
- {text = "Back", callback = callsyncmainmenu},
- {text = "", is_cancel_button = true},
- {text = "Release player from jail (HOST)", callback = syncreleaseply2},
- {text = "Throw player in jail (HOST)", callback = sendalltojail, data = 2},
- {text = "Change final stats to evil", callback = stat2},
- {text = "Teleport to player", callback = teleporttoply, data = 2},
- {},
- {text = "Set player level to 1", callback = ply2level1},
- {text = "Set player level to 100", callback = ply2level100},
- {text = "Set player level to 255", callback = ply2level255},
- {},
- {text = "Give him grenade case (HOST)", callback = givenadesto2},
- {text = "Give him ammo bag", callback = giveammoto, data = 2},
- {text = "Give him medikit", callback = givemedikito, data = 2},
- {},
- {text = "Plant gold bag on him", callback = givegoldto, data = 2},
- {text = "Give him x-mas gift", callback = givemoneyto, data = 2}}
- syncp2menu = SimpleMenu:new("MESS WITH " .. player_name(2) .. "", "..choose how to troll", syncp2opt)
- syncp3opt = {
- {text = "Back", callback = callsyncmainmenu},
- {text = "", is_cancel_button = true},
- {text = "Release player from jail (HOST)", callback = syncreleaseply3},
- {text = "Throw player in jail (HOST)", callback = sendalltojail, data = 3},
- {text = "Change final stats to evil", callback = stat3},
- {text = "Teleport to player", callback = teleporttoply, data = 3},
- {},
- {text = "Set player level to 1", callback = ply3level1},
- {text = "Set player level to 100", callback = ply3level100},
- {text = "Set player level to 255", callback = ply3level255},
- {},
- {text = "Give him grenade case (HOST)", callback = givenadesto3},
- {text = "Give him ammo bag", callback = giveammoto, data = 3},
- {text = "Give him medikit", callback = givemedikito, data = 3},
- {},
- {text = "Plant gold bag on him", callback = givegoldto, data = 3},
- {text = "Give him x-mas gift", callback = givemoneyto, data = 3}}
- syncp3menu = SimpleMenu:new("MESS WITH " .. player_name(3) .. "", "..choose how to troll", syncp3opt)
- syncp4opt = {
- {text = "Back", callback = callsyncmainmenu},
- {text = "", is_cancel_button = true},
- {text = "Release player from jail (HOST)", callback = syncreleaseply4},
- {text = "Throw player in jail (HOST)", callback = sendalltojail, data = 4},
- {text = "Change final stats to evil", callback = stat4},
- {text = "Teleport to player", callback = teleporttoply, data = 4},
- {},
- {text = "Set player level to 1", callback = ply4level1},
- {text = "Set player level to 100", callback = ply4level100},
- {text = "Set player level to 255", callback = ply4level255},
- {},
- {text = "Give him grenade case (HOST)", callback = givenadesto4},
- {text = "Give him ammo bag", callback = giveammoto, data = 4},
- {text = "Give him medikit", callback = givemedikito, data = 4},
- {},
- {text = "Plant gold bag on him", callback = givegoldto, data = 4},
- {text = "Give him x-mas gift", callback = givemoneyto, data = 4}}
- syncp4menu = SimpleMenu:new("MESS WITH " .. player_name(4) .. "", "..choose how to troll", syncp4opt)
- syncpmopt = {
- {text = "Back", callback = calltrollrootmenui},
- {text = "", is_cancel_button = true},
- {},
- {text = "Release all teammates from jail", callback = releaseteam},
- {text = "Throw all teammates in jail", callback = sendalltojail, data = -1},
- {text = "Team noob, changes names to noob (HOST)", callback = teamnoob},
- {},
- {text = "Noob team, all teammembers level 1", callback = teamlvl1},
- {text = "Pro team, all teammembers level 100", callback = teamlvl100},
- {text = "Elite team, all teammembers level 255", callback = teamlvl255},
- {},
- {text = "Golden teambag, drop gold on team", callback = goldteam},
- {text = "Santa flyby, drop moneybag on team", callback = moneyteam},
- {},
- {text = "Mess with " .. player_name(4) .. "", callback = callsync4menu},
- {text = "Mess with " .. player_name(3) .. "", callback = callsync3menu},
- {text = "Mess with " .. player_name(2) .. "", callback = callsync2menu},
- {text = "Mess with " .. player_name(1) .. "", callback = callsync1menu}}
- syncpmenu = SimpleMenu:new("CHOOSE TARGET", "...which player to irritate", syncpmopt)
- donoropt2 = {
- {text = "Next Page", callback = calldonormenu},
- {text = "Back", callback = calltrollrootmenuo},
- {text = "", is_cancel_button = true},
- {text = "ajmumford", callback = spoofmyfuckingname, data = "ajmumford"},
- {text = "Aeve", callback = spoofmyfuckingname, data = "Aeve"},
- {text = "Bender", callback = spoofmyfuckingname, data = "Bender"},
- {text = "danpenfound", callback = spoofmyfuckingname, data = "danpenfound"},
- {text = "goldsonic", callback = spoofmyfuckingname, data = "goldsonic"},
- {text = "Jrjy3", callback = spoofmyfuckingname, data = "Jrjy3"},
- {text = "Propezz", callback = spoofmyfuckingname, data = "Propezz"},
- {text = "ranksta323", callback = spoofmyfuckingname, data = "ranksta323"},
- {text = "RubenFox", callback = spoofmyfuckingname, data = "RubenFox"},
- {text = "segobi", callback = spoofmyfuckingname, data = "segobi"},
- {text = "Tenrosei", callback = spoofmyfuckingname, data = "Tenrosei"},
- {text = "ThePotato", callback = spoofmyfuckingname, data = "ThePotato"},
- {text = "to0t", callback = spoofmyfuckingname, data = "to0t"},
- {text = "UnknownPersona", callback = spoofmyfuckingname, data = "UnknownPersona"},
- {text = "Redxjak", callback = spoofmyfuckingname, data = "Redxjak"},
- {text = "Sliske", callback = spoofmyfuckingname, data = "Sliske"},
- {text = "Redxjak", callback = spoofmyfuckingname, data = "Redxjak"}}
- if not donormenu2 then
- donormenu2 = SimpleMenu:new("DONOR VIP", "..thank you for donating", donoropt2)
- end
- donoropt = {
- {text = "Next Page", callback = calldonormenu2},
- {text = "Back", callback = calltrollrootmenuo},
- {text = "", is_cancel_button = true},
- {text = "AxeWound", callback = spoofmyfuckingname, data = "AxeWound"},
- {text = "BaconLugia", callback = spoofmyfuckingname, data = "BaconLugia"},
- {text = "Didrik", callback = spoofmyfuckingname, data = "Didrik"},
- {text = "Computeteen5", callback = spoofmyfuckingname, data = "Computeteen5"},
- {text = "BiffJohnston", callback = spoofmyfuckingname, data = "BiffJohnston"},
- {text = "GuruLeru", callback = spoofmyfuckingname, data = "GuruLeru"},
- {text = "Gam3r12313", callback = spoofmyfuckingname, data = "Gam3r12313"},
- {text = "Grimwolf", callback = spoofmyfuckingname, data = "Grimwolf"},
- {text = "Ninja34", callback = spoofmyfuckingname, data = "Ninja34"},
- {text = "BootyHunter", callback = spoofmyfuckingname, data = "BootyHunter"},
- {text = "LoliPoppin", callback = spoofmyfuckingname, data = "LoliPoppin"},
- {text = "BobSmith", callback = spoofmyfuckingname, data = "BobSmith"},
- {text = "Jacques", callback = spoofmyfuckingname, data = "Jacques"},
- {text = "Ahr1man", callback = spoofmyfuckingname, data = "Ahr1man"},
- {text = "Lira", callback = spoofmyfuckingname, data = "Lira"},
- {text = "Panda", callback = spoofmyfuckingname, data = "Panda"},
- {text = "kit", callback = spoofmyfuckingname, data = "kit"},
- {text = "Truth91", callback = spoofmyfuckingname, data = "Truth91"},
- {text = "Major", callback = spoofmyfuckingname, data = "Major"},
- {text = "lendrick", callback = spoofmyfuckingname, data = "lendrick"}}
- if not donormenu then
- donormenu = SimpleMenu:new("DONOR VIP", "..thank you for donating", donoropt)
- end
- spoofopt5 = {
- {text = "Donors", callback = calldonormenu},
- {text = "Page 1", callback = calltrollrootmenuo},
- {text = "Page 2", callback = calltrollspoofmenu2},
- {text = "Page 3", callback = calltrollspoofmenu3},
- {text = "", is_cancel_button = true},
- {text = "Batman Bin Suparman", callback = spoofmyfuckingname, data = "Batman Bin Suparman"},
- {text = "Guybrush Threepwood", callback = spoofmyfuckingname, data = "Guybrush Threepwood"},
- {text = "Long Schlong Silver", callback = spoofmyfuckingname, data = "Long Schlong Silver"},
- {text = "Vaas Montenegro", callback = spoofmyfuckingname, data = "Vaas Montenegro"},
- {text = "Gordon Freeman", callback = spoofmyfuckingname, data = "Gordon Freeman"},
- {text = "Seaman Staines", callback = spoofmyfuckingname, data = "Seaman Staines"},
- {text = "Nathan Drake", callback = spoofmyfuckingname, data = "Nathan Drake"},
- {text = "I love cheats", callback = spoofmyfuckingname, data = "I love cheats"},
- {text = "Pat McRotch", callback = spoofmyfuckingname, data = "Pat McRotch"},
- {text = "Moe Lester", callback = spoofmyfuckingname, data = "Moe Lester"},
- {text = "Rockefella", callback = spoofmyfuckingname, data = "Rockefella"},
- {text = "I. C. Kuntz", callback = spoofmyfuckingname, data = "I. C. Kuntz"},
- {text = "Hugh Janus", callback = spoofmyfuckingname, data = "Hugh Janus"},
- {text = "Harry Wang", callback = spoofmyfuckingname, data = "Harry Wang"},
- {text = "Jack Kanoff", callback = spoofmyfuckingname, data = "Jack Kanoff"},
- {text = "Chase Cox", callback = spoofmyfuckingname, data = "Chase Cox"},
- {text = "Mike Hunt", callback = spoofmyfuckingname, data = "Mike Hunt"},
- {text = "Lou Scunt", callback = spoofmyfuckingname, data = "Lou Scunt"}}
- if not spoofmenu5 then
- spoofmenu5 = SimpleMenu:new("SPOOF NAME Page 4", ".. Yet another menu with names", spoofopt5)
- end
- spoofopt4 = {
- {text = "Donors", callback = calldonormenu},
- {text = "Page 1", callback = calltrollrootmenuo},
- {text = "Page 2", callback = calltrollspoofmenu2},
- {text = "Page 3", callback = calltrollspoofmenu3},
- {text = "Page 4", callback = calltrollspoofmenu5},
- {text = "", is_cancel_button = true},
- {text = "Slobodan Milosevic", callback = spoofmyfuckingname, data = "Slobodan Milosevic"},
- {text = "Osama Bin Laden", callback = spoofmyfuckingname, data = "Osama Bin Laden"},
- {text = "Saddam Hussein", callback = spoofmyfuckingname, data = "Saddam Hussein"},
- {text = "Harald Bluetooth", callback = spoofmyfuckingname, data = "Harald Bluetooth"},
- {text = "Benito Mussolini", callback = spoofmyfuckingname, data = "Benito Mussolini"},
- {text = "Mao Tse-Tung", callback = spoofmyfuckingname, data = "Mao Tse-Tung"},
- {text = "Vladimir Lenin", callback = spoofmyfuckingname, data = "Vladimir Lenin"},
- {text = "Vladimir Putin", callback = spoofmyfuckingname, data = "Vladimir Putin"},
- {text = "Joseph Stalin", callback = spoofmyfuckingname, data = "Joseph Stalin"},
- {text = "Motherfucker", callback = spoofmyfuckingname, data = "Motherfucker"},
- {text = "Bitchslapper", callback = spoofmyfuckingname, data = "Bitchslapper"},
- {text = "Adolf Hitler", callback = spoofmyfuckingname, data = "Adolf Hitler"},
- {text = "Kim Jong Il", callback = spoofmyfuckingname, data = "Kim Jong Il"},
- {text = "Asskicker", callback = spoofmyfuckingname, data = "Asskicke"},
- {text = "Zomboss", callback = spoofmyfuckingname, data = "Zomboss"},
- {text = "Copkiller", callback = spoofmyfuckingname, data = "Copkiller"},
- {text = "Idi Amin", callback = spoofmyfuckingname, data = "Idi Amin"},
- {text = "Hirohito", callback = spoofmyfuckingname, data = "Hirohito"},
- {text = "Pol Pot", callback = spoofmyfuckingname, data = "Pol Pot"},
- {text = "v00d00", callback = spoofmyfuckingname, data = "v00d00"}}
- if not spoofmenu4 then
- spoofmenu4 = SimpleMenu:new("SECRET MENU", ".. dafuq are you doing here????", spoofopt4)
- end
- spoofopt3 = {
- {text = "Donors", callback = calldonormenu},
- {text = "Page 1", callback = calltrollrootmenuo},
- {text = "Page 2", callback = calltrollspoofmenu2},
- {text = "Page 4", callback = calltrollspoofmenu5},
- {text = "", is_cancel_button = true},
- {text = "Generous George", callback = spoofmyfuckingname, data = "Generous George"},
- {text = "Phillip Oliver Holz", callback = spoofmyfuckingname, data = "Phillip Oliver Holz"},
- {text = "Wilma Fingerdoo", callback = spoofmyfuckingname, data = "Wilma Fingerdoo"},
- {text = "Cheating allowed", callback = spoofmyfuckingname, data = "Cheating allowed"},
- {text = "Ivanna Humpalot", callback = spoofmyfuckingname, data = "Ivanna Humpalot"},
- {text = "Ol' Dirty Bastard", callback = spoofmyfuckingname, data = "Ol' Dirty Bastard"},
- {text = "Newbie Booster", callback = spoofmyfuckingname, data = "Newbie Booster"},
- {text = "Seymore Butts", callback = spoofmyfuckingname, data = "Seymore Butts"},
- {text = "Homer Sexual", callback = spoofmyfuckingname, data = "Homer Sexual"},
- {text = "Justin Heranus", callback = spoofmyfuckingname, data = "Justin Heranus"},
- {text = "Cheaters 'r us", callback = spoofmyfuckingname, data = "Cheaters 'r us"},
- {text = "Carrie Mysac", callback = spoofmyfuckingname, data = "Carrie Mysac"},
- {text = "Mike Oxsbig", callback = spoofmyfuckingname, data = "Mike Oxsbig"},
- {text = "Rusty Kuntz", callback = spoofmyfuckingname, data = "Rusty Kuntz"},
- {text = "Slynderdale", callback = spoofmyfuckingname, data = "Slynderdale"},
- {text = "Clee Torres", callback = spoofmyfuckingname, data = "Clee Torres"},
- {text = "Max Payne", callback = spoofmyfuckingname, data = "Max Payne"},
- {text = "Sam Fisher", callback = spoofmyfuckingname, data = "Sam Fisher"},
- {text = "STEAMNAME", callback = livestrongdieyoung},
- {text = "N00b", callback = spoofmyfuckingname, data = "Simplity"}}
- if not spoofmenu3 then
- spoofmenu3 = SimpleMenu:new("SPOOF NAME Page 3", ".. or how about one of these names?", spoofopt3)
- end
- spoofopt2 = {
- {text = "Donors", callback = calldonormenu},
- {text = "Page 1", callback = calltrollrootmenuo},
- {text = "Page 3", callback = calltrollspoofmenu3},
- {text = "Page 4", callback = calltrollspoofmenu5},
- {text = "", callback = calltrollspoofmenu4},
- {text = "Phillip Purass", callback = spoofmyfuckingname, data = "Phillip Purass"},
- {text = "Duke Nukem", callback = spoofmyfuckingname, data = "Duke Nukem"},
- {text = "Invisible man", callback = spoofmyfuckingname, data = ""},
- {text = "Master Bates", callback = spoofmyfuckingname, data = "Master Bates"},
- {text = "King Nothing", callback = spoofmyfuckingname, data = "King Nothing"},
- {text = "Rubber man", callback = spoofmyfuckingname, data = "Rubber man"},
- {text = "Master Chief", callback = spoofmyfuckingname, data = "Master Chief"},
- {text = "Sandy Cervix", callback = spoofmyfuckingname, data = "Sandy Cervix"},
- {text = "Spongebob", callback = spoofmyfuckingname, data = "Spongebob"},
- {text = "Mike Litoris", callback = spoofmyfuckingname, data = "Mike Litoris"},
- {text = "Solid Snake", callback = spoofmyfuckingname, data = "Solid Snake"},
- {text = "Spiderman", callback = spoofmyfuckingname, data = "Spiderman"},
- {text = "Ran Sidass", callback = spoofmyfuckingname, data = "Ran Sidass"},
- {text = "RoboCop", callback = spoofmyfuckingname, data = "RoboCop"},
- {text = "Jack Goff", callback = spoofmyfuckingname, data = "Jack Goff"},
- {text = "madMAX", callback = spoofmyfuckingname, data = "madMAX"},
- {text = "Douglby", callback = spoofmyfuckingname, data = "Douglby"},
- {text = "Uraz88", callback = spoofmyfuckingname, data = "Uraz88"},
- {text = "Baldwin", callback = spoofmyfuckingname, data = "Baldwin"}}
- if not spoofmenu2 then
- spoofmenu2 = SimpleMenu:new("SPOOF NAME Page 2", ".. or this name better?", spoofopt2)
- end
- troopto = {
- {text = "Donors", callback = calldonormenu},
- {text = "Page 2", callback = calltrollspoofmenu2},
- {text = "Page 3", callback = calltrollspoofmenu3},
- {text = "Page 4", callback = calltrollspoofmenu3},
- {text = "", is_cancel_button = true},
- {text = "Kenneth The Janitor", callback = spoofmyfuckingname, data = "Kenneth The Janitor"},
- {text = "OVERKILL_Andreas", callback = spoofmyfuckingname, data = "OVERKILL_Andreas"},
- {text = "OVERKILL_Viktor", callback = spoofmyfuckingname, data = "OVERKILL_Viktor"},
- {text = "OVERKILL_Per_J", callback = spoofmyfuckingname, data = "OVERKILL_Per_J"},
- {text = "OVERKILL_Almir", callback = spoofmyfuckingname, data = "OVERKILL_Almir"},
- {text = "OVERKILL BO", callback = spoofmyfuckingname, data = "OVERKILL BO"},
- {text = "GurillaOverkilla", callback = spoofmyfuckingname, data = "GurillaOverkilla"},
- {text = "SimonViklund", callback = spoofmyfuckingname, data = "SimonViklund"},
- {text = "CaretCaret", callback = spoofmyfuckingname, data = "CaretCaret"},
- {text = "Overkillja", callback = spoofmyfuckingname, data = "Overkillja"},
- {},
- {text = "SMELLY PIRATE CAPTAIN", callback = spoofmyfuckingname, data = "SMELLY PIRATE CAPTAIN"},
- {text = "Stretch", callback = spoofmyfuckingname, data = " "},
- {text = "The damn cops", callback = spoofmyfuckingname, data = "The damn cops"},
- {text = "Buster Hyman", callback = spoofmyfuckingname, data = "Buster Hyman"},
- {text = "Fuck this I've", callback = spoofmyfuckingname, data = "Fuck this I've"},
- {text = "Alotta Fagina", callback = spoofmyfuckingname, data = "Alotta Fagina"},
- {text = "Harry P. Ness", callback = spoofmyfuckingname, data = "Harry P. Ness"},
- {text = "Oh shit he", callback = spoofmyfuckingname, data = "Oh shit he"},
- {text = "Pirate Captain", callback = spoofmyfuckingname, data = "Pirate Captain"}}
- if not trooti then
- troopti = {
- {text = "Mess with other players [menu]", callback = callsyncmainmenu},
- {text = "Mess with self [menu]", callback = callpstatemenu},
- {text = "Make it rain [menu]", callback = callrainmenu},
- {text = "", is_cancel_button = true},
- {text = "One cop die, two new spawns [HOST]", callback = onetotwo},
- {text = "Dead cops turn to bulldozers", callback = bullcop},
- {},
- {text = "Safes,atms and cash registers popped (HOST)", callback = popatmregzt},
- {text = "Mission manipulator get item/continue mission", callback = getpatht},
- {text = "Drill manipulator start/restart drill", callback = thrilldrillt},
- {text = "Prevent wait for players at start", callback = dontwait},
- {text = "Open all bank deposit boxes", callback = bankbuster},
- {text = "Open all doors with ecm", callback = picklocksecmt},
- {text = "Apocalypse : Kill 'em all", callback = apocalypse},
- {text = "Board up all windows", callback = instaboardst},
- {text = "Phone calls rerouted", callback = callcentert},
- {text = "Take mask off again", callback = faceoff},
- {text = "Free civilian killing", callback = freekill},
- {text = "Doors etc opened", callback = picklockst},
- {text = "Computer h4X0r", callback = instahackzt},
- {text = "Trash all bags", callback = crapout},
- {text = "Use keycard", callback = usekeycardt},
- {text = "Magic wand", callback = minormagict}}
- end
- if not trollmenuo and not trollmenuo then
- trollmenuo = SimpleMenu:new("Troll Menu", "..troll as your favorite hero", troopto)
- end
- if not trollmenui and not trollmenui then
- trollmenui = SimpleMenu:new("Troll menu", "Carrot/stick some noobs..", troopti)
- end
- if not inGame() then
- trollmenuo:show()
- else
- trollmenui:show()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement