Create
Return to post

Comparing difference between and

View raw
  • settings
  • {
  • main
  • {
  • Description: "[v2.2] 1vs1 All Heroes - by Marc304 --- Supported Maps: Castillo, Necropolis Ecopoint (+Winter), Black Forest (+Winter), Workshop Island (+Night), Chamber, Expanse(+Night)"
  • Description: "[v2.3] 1vs1 All Heroes - by Marc304 --- Supported Maps: Castillo, Necropolis Ecopoint (+Winter), Black Forest (+Winter), Workshop Island (+Night), Chamber, Expanse(+Night)"
  • }
  • lobby
  • {
  • Max Spectators: 6
  • Max Team 1 Players: 1
  • Max Team 2 Players: 1
  • }
  • modes
  • {
  • disabled Deathmatch
  • {
  • Score To Win: 50
  • }
  • Team Deathmatch
  • {
  • Game Length In Minutes: 15
  • Score To Win: 15
  • enabled maps
  • {
  • Castillo
  • }
  • }
  • General
  • {
  • Allow Hero Switching: Off
  • Limit Roles: 2 Of Each Role Per Team
  • Respawn As Random Hero: On
  • Spawn Health Packs: Disabled
  • }
  • }
  • heroes
  • {
  • General
  • {
  • Lúcio
  • {
  • Crossfade: Off
  • }
  • Mercy
  • {
  • Regeneration: Off
  • Weapons Enabled: Caduceus Blaster Only
  • }
  • Sombra
  • {
  • Stealth: Off
  • }
  • }
  • }
  • }
  • variables
  • {
  • global:
  • 1: goalScore
  • 2: rounds
  • 3: showHUD
  • 11: heroList
  • 17: heroListPos
  • 24: tp1
  • 25: tp2
  • player:
  • 3: damage
  • }
  • subroutines
  • {
  • 0: SwitchHero
  • 1: Teleport
  • 3: Slowmo
  • }
  • rule("Credits - By Marc304")
  • {
  • event
  • {
  • Ongoing - Global;
  • }
  • conditions
  • {
  • Is Game In Progress != True;
  • }
  • actions
  • {
  • Create HUD Text(All Players(All Teams), Null, Null, Custom String("By Marc304"), Right, 0, White, White, White,
  • Visible To and String, Default Visibility);
  • "Map Support"
  • Global.T = Last Text ID;
  • Create HUD Text(All Players(All Teams), Custom String("", Global.M), Null, Custom String("Supported Map: {0}", Global.M), Left, 0,
  • Yellow, White, Yellow, Visible To and String, Default Visibility);
  • Global.S = Last Text ID;
  • }
  • }
  • rule("Map TPs")
  • {
  • event
  • {
  • Player Joined Match;
  • All;
  • All;
  • }
  • actions
  • {
  • If(Current Map == Map(Castillo));
  • Global.tp1 = Vector(-100.298, 45.255, 74.219);
  • Global.tp2 = Vector(-106.032, 45.255, 42.884);
  • Global.M = True;
  • Else If(Current Map == Map(Ecopoint: Antarctica) || Current Map == Map(Ecopoint: Antarctica Winter));
  • Global.tp1 = Vector(1.156, 18.499, -12.031);
  • Global.tp2 = Vector(1.063, 18.499, 11.875);
  • Global.M = True;
  • Else If(Current Map == Map(Workshop Island) || Current Map == Map(Workshop Island Night));
  • Global.tp1 = Vector(0, 5.349, -10);
  • Global.tp2 = Vector(0, 5.349, 10);
  • Global.M = True;
  • Else If(Current Map == Map(Workshop Chamber) || Current Map == Map(Workshop Expanse) || Current Map == Map(
  • Workshop Expanse Night));
  • Global.tp1 = Vector(0, 5.349, -10);
  • Global.tp2 = Vector(0, 5.349, 10);
  • Global.M = True;
  • Else If(Current Map == Map(Black Forest) || Current Map == Map(Black Forest Winter));
  • Global.tp1 = Vector(-13.098, 19.712, 14.660);
  • Global.tp2 = Vector(-13.190, 19.712, -4.057);
  • Global.M = True;
  • Else If(Current Map == Map(Necropolis));
  • Global.tp1 = Vector(3.267, 18.058, 16.932);
  • Global.tp2 = Vector(3.267, 18.058, -16.932);
  • Global.M = True;
  • Else;
  • Big Message(All Players(All Teams), Custom String("This map is not supported!"));
  • Global.M = False;
  • End;
  • }
  • }
  • rule("[Config] Create Hero List")
  • {
  • event
  • {
  • Ongoing - Global;
  • }
  • actions
  • {
  • "Goal Score"
  • Global.goalScore = 15;
  • "Activate/Deactivate the damage stats HUD"
  • Global.showHUD = True;
  • "Hero List - Don't deactivate the first rule! (but you can change the Hero)"
  • Global.heroList = Hero(Soldier: 76);
  • Modify Global Variable(heroList, Append To Array, Hero(Ashe));
  • Modify Global Variable(heroList, Append To Array, Hero(Baptiste));
  • Modify Global Variable(heroList, Append To Array, Hero(Bastion));
  • Modify Global Variable(heroList, Append To Array, Hero(Brigitte));
  • Modify Global Variable(heroList, Append To Array, Hero(D.Va));
  • Modify Global Variable(heroList, Append To Array, Hero(Doomfist));
  • Modify Global Variable(heroList, Append To Array, Hero(Echo));
  • Modify Global Variable(heroList, Append To Array, Hero(Genji));
  • Modify Global Variable(heroList, Append To Array, Hero(Hanzo));
  • Modify Global Variable(heroList, Append To Array, Hero(Junkrat));
  • Modify Global Variable(heroList, Append To Array, Hero(Lúcio));
  • Modify Global Variable(heroList, Append To Array, Hero(McCree));
  • Modify Global Variable(heroList, Append To Array, Hero(Mei));
  • Modify Global Variable(heroList, Append To Array, Hero(Mercy));
  • Modify Global Variable(heroList, Append To Array, Hero(Moira));
  • Modify Global Variable(heroList, Append To Array, Hero(Orisa));
  • Modify Global Variable(heroList, Append To Array, Hero(Pharah));
  • Modify Global Variable(heroList, Append To Array, Hero(Reaper));
  • Modify Global Variable(heroList, Append To Array, Hero(Reinhardt));
  • Modify Global Variable(heroList, Append To Array, Hero(Roadhog));
  • Modify Global Variable(heroList, Append To Array, Hero(Sigma));
  • Modify Global Variable(heroList, Append To Array, Hero(Ana));
  • Modify Global Variable(heroList, Append To Array, Hero(Sombra));
  • Modify Global Variable(heroList, Append To Array, Hero(Symmetra));
  • Modify Global Variable(heroList, Append To Array, Hero(Torbjörn));
  • Modify Global Variable(heroList, Append To Array, Hero(Tracer));
  • Modify Global Variable(heroList, Append To Array, Hero(Widowmaker));
  • Modify Global Variable(heroList, Append To Array, Hero(Winston));
  • Modify Global Variable(heroList, Append To Array, Hero(Wrecking Ball));
  • Modify Global Variable(heroList, Append To Array, Hero(Zarya));
  • Modify Global Variable(heroList, Append To Array, Hero(Zenyatta));
  • Global.heroList = Array Slice(Randomized Array(Global.heroList), 0, Count Of(Global.heroList));
  • }
  • }
  • rule("Switch Hero")
  • {
  • event
  • {
  • Subroutine;
  • SwitchHero;
  • }
  • actions
  • {
  • Start Forcing Player To Be Hero(All Players(All Teams), Global.heroList[Global.heroListPos]);
  • Preload Hero(All Players(All Teams), Global.heroList[Global.heroListPos + 1]);
  • }
  • }
  • rule("Start")
  • {
  • event
  • {
  • Ongoing - Global;
  • }
  • conditions
  • {
  • Is Game In Progress == True;
  • }
  • actions
  • {
  • Set Objective Description(All Players(All Teams), Custom String("First to {1} Kills - Round: {0}", Global.rounds + 1,
  • Global.goalScore), Visible To and String);
  • Call Subroutine(SwitchHero);
  • Call Subroutine(Teleport);
  • Call Subroutine(Slowmo);
  • Wait(0.200, Ignore Condition);
  • Destroy HUD Text(Global.F);
  • Destroy HUD Text(Global.P);
  • }
  • }
  • rule("Teleport")
  • {
  • event
  • {
  • Subroutine;
  • Teleport;
  • }
  • actions
  • {
  • Teleport(Players In Slot(0, Team 1), Global.tp1);
  • Teleport(Players In Slot(0, Team 2), Global.tp2);
  • }
  • }
  • rule("Slowmo")
  • {
  • event
  • {
  • Subroutine;
  • Slowmo;
  • }
  • actions
  • {
  • Set Slow Motion(20);
  • Wait(0.500, Ignore Condition);
  • Set Slow Motion(100);
  • }
  • }
  • rule("Kill")
  • {
  • event
  • {
  • Player Died;
  • All;
  • All;
  • }
  • conditions
  • {
  • Team Score(Team 1) != Global.goalScore;
  • Team Score(Team 2) != Global.goalScore;
  • Is Game In Progress == True;
  • }
  • actions
  • {
  • Global.heroListPos += 1;
  • Global.rounds += 1;
  • Wait(0.200, Ignore Condition);
  • Call Subroutine(SwitchHero);
  • Call Subroutine(Teleport);
  • Resurrect(All Players(All Teams));
  • Call Subroutine(Slowmo);
  • }
  • }
  • rule("HUD (on)")
  • {
  • event
  • {
  • Ongoing - Each Player;
  • All;
  • All;
  • }
  • conditions
  • {
  • Is Game In Progress == True;
  • Global.showHUD == True;
  • }
  • actions
  • {
  • Destroy All HUD Text;
  • Wait(0.250, Ignore Condition);
  • Create HUD Text(Event Player, Null, Null, Custom String("Damage"), Left, 1, White, White, White, Visible To and String,
  • Default Visibility);
  • Create HUD Text(Event Player, Null, Null, Custom String("{1}: {0}", Round To Integer(Players In Slot(0, Team 1).damage,
  • To Nearest), Players In Slot(0, Team 1)), Left, 2, White, White, White, Visible To and String, Default Visibility);
  • Create HUD Text(Event Player, Null, Null, Custom String("{1}: {0}", Round To Integer(Players In Slot(0, Team 2).damage,
  • To Nearest), Players In Slot(0, Team 2)), Left, 3, White, White, White, Visible To and String, Default Visibility);
  • }
  • }
  • rule("HUD (off)")
  • {
  • event
  • {
  • Ongoing - Each Player;
  • All;
  • All;
  • }
  • conditions
  • {
  • Is Game In Progress == True;
  • Global.showHUD == False;
  • }
  • actions
  • {
  • Destroy All HUD Text;
  • }
  • }
  • rule("DMG")
  • {
  • event
  • {
  • Player Dealt Damage;
  • All;
  • All;
  • }
  • conditions
  • {
  • Victim != Event Player;
  • }
  • actions
  • {
  • Event Player.damage += Event Damage;
  • }
  • }
  • rule("More Rounds than Heroes = Set to Round 0")
  • {
  • event
  • {
  • Ongoing - Global;
  • }
  • conditions
  • {
  • Global.heroListPos == Count Of(Global.heroList);
  • }
  • actions
  • {
  • Global.heroListPos = 0;
  • }
  • }
  • rule("Countdown (Join)")
  • {
  • event
  • {
  • Player Joined Match;
  • All;
  • All;
  • }
  • conditions
  • {
  • Is In Setup == True;
  • Event Player.O != True;
  • }
  • actions
  • {
  • Event Player.O = True;
  • Wait(0.250, Ignore Condition);
  • Call Subroutine(Teleport);
  • Create HUD Text(Event Player, Custom String("First Hero: {0} {1}", Global.heroList[0], Hero Icon String(Global.heroList[0])), Null,
  • Null, Top, 0, Team 1, White, White, Visible To and String, Default Visibility);
  • }
  • }
  • rule("Countdown (each)")
  • {
  • event
  • {
  • Ongoing - Each Player;
  • All;
  • All;
  • }
  • conditions
  • {
  • Is In Setup == True;
  • Event Player.O != True;
  • }
  • actions
  • {
  • Event Player.O = True;
  • Wait(0.250, Ignore Condition);
  • Call Subroutine(Teleport);
  • Create HUD Text(Event Player, Custom String("First Hero: {0} {1}", Global.heroList[0], Hero Icon String(Global.heroList[0])), Null,
  • Null, Top, 0, Team 1, White, White, Visible To and String, Default Visibility);
  • }
  • }
  • rule("If Player is 1st Hero = Respawn & new Hero")
  • {
  • event
  • {
  • Ongoing - Each Player;
  • All;
  • All;
  • }
  • conditions
  • {
  • Hero Of(Event Player) == Global.heroList[0];
  • Is In Setup == True;
  • }
  • actions
  • {
  • Wait(0.250, Ignore Condition);
  • Kill(Event Player, Null);
  • Respawn(Event Player);
  • Wait(0.250, Ignore Condition);
  • Call Subroutine(Teleport);
  • }
  • }
  • disabled rule("[Debug] Switch Hero")
  • {
  • event
  • {
  • Ongoing - Each Player;
  • All;
  • All;
  • }
  • conditions
  • {
  • Is Button Held(Event Player, Interact) == True;
  • }
  • actions
  • {
  • Call Subroutine(SwitchHero);
  • Global.heroListPos += 1;
  • }
  • }
  • disabled rule("[Debug] Dummy")
  • {
  • event
  • {
  • Ongoing - Each Player;
  • All;
  • All;
  • }
  • conditions
  • {
  • Is Button Held(Event Player, Reload) == True;
  • Is Game In Progress != True;
  • }
  • actions
  • {
  • Create Dummy Bot(Hero(Ana), Team 2, -1, Event Player, Vector(0, 0, 0));
  • }
  • }
Join the Workshop.codes Discord