From e343504624097e236946bbbf38678aba18062111 Mon Sep 17 00:00:00 2001 From: Zephyr Date: Wed, 27 May 2026 21:31:34 +0800 Subject: [PATCH] 0527 --- 2001/ze_cyberderp/cyberderp.js | 930 +++++++++++++++++---------------- 1 file changed, 473 insertions(+), 457 deletions(-) diff --git a/2001/ze_cyberderp/cyberderp.js b/2001/ze_cyberderp/cyberderp.js index 27e557e..a16c9b4 100644 --- a/2001/ze_cyberderp/cyberderp.js +++ b/2001/ze_cyberderp/cyberderp.js @@ -1,4 +1,4 @@ -import { Instance, CSPlayerPawn } from "cs_script/point_script"; +import { Instance, CSPlayerPawn, CSGearSlot } from "cs_script/point_script"; const script_ent_name = "ps_script"; let script_ent = null; @@ -14,6 +14,7 @@ let autism = false; let intrigger = new Set(); let bossid = null; +let bossphys = null; let indus = false; let inboss = false; @@ -23,543 +24,558 @@ let boss_vortex = true; let boss_freezer = true; let boss_attacking = true; -// game event +// General Instance.OnRoundStart(() => { - Instance.Msg(`[CyberScript] RoundStart`); - Instance.Msg(`[CyberScript] Status: Tollary ${cleard[0]} | Hexahedron ${cleard[1]} | Magic ${cleard[2]} | Trampolines ${cleard[3]}`); - playing = null; - intrigger.clear(); - bossid = null; - indus = false; - inboss = false; - if(!script_ent?.IsValid()) - script_ent = Instance.FindEntityByName(script_ent_name); - - if(!hud_ent?.IsValid()) - hud_ent = Instance.FindEntityByName(hud_ent_name); - - if(!bound_ent?.IsValid()) - bound_ent = Instance.FindEntityByName(bound_ent_name); - - WayChoice(); + Instance.Msg(`[CyberScript] RoundStart`); + Instance.Msg(`[CyberScript] Status: Tollary ${cleard[0]} | Hexahedron ${cleard[1]} | Magic ${cleard[2]} | Trampolines ${cleard[3]}`); + playing = null; + intrigger.clear(); + bossid = null; + bossphys = null; + indus = false; + inboss = false; + if(!script_ent?.IsValid()) + script_ent = Instance.FindEntityByName(script_ent_name); + + if(!hud_ent?.IsValid()) + hud_ent = Instance.FindEntityByName(hud_ent_name); + + if(!bound_ent?.IsValid()) + bound_ent = Instance.FindEntityByName(bound_ent_name); + + WayChoice(); }); Instance.OnScriptInput("WayComplete", () => { - cleard[playing] = true; - Instance.Msg(`[CyberScript] Saved Successfully`); + cleard[playing] = true; + Instance.Msg(`[CyberScript] Saved Successfully`); }); Instance.OnScriptInput("AutismMovement", () => { - if (!autism) - return; + if (!autism) + return; - Instance.EntFireAtName({ name: "cyber_autism_movement", input: "PickRandom" }); - Instance.EntFireAtName({ name: "cyber_autism_movement_sound", input: "PickRandom" }); - let time = GetRandomFloat(1.0, 5.0); - Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "AutismMovement", delay: time }); + Instance.EntFireAtName({ name: "cyber_autism_movement", input: "PickRandom" }); + Instance.EntFireAtName({ name: "cyber_autism_movement_sound", input: "PickRandom" }); + let time = GetRandomFloat(1.0, 5.0); + Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "AutismMovement", delay: time }); }); Instance.OnScriptInput("GiveAmmo", (event) => { - let client = event.activator; - if (!(client instanceof CSPlayerPawn)) - return; - - let weapon = client.GetActiveWeapon(); - if (!weapon) - return; - - Instance.EntFireAtTarget(weapon, "SetAmmoAmount", "999"); + const activator = event.activator; + const primary = activator.FindWeaponBySlot(CSGearSlot.RIFLE); + const secondary = activator.FindWeaponBySlot(CSGearSlot.PISTOL); + if (primary != undefined) { + Instance.EntFireAtTarget({ target: primary, input: "SetAmmoAmount", value: "999" }); + } + if (secondary != undefined) { + Instance.EntFireAtTarget({ target: secondary, input: "SetAmmoAmount", value: "999" }); + } }); Instance.OnGrenadeThrow((event) => { - const grenade = event.projectile; - if (event.weapon?.GetData().GetName() == "weapon_hegrenade") - { - grenade.SetModel("models/cyber/granade.vmdl"); - Instance.EntFireAtTarget({ target: grenade, input: "spawnflags", value: "4" }); - } - else if (event.weapon?.GetData().GetName() == "weapon_smokegrenade") - { - grenade.SetModel("models/cyber/smoke.vmdl"); - Instance.EntFireAtTarget({ target: grenade, input: "spawnflags", value: "4" }); - } - - if (autism) - Instance.EntFireAtTarget({ target: grenade, input: "disablegravity" }); + const grenade = event.projectile; + if (event.weapon?.GetData().GetName() == "weapon_hegrenade") + { + grenade.SetModel("models/cyber/granade.vmdl"); + Instance.EntFireAtTarget({ target: grenade, input: "spawnflags", value: "4" }); + } + else if (event.weapon?.GetData().GetName() == "weapon_smokegrenade") + { + grenade.SetModel("models/cyber/smoke.vmdl"); + Instance.EntFireAtTarget({ target: grenade, input: "spawnflags", value: "4" }); + } + + if (autism) + Instance.EntFireAtTarget({ target: grenade, input: "disablegravity" }); }); Instance.OnGrenadeBounce((event) => { - const grenade = event.projectile; - if (grenade?.IsValid()) { - bound_ent.ForceSpawn(grenade.GetAbsOrigin()); - } + const grenade = event.projectile; + if (grenade?.IsValid()) { + bound_ent.ForceSpawn(grenade.GetAbsOrigin()); + } }); Instance.OnScriptInput("StartIndus", () => { - indus = true; - Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "ShowHudMessage", delay: 0.50 }); + indus = true; + Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "ShowHudMessage", delay: 0.50 }); }); Instance.OnScriptInput("TouchIndus", (event) => { - let client = event.activator; - if (!(client instanceof CSPlayerPawn)) - return; - - let controller = client.GetPlayerController(); - let slot = controller.GetPlayerSlot(); - if (!intrigger.has(slot) || client.GetTeamNumber() == 3) - intrigger.add(slot); + let client = event.activator; + if (!(client instanceof CSPlayerPawn)) + return; + + let controller = client.GetPlayerController(); + let slot = controller.GetPlayerSlot(); + if (!intrigger.has(slot) || client.GetTeamNumber() == 3) + intrigger.add(slot); }); Instance.OnScriptInput("StopIndus", () => { - indus = false; + indus = false; }); Instance.OnScriptInput("StartBoss", () => { - inboss = true; - indus = false; - boss_attacking = true; - Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "ShowHudMessage", delay: 0.50 }); + inboss = true; + indus = false; + boss_attacking = true; + Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "ShowHudMessage", delay: 0.50 }); +}); + +Instance.OnScriptInput("SetBossPhys", (event) => { + bossphys = event.caller; +}); + +Instance.OnScriptInput("MiniBossTeleport", (event) => { + const client = event.activator; + + if (!client || !bossphys) + return; + + const origin = bossphys.GetAbsOrigin(); + const angle = bossphys.GetAbsAngles(); + client.Teleport({ position: origin, angles: angle }); }); Instance.OnScriptInput("BossAttackChosen", () => { - if (inboss) - { - boss_attack++; - if (boss_attack > 3) - boss_attack = 0; - } + if (inboss) + { + boss_attack++; + if (boss_attack > 3) + boss_attack = 0; + } }); Instance.OnScriptInput("BossAttackExec", () => { - if (inboss && boss_attacking) - { - boss_attacking = false; - if (boss_attack == 0) - { - Instance.EntFireAtName({ name: "boss_tetris_case", input: "PickRandom" }); - Instance.EntFireAtName({ name: "boss_exec_maker", input: "ForceSpawn", delay: 0.01 }); - Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "BossAttackRecast", delay: 0.55 }); - } - else if (boss_attack == 1 && boss_vortex) - { - boss_vortex = false; - Instance.EntFireAtName({ name: "boss_vortex", input: "Enable" }); - Instance.EntFireAtName({ name: "boss_vortex_particles", input: "Start" }); - Instance.EntFireAtName({ name: "boss_vortex", input: "Disable", delay: 7.1 }); - Instance.EntFireAtName({ name: "boss_vortex_particles", input: "Stop", delay: 7.1 }); - Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "BossAttackRecast", delay: 7.1 }); - Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "BossVortexRecast", delay: 21.0 }); - } - else if (boss_attack == 2 && boss_breath) - { - boss_breath = false; - Instance.EntFireAtName({ name: "boss_breath_igniter", input: "Enable" }); - Instance.EntFireAtName({ name: "boss_breath", input: "Start" }); - Instance.EntFireAtName({ name: "boss_breath_igniter", input: "Disable", delay: 3.0 }); - Instance.EntFireAtName({ name: "boss_breath", input: "Stop", delay: 3.0 }); - Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "BossAttackRecast", delay: 3.1 }); - Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "BossBreathRecast", delay: 26.0 }); - } - else if (boss_attack == 3 && boss_freezer) - { - boss_freezer = false; - Instance.EntFireAtName({ name: "boss_freezer_maker", input: "ForceSpawn", delay: 0.01 }); - Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "BossAttackRecast", delay: 0.1 }); - Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "BossFreezerRecast", delay: 30.0 }); - } - } + if (inboss && boss_attacking) + { + boss_attacking = false; + if (boss_attack == 0) + { + Instance.EntFireAtName({ name: "boss_tetris_case", input: "PickRandom" }); + Instance.EntFireAtName({ name: "boss_exec_maker", input: "ForceSpawn", delay: 0.01 }); + Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "BossAttackRecast", delay: 0.55 }); + } + else if (boss_attack == 1 && boss_vortex) + { + boss_vortex = false; + Instance.EntFireAtName({ name: "boss_vortex", input: "Enable" }); + Instance.EntFireAtName({ name: "boss_vortex_particles", input: "Start" }); + Instance.EntFireAtName({ name: "boss_vortex", input: "Disable", delay: 7.1 }); + Instance.EntFireAtName({ name: "boss_vortex_particles", input: "Stop", delay: 7.1 }); + Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "BossAttackRecast", delay: 7.1 }); + Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "BossVortexRecast", delay: 21.0 }); + } + else if (boss_attack == 2 && boss_breath) + { + boss_breath = false; + Instance.EntFireAtName({ name: "boss_breath_igniter", input: "Enable" }); + Instance.EntFireAtName({ name: "boss_breath", input: "Start" }); + Instance.EntFireAtName({ name: "boss_breath_igniter", input: "Disable", delay: 3.0 }); + Instance.EntFireAtName({ name: "boss_breath", input: "Stop", delay: 3.0 }); + Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "BossAttackRecast", delay: 3.1 }); + Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "BossBreathRecast", delay: 26.0 }); + } + else if (boss_attack == 3 && boss_freezer) + { + boss_freezer = false; + Instance.EntFireAtName({ name: "boss_freezer_maker", input: "ForceSpawn", delay: 0.01 }); + Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "BossAttackRecast", delay: 0.1 }); + Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "BossFreezerRecast", delay: 30.0 }); + } + } }); Instance.OnScriptInput( "BossAttackRecast", () => { - boss_attacking = true; + boss_attacking = true; }); Instance.OnScriptInput( "BossVortexRecast", () => { - boss_vortex = true; + boss_vortex = true; }); Instance.OnScriptInput( "BossBreathRecast", () => { - boss_breath = true; + boss_breath = true; }); Instance.OnScriptInput( "BossFreezerRecast", () => { - boss_freezer = true; + boss_freezer = true; }); Instance.OnScriptInput("SetBoss", (event) => { - let client = event.activator; - if (!(client instanceof CSPlayerPawn)) - return; - - let controller = client.GetPlayerController(); - bossid = controller.GetPlayerSlot(); - boss_attack = 0; - boss_breath = true; - boss_vortex = true; - boss_freezer = true; - boss_attacking = false; + let client = event.activator; + let controller = client.GetPlayerController(); + + bossid = controller.GetPlayerSlot(); + boss_attack = 0; + boss_breath = true; + boss_vortex = true; + boss_freezer = true; + boss_attacking = false; }); Instance.OnScriptInput( "StopBoss", () => { - inboss = false; + inboss = false; }); Instance.OnScriptInput( "ShowHudMessage", () => { - if(!hud_ent?.IsValid()) - return; - - if (indus) - { - ShowIndusHud(); - Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "ShowHudMessage", delay: 0.50 }); - } - else if (inboss) - { - ShowInbossHud(); - Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "ShowHudMessage", delay: 0.50 }); - } + if(!hud_ent?.IsValid()) + return; + + if (indus) + { + ShowIndusHud(); + Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "ShowHudMessage", delay: 0.50 }); + } + else if (inboss) + { + ShowInbossHud(); + Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "ShowHudMessage", delay: 0.50 }); + } }); function ShowIndusHud() { - let players = Instance.FindEntitiesByClass("player"); - for(let i = 0; i < players.length; i++) - { - let player = players[i]; - let controller = player.GetPlayerController(); - let slot = controller.GetPlayerSlot(); - if(player?.IsValid() && player.GetTeamNumber() == 3) - { - if (intrigger.has(slot)) - Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "You are allowed to pass now", delay: 0.00 }); - else - Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "You wont be able to go to the left unless you touch the source on the right", delay: 0.00 }); - - Instance.EntFireAtTarget({ target: hud_ent, input: "ShowHudHint", activator: player, delay: 0.00 }); - } - } + let players = Instance.FindEntitiesByClass("player"); + for(let i = 0; i < players.length; i++) + { + let player = players[i]; + let controller = player.GetPlayerController(); + let slot = controller.GetPlayerSlot(); + if(player?.IsValid() && player.GetTeamNumber() == 3) + { + if (intrigger.has(slot)) + Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "You are allowed to pass now", delay: 0.00 }); + else + Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "You wont be able to go to the left unless you touch the source on the right", delay: 0.00 }); + + Instance.EntFireAtTarget({ target: hud_ent, input: "ShowHudHint", activator: player, delay: 0.00 }); + } + } } function ShowInbossHud() { - let players = Instance.FindEntitiesByClass("player"); - for(let i = 0; i < players.length; i++) - { - let player = players[i]; - let controller = player.GetPlayerController(); - let slot = controller.GetPlayerSlot(); - if(player?.IsValid() && player.GetTeamNumber() == 2 && slot == bossid) - { - if (boss_attack == 0) - Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "Attack > Tetris", delay: 0.00 }); - else if (boss_attack == 1 && boss_vortex) - Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "Attack > Vortex", delay: 0.00 }); - else if (boss_attack == 1 && !boss_vortex) - Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "Attack > Vortex (Cooldown)", delay: 0.00 }); - else if (boss_attack == 2 && boss_breath) - Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "Attack > Fire Breath", delay: 0.00 }); - else if (boss_attack == 2 && !boss_breath) - Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "Attack > Fire Breath (Cooldown)", delay: 0.00 }); - else if (boss_attack == 3 && boss_freezer) - Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "Attack > Freeze Orb", delay: 0.00 }); - else if (boss_attack == 3 && !boss_freezer) - Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "Attack > Freeze Orb (Cooldown)", delay: 0.00 }); - - Instance.EntFireAtTarget({ target: hud_ent, input: "ShowHudHint", activator: player, delay: 0.00 }); - break; - } - } + let players = Instance.FindEntitiesByClass("player"); + for(let i = 0; i < players.length; i++) + { + let player = players[i]; + let controller = player.GetPlayerController(); + let slot = controller.GetPlayerSlot(); + if(player?.IsValid() && player.GetTeamNumber() == 2 && slot == bossid) + { + if (boss_attack == 0) + Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "Attack > Tetris", delay: 0.00 }); + else if (boss_attack == 1 && boss_vortex) + Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "Attack > Vortex", delay: 0.00 }); + else if (boss_attack == 1 && !boss_vortex) + Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "Attack > Vortex (Cooldown)", delay: 0.00 }); + else if (boss_attack == 2 && boss_breath) + Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "Attack > Fire Breath", delay: 0.00 }); + else if (boss_attack == 2 && !boss_breath) + Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "Attack > Fire Breath (Cooldown)", delay: 0.00 }); + else if (boss_attack == 3 && boss_freezer) + Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "Attack > Freeze Orb", delay: 0.00 }); + else if (boss_attack == 3 && !boss_freezer) + Instance.EntFireAtTarget({ target: hud_ent, input: "SetMessage", value: "Attack > Freeze Orb (Cooldown)", delay: 0.00 }); + + Instance.EntFireAtTarget({ target: hud_ent, input: "ShowHudHint", activator: player, delay: 0.00 }); + break; + } + } } // function function WayChoice() { - let candidates = []; - for (let i = 0; i < cleard.length; i++) { - if (!cleard[i]) { - candidates.push(i); - } - } - - if (candidates.length == 0) { - for (let i = 0; i < cleard.length; i++) { - cleard[i] = false; - candidates.push(i); - } - - Instance.Msg(`[CyberScript] Reset to chosen - Enabled Autism Mode`); - autism = true; - } - - playing = candidates[GetRandomInt(0, candidates.length - 1)]; - Instance.Msg(`[CyberScript] Selected Way: ${playing}`); - if (playing == null) - { - Instance.Msg(`[CyberScript] Error: number is null!`); - return; - } - else if (playing == 0) - { - Instance.EntFireAtName({ name: "cyber_1stway_brush", input: "Disable" }); - Instance.EntFireAtName({ name: "cyber_2ndway_brush", input: "Enable" }); - Instance.EntFireAtName({ name: "cyber_3rd_brush", input: "Enable" }); - Instance.EntFireAtName({ name: "cyber_3rd_stoopid", input: "Disable" }); - Instance.EntFireAtName({ name: "cyber_4th_block", input: "Disable" }); - Instance.EntFireAtName({ name: "Cyber_Element_case1", input: "PickRandom" }); - Instance.EntFireAtName({ name: "Cyber_inga", input: "StartSound" }); - Instance.EntFireAtName({ name: "cyber_treasure1_case", input: "PickRandom" }); - Instance.EntFireAtName({ name: "PEPE", input: "Start" }); - Instance.EntFireAtName({ name: "Console", input: "Command", value: "say * * * Current phase: TOTALLY NEVER SEEN * * *", delay: 6.0 }); - KillWay1(); - KillWay2(); - KillWay3(); - } - else if(playing == 1) - { - Instance.EntFireAtName({ name: "cyber_1stway_brush", input: "Enable" }); - Instance.EntFireAtName({ name: "cyber_2ndway_brush", input: "Disable" }); - Instance.EntFireAtName({ name: "cyber_3rd_brush", input: "Enable" }); - Instance.EntFireAtName({ name: "cyber_3rd_stoopid", input: "Disable" }); - Instance.EntFireAtName({ name: "cyber_4th_block", input: "Disable" }); - Instance.EntFireAtName({ name: "cyber_boss_arenaChooser", input: "PickRandom" }); - Instance.EntFireAtName({ name: "Cyber_BRODY", input: "StartSound" }); - Instance.EntFireAtName({ name: "Cyber_Element_case2", input: "PickRandom" }); - Instance.EntFireAtName({ name: "cyber_treasure2_case", input: "PickRandom" }); - Instance.EntFireAtName({ name: "PEPE", input: "Start" }); - Instance.EntFireAtName({ name: "Console", input: "Command", value: "say * * * Current phase: CURSED HEXAHEDRON * * *", delay: 6.0 }); - KillWay0(); - KillWay2(); - KillWay3(); - } - else if(playing == 2) - { - Instance.EntFireAtName({ name: "cyber_3rd_brush", input: "Disable" }); - Instance.EntFireAtName({ name: "cyber_3rd_stoopid", input: "Enable" }); - Instance.EntFireAtName({ name: "cyber_4th_block", input: "Disable" }); - Instance.EntFireAtName({ name: "Cyber_Element_case3", input: "PickRandom" }); - Instance.EntFireAtName({ name: "cyber_magic_music", input: "StartSound" }); - Instance.EntFireAtName({ name: "cyber_miniboss_templ", input: "KeyValue", value: "origin -3048 -2032 848" }); - Instance.EntFireAtName({ name: "cyber_miniboss_templ", input: "ForceSpawn", delay: 0.01 }); - Instance.EntFireAtName({ name: "cyber_treasure3_case", input: "PickRandom" }); - Instance.EntFireAtName({ name: "PEPE", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Path_*", input: "Kill" }); - Instance.EntFireAtName({ name: "Console", input: "Command", value: "say * * * Current phase: MAGIC IS REAL * * *", delay: 6.0 }); - KillWay0(); - KillWay1(); - KillWay3(); - } - else if(playing == 3) - { - Instance.EntFireAtName({ name: "cyber_4th_block", input: "Enable" }); - Instance.EntFireAtName({ name: "cyber_4th_breakable", input: "Break", delay: 45.0 }); - Instance.EntFireAtName({ name: "cyber_4th_hp", input: "Enable", delay: 44.0 }); - Instance.EntFireAtName({ name: "cyber_4th_music", input: "StartSound" }); - Instance.EntFireAtName({ name: "cyber_AFK_0", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Cage_Destination", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Cage_Teleport", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Element_case4", input: "PickRandom" }); - Instance.EntFireAtName({ name: "cyber_lebutton", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_lebutton2", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_miniboss_templ", input: "KeyValue", value: "origin 3616 -3248 -1984" }); - Instance.EntFireAtName({ name: "cyber_miniboss_templ", input: "ForceSpawn", delay: 0.01 }); - Instance.EntFireAtName({ name: "cyber_puzzle_case", input: "PickRandom" }); - Instance.EntFireAtName({ name: "cyber_sewer_escape_brush", input: "Disable" }); - Instance.EntFireAtName({ name: "PEPE", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Path_*", input: "Kill" }); - Instance.EntFireAtName({ name: "Console", input: "Command", value: "say * * * Current phase: NOT TRAMPOLINES * * *", delay: 6.0 }); - Instance.EntFireAtName({ name: "Console", input: "Command", value: "zr_infect_spawn_mz_ratio 8" }); - KillWay0(); - KillWay1(); - KillWay2(); - } - - if (autism) - { - Instance.Msg("[CyberScript] Autism Mode: true"); - Instance.EntFireAtName({ name: "Console", input: "Command", value: "say * * * WIND: ENABLED * * *", delay: 6.0 }); - Instance.EntFireAtName({ name: "Console", input: "Command", value: "say * * * GLASSES: OFF * * *", delay: 7.0 }); - Instance.EntFireAtName({ name: "Console", input: "Command", value: "say * * * GRAVITY: IS KILL * * *", delay: 8.0 }); - Instance.EntFireAtName({ name: "Console", input: "Command", value: "zr_infect_spawn_mz_ratio 6" }); - Instance.EntFireAtName({ name: "boss_surprise", input: "Kill", delay: 22.0 }); - Instance.EntFireAtName({ name: "peno", input: "Kill", delay: 22.0 }); - Instance.EntFireAtName({ name: "ppv_autism", input: "Enable", delay: 7.0 }); - Instance.EntFireAtName({ name: "cyber_autism_overlay", input: "Start", delay: 7.0 }); - Instance.EntFireAtName({ name: "cyber_autism_surprise", input: "ForceSpawn", delay: 8.0 }); - Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "AutismMovement", delay: 55.0 }); - } - else - Instance.Msg("[CyberScript] Autism Mode: false"); + let candidates = []; + for (let i = 0; i < cleard.length; i++) { + if (!cleard[i]) { + candidates.push(i); + } + } + + if (candidates.length == 0) { + for (let i = 0; i < cleard.length; i++) { + cleard[i] = false; + candidates.push(i); + } + + Instance.Msg(`[CyberScript] Reset to chosen - Enabled Autism Mode`); + autism = true; + } + + playing = candidates[GetRandomInt(0, candidates.length - 1)]; + Instance.Msg(`[CyberScript] Selected Way: ${playing}`); + if (playing == null) + { + Instance.Msg(`[CyberScript] Error: number is null!`); + return; + } + else if (playing == 0) + { + Instance.EntFireAtName({ name: "cyber_1stway_brush", input: "Disable" }); + Instance.EntFireAtName({ name: "cyber_2ndway_brush", input: "Enable" }); + Instance.EntFireAtName({ name: "cyber_3rd_brush", input: "Enable" }); + Instance.EntFireAtName({ name: "cyber_3rd_stoopid", input: "Disable" }); + Instance.EntFireAtName({ name: "cyber_4th_block", input: "Disable" }); + Instance.EntFireAtName({ name: "Cyber_Element_case1", input: "PickRandom" }); + Instance.EntFireAtName({ name: "Cyber_inga", input: "StartSound" }); + Instance.EntFireAtName({ name: "cyber_treasure1_case", input: "PickRandom" }); + Instance.EntFireAtName({ name: "PEPE", input: "Start" }); + Instance.EntFireAtName({ name: "Console", input: "Command", value: "say * * * Current phase: TOTALLY NEVER SEEN * * *", delay: 6.0 }); + KillWay1(); + KillWay2(); + KillWay3(); + } + else if(playing == 1) + { + Instance.EntFireAtName({ name: "cyber_1stway_brush", input: "Enable" }); + Instance.EntFireAtName({ name: "cyber_2ndway_brush", input: "Disable" }); + Instance.EntFireAtName({ name: "cyber_3rd_brush", input: "Enable" }); + Instance.EntFireAtName({ name: "cyber_3rd_stoopid", input: "Disable" }); + Instance.EntFireAtName({ name: "cyber_4th_block", input: "Disable" }); + Instance.EntFireAtName({ name: "cyber_boss_arenaChooser", input: "PickRandom" }); + Instance.EntFireAtName({ name: "Cyber_BRODY", input: "StartSound" }); + Instance.EntFireAtName({ name: "Cyber_Element_case2", input: "PickRandom" }); + Instance.EntFireAtName({ name: "cyber_treasure2_case", input: "PickRandom" }); + Instance.EntFireAtName({ name: "PEPE", input: "Start" }); + Instance.EntFireAtName({ name: "Console", input: "Command", value: "say * * * Current phase: CURSED HEXAHEDRON * * *", delay: 6.0 }); + KillWay0(); + KillWay2(); + KillWay3(); + } + else if(playing == 2) + { + Instance.EntFireAtName({ name: "cyber_3rd_brush", input: "Disable" }); + Instance.EntFireAtName({ name: "cyber_3rd_stoopid", input: "Enable" }); + Instance.EntFireAtName({ name: "cyber_4th_block", input: "Disable" }); + Instance.EntFireAtName({ name: "Cyber_Element_case3", input: "PickRandom" }); + Instance.EntFireAtName({ name: "cyber_magic_music", input: "StartSound" }); + Instance.EntFireAtName({ name: "cyber_miniboss_templ", input: "KeyValue", value: "origin -3048 -2032 848" }); + Instance.EntFireAtName({ name: "cyber_miniboss_templ", input: "ForceSpawn", delay: 0.01 }); + Instance.EntFireAtName({ name: "cyber_treasure3_case", input: "PickRandom" }); + Instance.EntFireAtName({ name: "PEPE", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Path_*", input: "Kill" }); + Instance.EntFireAtName({ name: "Console", input: "Command", value: "say * * * Current phase: MAGIC IS REAL * * *", delay: 6.0 }); + KillWay0(); + KillWay1(); + KillWay3(); + } + else if(playing == 3) + { + Instance.EntFireAtName({ name: "cyber_4th_block", input: "Enable" }); + Instance.EntFireAtName({ name: "cyber_4th_breakable", input: "Break", delay: 45.0 }); + Instance.EntFireAtName({ name: "cyber_4th_hp", input: "Enable", delay: 44.0 }); + Instance.EntFireAtName({ name: "cyber_4th_music", input: "StartSound" }); + Instance.EntFireAtName({ name: "cyber_AFK_0", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Cage_Destination", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Cage_Teleport", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Element_case4", input: "PickRandom" }); + Instance.EntFireAtName({ name: "cyber_lebutton", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_lebutton2", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_miniboss_templ", input: "KeyValue", value: "origin 3616 -3248 -1984" }); + Instance.EntFireAtName({ name: "cyber_miniboss_templ", input: "ForceSpawn", delay: 0.01 }); + Instance.EntFireAtName({ name: "cyber_puzzle_case", input: "PickRandom" }); + Instance.EntFireAtName({ name: "cyber_sewer_escape_brush", input: "Disable" }); + Instance.EntFireAtName({ name: "PEPE", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Path_*", input: "Kill" }); + Instance.EntFireAtName({ name: "Console", input: "Command", value: "say * * * Current phase: NOT TRAMPOLINES * * *", delay: 6.0 }); + Instance.EntFireAtName({ name: "Console", input: "Command", value: "zr_infect_spawn_mz_ratio 8" }); + KillWay0(); + KillWay1(); + KillWay2(); + } + + if (autism) + { + Instance.Msg("[CyberScript] Autism Mode: true"); + Instance.EntFireAtName({ name: "Console", input: "Command", value: "say * * * WIND: ENABLED * * *", delay: 6.0 }); + Instance.EntFireAtName({ name: "Console", input: "Command", value: "say * * * GLASSES: OFF * * *", delay: 7.0 }); + Instance.EntFireAtName({ name: "Console", input: "Command", value: "say * * * GRAVITY: IS KILL * * *", delay: 8.0 }); + Instance.EntFireAtName({ name: "Console", input: "Command", value: "zr_infect_spawn_mz_ratio 6" }); + Instance.EntFireAtName({ name: "boss_surprise", input: "Kill", delay: 22.0 }); + Instance.EntFireAtName({ name: "peno", input: "Kill", delay: 22.0 }); + Instance.EntFireAtName({ name: "ppv_autism", input: "Enable", delay: 7.0 }); + Instance.EntFireAtName({ name: "cyber_autism_overlay", input: "Start", delay: 7.0 }); + Instance.EntFireAtName({ name: "cyber_autism_surprise", input: "ForceSpawn", delay: 8.0 }); + Instance.EntFireAtTarget({ target: script_ent, input: "RunScriptInput", value: "AutismMovement", delay: 55.0 }); + } + else + Instance.Msg("[CyberScript] Autism Mode: false"); } function KillWay0() { - Instance.EntFireAtName({ name: "Cyber_Bottomfloor_Door1", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Bottomfloor_Door2", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Bottomfloor_Stairs_1", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Bottomfloor_Stairs_2", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Bottomfloor_Trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Bottomfloor_Zombie_Trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Core_Exit_Push_Stop_Trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Core_Exit_Push1", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Core_Unstable", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Corridor_Push", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Corridor_Push_Top", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Corridor_Push_Trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Disableworld_Button", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_hueland", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Last_Door", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Last_Door_Trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_last_trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_Ldoor", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_Rdoor", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_trigger_l", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_trigger_r", input: "Kill" }); - Instance.EntFireAtName({ name: "lehue", input: "Kill" }); - Instance.EntFireAtName({ name: "lenohue", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Path_2", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Path_3", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Bottomfloor_Door1", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Bottomfloor_Door2", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Bottomfloor_Stairs_1", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Bottomfloor_Stairs_2", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Bottomfloor_Trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Bottomfloor_Zombie_Trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Core_Exit_Push_Stop_Trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Core_Exit_Push1", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Core_Unstable", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Corridor_Push", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Corridor_Push_Top", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Corridor_Push_Trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Disableworld_Button", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_hueland", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_hueland_train", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Last_Door", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Last_Door_Trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_last_trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_Ldoor", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_Rdoor", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_trigger_l", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_trigger_r", input: "Kill" }); + Instance.EntFireAtName({ name: "lehue", input: "Kill" }); + Instance.EntFireAtName({ name: "lenohue", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Path_2", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Path_3", input: "Kill" }); } function KillWay1() { - Instance.EntFireAtName({ name: "BlessedHuman", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_AttackMath", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_breath", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_breath_igniter", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_breath_relay", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_chooseAttack", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_ExecAttack", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_fall_boom", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_fall_camera_mov", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_fall_P1", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_fall_P2", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_Freezer", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_freezer_relay", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_hitbox", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_lava", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_minion_chooser_pick", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_minion_chooser_train", input: "Kill" }); - Instance.EntFireAtName({ name: "Boss_Nades", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_pimba", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_pimba_particles", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_tetris_case", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_tetris_relay", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_vortex", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_vortex_particles", input: "Kill" }); - Instance.EntFireAtName({ name: "boss_vortex_relay", input: "Kill" }); - Instance.EntFireAtName({ name: "bosshp*", input: "Kill" }); - Instance.EntFireAtName({ name: "BossTPFilter", input: "Kill" }); - Instance.EntFireAtName({ name: "bossy", input: "Kill" }); - Instance.EntFireAtName({ name: "BossZombie", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_boss_ded", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_boss_ded_zm", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_boss_nocry", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_boss_shitgotserious", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_boss_tp", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_canon_orb", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_Coolness", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_elevator_breakable_exit", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_elevator_button", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_elevator_ducto", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_elevator_TT", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_elevator_TT_path1", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_elevator_TT_path2", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_end_canon", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_end_canon_mov", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_end_door", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_end_push", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_indus_afk", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_indus_door", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_indus_filter_hurt", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_indus_filter_particles", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_indus_nofalldmg", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_indus_source", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_indus_texter", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_indus_trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_indus_zombiesTele", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_noboss_tp", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_nodmgpls", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Preboss_break-floor", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Preboss_Door", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_preboss_door_trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "Cyber_Preboss_Trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_trampoline", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_zombie_boss", input: "Kill" }); - Instance.EntFireAtName({ name: "Grenades", input: "Kill" }); - Instance.EntFireAtName({ name: "lolz", input: "Kill" }); - Instance.EntFireAtName({ name: "Paint", input: "Kill" }); - Instance.EntFireAtName({ name: "Painter", input: "Kill" }); - Instance.EntFireAtName({ name: "Painter_strip", input: "Kill" }); - Instance.EntFireAtName({ name: "Painter_trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "BlessedHuman", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_AttackMath", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_breath", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_breath_igniter", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_breath_relay", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_chooseAttack", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_ExecAttack", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_fall_boom", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_fall_camera_mov", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_fall_P1", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_fall_P2", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_Freezer", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_freezer_relay", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_hitbox", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_lava", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_minion_chooser_pick", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_minion_chooser_train", input: "Kill" }); + Instance.EntFireAtName({ name: "Boss_Nades", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_pimba", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_pimba_particles", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_tetris_case", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_tetris_relay", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_vortex", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_vortex_particles", input: "Kill" }); + Instance.EntFireAtName({ name: "boss_vortex_relay", input: "Kill" }); + Instance.EntFireAtName({ name: "bosshp*", input: "Kill" }); + Instance.EntFireAtName({ name: "BossTPFilter", input: "Kill" }); + Instance.EntFireAtName({ name: "bossy", input: "Kill" }); + Instance.EntFireAtName({ name: "BossZombie", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_boss_ded", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_boss_ded_zm", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_boss_nocry", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_boss_shitgotserious", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_boss_tp", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_canon_orb", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_Coolness", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_elevator_breakable_exit", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_elevator_button", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_elevator_ducto", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_elevator_TT", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_elevator_TT_path1", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_elevator_TT_path2", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_end_canon", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_end_canon_mov", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_end_door", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_end_push", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_indus_afk", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_indus_door", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_indus_filter_hurt", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_indus_filter_particles", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_indus_nofalldmg", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_indus_source", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_indus_texter", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_indus_trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_indus_zombiesTele", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_noboss_tp", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_nodmgpls", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Preboss_break-floor", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Preboss_Door", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_preboss_door_trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "Cyber_Preboss_Trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_trampoline", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_zombie_boss", input: "Kill" }); + Instance.EntFireAtName({ name: "Grenades", input: "Kill" }); + Instance.EntFireAtName({ name: "lolz", input: "Kill" }); + Instance.EntFireAtName({ name: "Paint", input: "Kill" }); + Instance.EntFireAtName({ name: "Painter", input: "Kill" }); + Instance.EntFireAtName({ name: "Painter_strip", input: "Kill" }); + Instance.EntFireAtName({ name: "Painter_trigger", input: "Kill" }); } function KillWay2() { - Instance.EntFireAtName({ name: "cyber_button1", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_button2", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_buttons_math", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_buttons_trigg", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_el_deado", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_final_door", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_final_ele", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_final_path1", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_final_path2", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_final_trigg", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_final_tt", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_gen_exit", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_ledoor", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_ledoor_trigg", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_left_door", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_left_trigg", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_pre_door", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_pre_door_trigg", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_subderp_tele", input: "Kill" }); - Instance.EntFireAtName({ name: "dick", input: "Kill" }); - Instance.EntFireAtName({ name: "geraffes_r_so_dumb", input: "Kill" }); - Instance.EntFireAtName({ name: "see_cret", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_button1", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_button2", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_buttons_math", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_buttons_trigg", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_el_deado", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_final_door", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_final_ele", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_final_path1", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_final_path2", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_final_trigg", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_final_tt", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_gen_exit", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_ledoor", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_ledoor_trigg", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_left_door", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_left_trigg", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_pre_door", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_pre_door_trigg", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_subderp_tele", input: "Kill" }); + Instance.EntFireAtName({ name: "dick", input: "Kill" }); + Instance.EntFireAtName({ name: "geraffes_r_so_dumb", input: "Kill" }); + Instance.EntFireAtName({ name: "see_cret", input: "Kill" }); } function KillWay3() { - Instance.EntFireAtName({ name: "cyber_2funs_a", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_2funs_b", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_2funs_math", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_4th_afk_1", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_4th_hp", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_4th_spawn_tp", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_4th_tp", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_b_door", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_b_door_trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_b_door2", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_b_door2_trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_cyberspace_exit", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_cyberspace_exit_breakable", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_cyberspace_exit_tp", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_cyberspace_exit_trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_cyberspace_grav_trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_cyberspace_pit_teleport", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_el_endo_triggero", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_el_particulo", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_falldmg_pls", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_nofalldmg_pls", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_puzzle_exit", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_puzzle_trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_sewer_escape_button", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_sewers_block_1", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_sewers_block_2", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_sewers_block_trigg", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_sewers_breakable", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_sewers_door", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_sewers_door_trigg", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_sewers_exit_door", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_sewers_exit_door_trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_t_door", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_t_door_trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_t_door2", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_t_door2_trigger", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_timer_funs", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_trampolino", input: "Kill" }); - Instance.EntFireAtName({ name: "cyber_trampolino_particles", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_2funs_a", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_2funs_b", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_2funs_math", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_4th_afk_1", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_4th_hp", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_4th_spawn_tp", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_4th_tp", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_b_door", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_b_door_trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_b_door2", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_b_door2_trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_cyberspace_exit", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_cyberspace_exit_breakable", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_cyberspace_exit_tp", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_cyberspace_exit_trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_cyberspace_grav_trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_cyberspace_pit_teleport", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_el_endo_triggero", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_el_particulo", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_falldmg_pls", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_nofalldmg_pls", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_puzzle_exit", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_puzzle_trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_sewer_escape_button", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_sewers_block_1", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_sewers_block_2", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_sewers_block_trigg", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_sewers_breakable", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_sewers_door", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_sewers_door_trigg", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_sewers_exit_door", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_sewers_exit_door_trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_t_door", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_t_door_trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_t_door2", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_t_door2_trigger", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_timer_funs", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_trampolino", input: "Kill" }); + Instance.EntFireAtName({ name: "cyber_trampolino_particles", input: "Kill" }); } function GetRandomInt(min, max) { - return Math.floor(Math.random() * (max - min + 1)) + min; + return Math.floor(Math.random() * (max - min + 1)) + min; } function GetRandomFloat(min, max) { - return Math.random() * (max - min) + min; -} + return Math.random() * (max - min) + min; +} \ No newline at end of file