Return to post
Variablen
- settings
- {
- main
- {
- Description: "[v3.1] 1vs1 only DPS - 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
- {
- Score To Win: 8
- 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
- }
- disabled heroes
- {
- Ana
- Baptiste
- Brigitte
- D.Va
- Lúcio
- Mercy
- Moira
- Orisa
- Reinhardt
- Roadhog
- Sigma
- Winston
- Wrecking Ball
- Zarya
- Zenyatta
- }
- }
- }
- workshop
- {
- Score to Win: 8
- }
- }
- variables
- {
- global:
- 1: goalScore
- 2: rounds
- 3: showHUD
- 4: checkedAllowed
- 6: playerFacing
- 11: heroList
- 17: heroListPos
- 24: tp1
- 25: tp2
- player:
- 3: damage
- }
Subroutinen
- subroutines
- {
- 0: SwitchHero
- 1: Teleport
- 2: SetFacing
- 3: Slowmo
- }
regel("Credits - By Marc304")
- rule("Credits - By Marc304")
- {
- event
- {
- Ongoing - Global;
- }
bedingungen
- conditions
- {
- Is Game In Progress != True;
- }
aktionen
- 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;
deaktiviert Create HUD Text(All Players(All Teams), Null, Custom String(
"Supported Maps: Castillo, Ecopoint, Backforest, Workshop Island, Chamber, Expanse"), Custom String(
"This message will disappear when the game starts"), Left, 1, Yellow, White, White, Visible To and String, Default Visibility);
deaktiviert Global.U = Last Text ID;
}
}
regel("[Config] Create Hero List")
{
event
{
Ongoing - Global;
}
aktionen
{
"Goal Score"
Global.goalScore = 8;
"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));
deaktiviert Modify Global Variable(heroList, Append To Array, Hero(Baptiste));
Modify Global Variable(heroList, Append To Array, Hero(Bastion));
deaktiviert Modify Global Variable(heroList, Append To Array, Hero(Brigitte));
deaktiviert 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));
deaktiviert 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));
deaktiviert Modify Global Variable(heroList, Append To Array, Hero(Mercy));
deaktiviert Modify Global Variable(heroList, Append To Array, Hero(Moira));
deaktiviert 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));
deaktiviert Modify Global Variable(heroList, Append To Array, Hero(Reinhardt));
deaktiviert Modify Global Variable(heroList, Append To Array, Hero(Roadhog));
deaktiviert Modify Global Variable(heroList, Append To Array, Hero(Sigma));
deaktiviert 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(Widowmaker));
deaktiviert Modify Global Variable(heroList, Append To Array, Hero(Winston));
deaktiviert Modify Global Variable(heroList, Append To Array, Hero(Wrecking Ball));
deaktiviert Modify Global Variable(heroList, Append To Array, Hero(Zarya));
deaktiviert Modify Global Variable(heroList, Append To Array, Hero(Zenyatta));
Global.heroList = Array Slice(Randomized Array(Global.heroList), 0, Count Of(Global.heroList));
- }
- }
regel("Map TPs")
- rule("Map TPs")
- {
- event
- {
- Player Joined Match;
- All;
- All;
- }
bedingungen
{
deaktiviert Is Game In Progress == True;
}
aktionen
- 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: Antarktis) || Current Map == Map(Ecopoint: Antarktis Winter));
- 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-Insel) || Current Map == Map(Workshop-Insel Nacht));
- 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-Raum) || Current Map == Map(Workshop-Gebiet) || Current Map == Map(Workshop-Gebiet Nacht));
- 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(Schwarzwald) || Current Map == Map(Schwarzwald Winter));
- 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(Nekropole));
- 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;
- }
- }
regel("Switch Hero")
- rule("[Config] Create Hero List")
- {
- event
- {
- Ongoing - Global;
- }
- actions
- {
- "Activate/Deactivate the damage stats HUD"
- Global.showHUD = Workshop Setting Toggle(Custom String("HUD"), Custom String("Show Damage HUD"), True);
- "Reset player facing"
- Global.playerFacing = Workshop Setting Toggle(Custom String("Player facing reset"), Custom String(
- "Reset player facing each round"), True);
- "Goal Score"
- Global.goalScore = Workshop Setting Integer(Custom String(
- "Score to Win - You need to change this also in the Team-Deathmatch Settings!"), Custom String("Score to Win"), 15, 1, 100);
- Global.checkedAllowed = True;
- }
- }
- rule("Check allowed Heroes")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Global.checkedAllowed == True;
- }
- actions
- {
- Global.heroList = Allowed Heroes(Event Player);
- Global.heroList = Array Slice(Randomized Array(Global.heroList), 0, Count Of(Global.heroList));
- Global.checkedAllowed = False;
- }
- }
- rule("Switch Hero")
- {
- event
- {
- Subroutine;
- SwitchHero;
- }
aktionen
- 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]);
- }
- }
regel("Start")
- rule("Start")
- {
- event
- {
- Ongoing - Global;
- }
bedingungen
- conditions
- {
- Is Game In Progress == True;
- }
aktionen
- 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);
Destroy HUD Text(Global.T);
Destroy HUD Text(Global.S);
Destroy HUD Text(Global.U);
Destroy HUD Text(Global.F);
Destroy HUD Text(Global.P);
- Call Subroutine(SwitchHero);
- Call Subroutine(Teleport);
- Call Subroutine(SetFacing);
- Call Subroutine(Slowmo);
Wait(0.250, Ignore Condition);
- Wait(0.200, Ignore Condition);
- Destroy HUD Text(Global.F);
- Destroy HUD Text(Global.P);
- }
- }
regel("Teleport")
- rule("Teleport")
- {
- event
- {
- Subroutine;
- Teleport;
- }
aktionen
- actions
- {
- Teleport(Players In Slot(0, Team 1), Global.tp1);
- Teleport(Players In Slot(0, Team 2), Global.tp2);
- }
- }
regel("Slowmo")
- rule("Slowmo")
- {
- event
- {
- Subroutine;
- Slowmo;
- }
aktionen
- actions
- {
- Set Slow Motion(20);
- Wait(0.500, Ignore Condition);
- Set Slow Motion(100);
- }
- }
regel("Kill")
- rule("Set Facing")
- {
- event
- {
- Subroutine;
- SetFacing;
- }
- actions
- {
- If(Global.playerFacing == True);
- Wait(0.001, Ignore Condition);
- Set Facing(Players In Slot(0, Team 1), Direction Towards(Global.tp1, Global.tp2), To World);
- Set Facing(Players In Slot(0, Team 2), Direction Towards(Global.tp2, Global.tp1), To World);
- End;
- }
- }
- rule("Kill")
- {
- event
- {
- Player Died;
- All;
- All;
- }
bedingungen
- conditions
- {
- Team Score(Team 1) != Global.goalScore;
- Team Score(Team 2) != Global.goalScore;
- Is Game In Progress == True;
- }
aktionen
- 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(SetFacing);
- Call Subroutine(Slowmo);
- }
- }
regel("HUD")
- rule("HUD (on)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
bedingungen
- conditions
- {
- Is Game In Progress == True;
- Global.showHUD == True;
- }
aktionen
- 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);
deaktiviert Create HUD Text(Event Player, Null, Null, Custom String("{1}: {0}", Players In Slot(0, Team 1).D, Players In Slot(0, Team 1)),
Left, 2, White, White, White, Visible To and String, Default Visibility);
deaktiviert Create HUD Text(Event Player, Null, Null, Custom String("{1}: {0}", Players In Slot(0, Team 2).D, Players In Slot(0, Team 2)),
Left, 3, 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).D, 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).D, To Nearest),
Players In Slot(0, Team 2)), Left, 3, 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);
- }
- }
regel("DMG")
- 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;
- }
bedingungen
- conditions
- {
- Victim != Event Player;
- }
aktionen
- actions
- {
Event Player.D += Event Damage;
deaktiviert Event Player.D = Round To Integer(Event Player.D, To Nearest);
- Event Player.damage += Event Damage;
- }
- }
regel("More Rounds than Heros = Set to Round 1")
- rule("More Rounds than Heroes = Set to Round 0")
- {
- event
- {
- Ongoing - Global;
- }
bedingungen
- conditions
- {
- Global.heroListPos == Count Of(Global.heroList);
- }
aktionen
- actions
- {
Global.heroListPos = 1;
- Global.heroListPos = 0;
- }
- }
regel("Countdown (Join)")
- rule("Countdown (Join)")
- {
- event
- {
- Player Joined Match;
- All;
- All;
- }
bedingungen
- conditions
- {
- Is In Setup == True;
- Event Player.O != True;
- }
aktionen
- actions
- {
- Event Player.O = True;
- Wait(0.250, Ignore Condition);
- Call Subroutine(Teleport);
- Call Subroutine(SetFacing);
- 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);
Global.P = Last Text ID;
- }
- }
regel("Countdown (each)")
- rule("Countdown (each)")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
bedingungen
- conditions
- {
- Is In Setup == True;
- Event Player.O != True;
- }
aktionen
- actions
- {
- Event Player.O = True;
- Wait(0.250, Ignore Condition);
- Call Subroutine(Teleport);
- Call Subroutine(SetFacing);
- 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);
Global.F = Last Text ID;
- }
- }
deaktiviert regel("[Debug] Switch Hero")
- rule("If Player is 1st Hero = Respawn & new Hero")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
bedingungen
- conditions
- {
Is Button Held(Event Player, Interact) == True;
- Hero Of(Event Player) == Global.heroList[0];
- Is In Setup == True;
- }
aktionen
- actions
- {
Call Subroutine(SwitchHero);
Global.heroListPos += 1;
- Wait(0.250, Ignore Condition);
- Kill(Event Player, Null);
- Wait(0.250, Ignore Condition);
- Respawn(Event Player);
- Wait(0.250, Ignore Condition);
- Call Subroutine(Teleport);
- }
- }
deaktiviert regel("[Debug] Dummy")
- disabled rule("[Debug] Dummy")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
bedingungen
- conditions
- {
- Is Button Held(Event Player, Reload) == True;
- Is Game In Progress != True;
- }
aktionen
- actions
- {
- Create Dummy Bot(Hero(Ana), Team 2, -1, Event Player, Vector(0, 0, 0));
- }
- }
- 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;
- }
- }