Back to home

1000 DMG = NEXT HERO aka Infinite Damage Gun Game

V5PEB
click to copy
This game is archived.
If you with to unarchive it, click the "restore" button in the options menu.

Category:
Custom game mode

Author:
Jokaes

Rating:
2

Version:
11.0.0

Posted:
5 months ago

Last updated:
3 months ago

Tags:
damage gun game jokaes infinite aim arena arena havana hero 1000 while you wait

Share this workshop!

Options

∞ Infinite Damage Gun Game.

Change hero every 1000.

Hero List - 8 random DPS + 1 Tank (5th) & + 1 Supp (10th) in loop - No turrets abilities.

Play in the arena.

Created by Jokaes#2263.

Infinite version of 10K Damage Gun Game than you can play while in queue.

rule("Disable bulit-in game mode & start timer variables {Game in progress GLOBAL}")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Is Game In Progress == True;
	}

	actions
	{
		Disable Built-In Game Mode Scoring;
		Disable Built-In Game Mode Completion;
		Disable Built-In Game Mode Announcer;
		Disable Built-In Game Mode Music;
		Disable Inspector Recording;
		Pause Match Time;
		Set Global Variable(timeCounter, 0.001);
		"Creates a HUD in the top with [svr load: {0} | svr avg: {1} | svr peak: {2}]"
		Create HUD Text(Filtered Array(Host Player, Compare(Custom String("#Jokaes", Null, Null, Null), ==, String("#{0}", Host Player,
			Null, Null))), Null, Custom String("svr load: {0} | svr avg: {1} | svr peak: {2}", Server Load, Server Load Average,
			Server Load Peak), Null, Top, -100.000, White, Lime Green, White, Visible To and String, Default Visibility);
	}
}

rule("Gamemode description, create objective, next hero HUDs {Game in progress PLAYER}")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Is Game In Progress == True;
	}

	actions
	{
		Start Rule(gameModeDescriptionMessages, Do Nothing);
		Wait(4.500, Ignore Condition);
		Set Objective Description(Event Player, String("{0} {1} {2}", String("Deal", Null, Null, Null), Round To Integer(Subtract(
			Player Variable(Event Player, nextObjective), Player Variable(Event Player, damageDone)), Down), String("{0} -> {1}", String(
			"Damage", Null, Null, Null), Hero Icon String(Value In Array(Player Variable(Event Player, heroList), Divide(Player Variable(
			Event Player, nextObjective), 1000))), Null)), Visible To and String);
		Create HUD Text(Event Player, Null, String("{0}: {1}", String("Next Hero", Null, Null, Null), String("{0} {1}", Player Variable(
			Event Player, nextObjective), Value In Array(Player Variable(Event Player, heroList), Divide(Player Variable(Event Player,
			nextObjective), 1000)), Null), Null), Null, Top, 1, White, White, White, Visible To and String, Default Visibility);
	}
}

rule("Damage track")
{
	event
	{
		Player Dealt Damage;
		All;
		All;
	}

	conditions
	{
		Victim != Attacker;
	}

	actions
	{
		Modify Player Variable(Event Player, damageDone, Add, Event Damage);
		disabled Skip If(Compare(Score Of(Event Player), >=, 9999), 1);
		"Updates the score only if is necesary"
		If(Compare(Score Of(Event Player), <, 9999));
			Set Player Score(Event Player, Player Variable(Event Player, damageDone));
		End;
		Set Player Variable(Event Player, nextObjective, Multiply(Add(Round To Integer(Divide(Player Variable(Event Player, damageDone),
			1000), Down), 1), 1000));
		Destroy In-World Text(Player Variable(Event Player, damageDisplay));
		Set Player Variable(Event Player, damageDisplayPos, Eye Position(Victim));
		Set Player Variable(Event Player, damageDisplayScale, Add(0.700, Divide(Event Damage, 20)));
		"Creates a WHITE damage display if event wasn't critical else creates a RED one"
		If(Not(Event Was Critical Hit));
			disabled Skip If(Event Was Critical Hit, 1);
			Create In-World Text(Event Player, Round To Integer(Event Damage, To Nearest), Player Variable(Event Player, damageDisplayPos),
				Player Variable(Event Player, damageDisplayScale), Clip Against Surfaces, Visible To Position and String, White,
				Default Visibility);
		Else;
			disabled Skip If(Not(Event Was Critical Hit), 1);
			Create In-World Text(Event Player, Round To Integer(Event Damage, To Nearest), Player Variable(Event Player, damageDisplayPos),
				Player Variable(Event Player, damageDisplayScale), Clip Against Surfaces, Visible To Position and String, Red,
				Default Visibility);
		End;
		Set Player Variable(Event Player, damageDisplay, Last Text ID);
	}
}

disabled rule("Leaderboard {Reevaluation}")
{
	event
	{
		Ongoing - Global;
	}

	actions
	{
		Set Global Variable(leaderboardArray, Sorted Array(All Players(All Teams), Player Variable(Current Array Element, damageDone)));
		Wait(1, Ignore Condition);
		Loop;
	}
}

disabled rule("Leaderboard {HUD}")
{
	event
	{
		Ongoing - Global;
	}

	actions
	{
		Create HUD Text(Filtered Array(All Players(All Teams), Compare(Value In Array(Global Variable(leaderboardArray), 0), !=, Null)),
			Null, Null, String("{0} : {1} : {2}", Hero Icon String(Hero Of(Value In Array(Global Variable(leaderboardArray), 0))),
			Value In Array(Global Variable(leaderboardArray), 0), Round To Integer(Player Variable(Value In Array(Global Variable(
			leaderboardArray), 0), damageDone), To Nearest)), Right, 11, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(Filtered Array(All Players(All Teams), Compare(Value In Array(Global Variable(leaderboardArray), 1), !=, Null)),
			Null, Null, String("{0} : {1} : {2}", Hero Icon String(Hero Of(Value In Array(Global Variable(leaderboardArray), 1))),
			Value In Array(Global Variable(leaderboardArray), 1), Round To Integer(Player Variable(Value In Array(Global Variable(
			leaderboardArray), 1), damageDone), To Nearest)), Right, 10, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(Filtered Array(All Players(All Teams), Compare(Value In Array(Global Variable(leaderboardArray), 2), !=, Null)),
			Null, Null, String("{0} : {1} : {2}", Hero Icon String(Hero Of(Value In Array(Global Variable(leaderboardArray), 2))),
			Value In Array(Global Variable(leaderboardArray), 2), Round To Integer(Player Variable(Value In Array(Global Variable(
			leaderboardArray), 2), damageDone), To Nearest)), Right, 9, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(Filtered Array(All Players(All Teams), Compare(Value In Array(Global Variable(leaderboardArray), 3), !=, Null)),
			Null, Null, String("{0} : {1} : {2}", Hero Icon String(Hero Of(Value In Array(Global Variable(leaderboardArray), 3))),
			Value In Array(Global Variable(leaderboardArray), 3), Round To Integer(Player Variable(Value In Array(Global Variable(
			leaderboardArray), 3), damageDone), To Nearest)), Right, 8, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(Filtered Array(All Players(All Teams), Compare(Value In Array(Global Variable(leaderboardArray), 4), !=, Null)),
			Null, Null, String("{0} : {1} : {2}", Hero Icon String(Hero Of(Value In Array(Global Variable(leaderboardArray), 4))),
			Value In Array(Global Variable(leaderboardArray), 4), Round To Integer(Player Variable(Value In Array(Global Variable(
			leaderboardArray), 4), damageDone), To Nearest)), Right, 7, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(Filtered Array(All Players(All Teams), Compare(Value In Array(Global Variable(leaderboardArray), 5), !=, Null)),
			Null, Null, String("{0} : {1} : {2}", Hero Icon String(Hero Of(Value In Array(Global Variable(leaderboardArray), 5))),
			Value In Array(Global Variable(leaderboardArray), 5), Round To Integer(Player Variable(Value In Array(Global Variable(
			leaderboardArray), 5), damageDone), To Nearest)), Right, 6, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(Filtered Array(All Players(All Teams), Compare(Value In Array(Global Variable(leaderboardArray), 6), !=, Null)),
			Null, Null, String("{0} : {1} : {2}", Hero Icon String(Hero Of(Value In Array(Global Variable(leaderboardArray), 6))),
			Value In Array(Global Variable(leaderboardArray), 6), Round To Integer(Player Variable(Value In Array(Global Variable(
			leaderboardArray), 6), damageDone), To Nearest)), Right, 5, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(Filtered Array(All Players(All Teams), Compare(Value In Array(Global Variable(leaderboardArray), 7), !=, Null)),
			Null, Null, String("{0} : {1} : {2}", Hero Icon String(Hero Of(Value In Array(Global Variable(leaderboardArray), 7))),
			Value In Array(Global Variable(leaderboardArray), 7), Round To Integer(Player Variable(Value In Array(Global Variable(
			leaderboardArray), 7), damageDone), To Nearest)), Right, 4, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(Filtered Array(All Players(All Teams), Compare(Value In Array(Global Variable(leaderboardArray), 8), !=, Null)),
			Null, Null, String("{0} : {1} : {2}", Hero Icon String(Hero Of(Value In Array(Global Variable(leaderboardArray), 8))),
			Value In Array(Global Variable(leaderboardArray), 8), Round To Integer(Player Variable(Value In Array(Global Variable(
			leaderboardArray), 8), damageDone), To Nearest)), Right, 3, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(Filtered Array(All Players(All Teams), Compare(Value In Array(Global Variable(leaderboardArray), 9), !=, Null)),
			Null, Null, String("{0} : {1} : {2}", Hero Icon String(Hero Of(Value In Array(Global Variable(leaderboardArray), 9))),
			Value In Array(Global Variable(leaderboardArray), 9), Round To Integer(Player Variable(Value In Array(Global Variable(
			leaderboardArray), 9), damageDone), To Nearest)), Right, 2, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(Filtered Array(All Players(All Teams), Compare(Value In Array(Global Variable(leaderboardArray), 10), !=, Null)),
			Null, Null, String("{0} : {1} : {2}", Hero Icon String(Hero Of(Value In Array(Global Variable(leaderboardArray), 10))),
			Value In Array(Global Variable(leaderboardArray), 10), Round To Integer(Player Variable(Value In Array(Global Variable(
			leaderboardArray), 10), damageDone), To Nearest)), Right, 1, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(Filtered Array(All Players(All Teams), Compare(Value In Array(Global Variable(leaderboardArray), 11), !=, Null)),
			Null, Null, String("{0} : {1} : {2}", Hero Icon String(Hero Of(Value In Array(Global Variable(leaderboardArray), 11))),
			Value In Array(Global Variable(leaderboardArray), 11), Round To Integer(Player Variable(Value In Array(Global Variable(
			leaderboardArray), 11), damageDone), To Nearest)), Right, 0, White, White, White, Visible To and String, Default Visibility);
	}
}

rule("Leaderboard 11.0.0")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	actions
	{
		Create HUD Text(All Players(All Teams), Null, Null, Custom String("{0} : {1} : {2}", Hero Icon String(Hero Of(Event Player)),
			Event Player, Round To Integer(Player Variable(Event Player, damageDone), To Nearest)), Right, Divide(Multiply(Player Variable(
			Event Player, damageDone), -1.000), 1000), White, White, White, Visible To Sort Order and String, Visible Always);
	}
}

rule("Hero List - Infinite 8 DPS   1 Tank (5th)   1 Supp (10th)")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	actions
	{
		Set Player Variable(Event Player, heroList, All Damage Heroes);
		Set Player Variable(Event Player, heroList, Randomized Array(Player Variable(Event Player, heroList)));
		Set Player Variable(Event Player, heroList, Array Slice(Player Variable(Event Player, heroList), 0, 9));
		Set Player Variable At Index(Event Player, heroList, 4, Random Value In Array(All Tank Heroes));
		Modify Player Variable(Event Player, heroList, Append To Array, Random Value In Array(All Support Heroes));
	}
}

rule("Preload Heroes")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	actions
	{
		Preload Hero(Event Player, Player Variable(Event Player, heroList));
	}
}

rule("INFINITO ∞")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Index Of Array Value(All Support Heroes, Hero Of(Event Player)) != -1.000;
		Has Spawned(Event Player) == True;
	}

	actions
	{
		Modify Player Variable(Event Player, heroList, Append To Array, Random Value In Array(All Damage Heroes));
		Wait(0.250, Ignore Condition);
		Modify Player Variable(Event Player, heroList, Append To Array, Random Value In Array(All Damage Heroes));
		Wait(0.250, Ignore Condition);
		Modify Player Variable(Event Player, heroList, Append To Array, Random Value In Array(All Damage Heroes));
		Wait(0.250, Ignore Condition);
		Modify Player Variable(Event Player, heroList, Append To Array, Random Value In Array(All Damage Heroes));
		Wait(0.250, Ignore Condition);
		Modify Player Variable(Event Player, heroList, Append To Array, Random Value In Array(All Tank Heroes));
		Wait(0.250, Ignore Condition);
		Modify Player Variable(Event Player, heroList, Append To Array, Random Value In Array(All Damage Heroes));
		Wait(0.250, Ignore Condition);
		Modify Player Variable(Event Player, heroList, Append To Array, Random Value In Array(All Damage Heroes));
		Wait(0.250, Ignore Condition);
		Modify Player Variable(Event Player, heroList, Append To Array, Random Value In Array(All Damage Heroes));
		Wait(0.250, Ignore Condition);
		Modify Player Variable(Event Player, heroList, Append To Array, Random Value In Array(All Damage Heroes));
		Wait(0.250, Ignore Condition);
		Modify Player Variable(Event Player, heroList, Append To Array, Random Value In Array(All Support Heroes));
	}
}

rule("In Setup OR In Game in progress -> Starting Hero -> HeroList[0]")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Or(Is In Setup, Is Game In Progress) == True;
	}

	actions
	{
		Start Forcing Player To Be Hero(Event Player, First Of(Player Variable(Event Player, heroList)));
		Set Player Variable(Event Player, nextObjective, 1000);
	}
}

rule("Start forcing next hero")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Hero Of(Event Player) != Value In Array(Player Variable(Event Player, heroList), Subtract(Divide(Player Variable(Event Player,
			nextObjective), 1000), 1));
		Is Alive(Event Player) == True;
		Player Variable(Event Player, damageDone) > 0;
	}

	actions
	{
		Set Player Variable(Event Player, nextObjective, Multiply(Add(Round To Integer(Divide(Player Variable(Event Player, damageDone),
			1000), Down), 1), 1000));
		Start Forcing Player To Be Hero(Event Player, Value In Array(Player Variable(Event Player, heroList), Subtract(Divide(
			Player Variable(Event Player, nextObjective), 1000), 1)));
		Small Message(Event Player, String("{0}: {1}", String("{0} {1}", String("You", Null, Null, Null), String("Hero", Null, Null, Null),
			Null), Hero Icon String(Value In Array(Player Variable(Event Player, heroList), Subtract(Divide(Player Variable(Event Player,
			nextObjective), 1000), 1))), Null));
		Create In-World Text(All Players(All Teams), Hero Icon String(Value In Array(Player Variable(Event Player, heroList), Subtract(
			Divide(Player Variable(Event Player, nextObjective), 1000), 1))), Event Player, 1, Clip Against Surfaces,
			Visible To Position and String, White, Default Visibility);
		Set Player Variable(Event Player, heroIcon, Last Text ID);
		Wait(1.375, Ignore Condition);
		Destroy In-World Text(Player Variable(Event Player, heroIcon));
	}
}

rule("Time Counter - Add minute")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Is Game In Progress == True;
	}

	actions
	{
		Set Match Time(Global Variable(timeCounter));
		Wait(60, Ignore Condition);
		Modify Global Variable(timeCounter, Add, 1);
		Loop;
	}
}

rule("Global init -Created by Beemoo")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Current Map == Map(Havana);
	}

	actions
	{
		Set Global Variable(arenaMap1, False);
		Set Global Variable(arenaMap2, Vector(215, 35, -40.000));
		Set Global Variable(arenaMap3, Empty Array);
		Modify Global Variable(arenaMap3, Append To Array, Vector(227.500, 27.500, -57.000));
		Modify Global Variable(arenaMap3, Append To Array, Vector(227.500, 27.500, -40.500));
		Modify Global Variable(arenaMap3, Append To Array, Vector(227.500, 27.500, -25.500));
		Modify Global Variable(arenaMap3, Append To Array, Vector(218, 27.500, -16.500));
		Modify Global Variable(arenaMap3, Append To Array, Vector(204.830, 27.500, -16.500));
		Modify Global Variable(arenaMap3, Append To Array, Vector(191.170, 27.500, -20.780));
		Modify Global Variable(arenaMap3, Append To Array, Vector(181.600, 27.500, -30.100));
		Modify Global Variable(arenaMap3, Append To Array, Vector(171.190, 28.210, -42.000));
		Modify Global Variable(arenaMap3, Append To Array, Vector(171.190, 28.210, -55.000));
		Modify Global Variable(arenaMap3, Append To Array, Vector(185, 27.500, -64.600));
		Modify Global Variable(arenaMap3, Append To Array, Vector(197.600, 27.500, -64.590));
		Modify Global Variable(arenaMap3, Append To Array, Vector(210.200, 27.500, -64.590));
		Modify Global Variable(arenaMap3, Append To Array, Vector(222.600, 27.500, -64.590));
		Set Global Variable(arenaMap4, Subtract(Count Of(Global Variable(arenaMap3)), 1));
		Create Effect(All Players(All Teams), Sphere, Red, Vector(184, -71.800, -46.000), 100, Visible To Position and Radius);
		Skip If(Not(Global Variable(arenaMap1)), 1);
		Create Effect(All Players(All Teams), Orb, Purple, Global Variable(arenaMap2), 1, Visible To Position and Radius);
	}
}

rule("Effect create loop -Created by Beemoo")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Global Variable(arenaMap1) == True;
		Global Variable(arenaMap4) > 0;
		Current Map == Map(Havana);
	}

	actions
	{
		Wait(0.250, Ignore Condition);
		Create Effect(All Players(All Teams), Ring, Yellow, Value In Array(Global Variable(arenaMap3), Global Variable(arenaMap4)), 1.200,
			Visible To);
		Modify Global Variable(arenaMap4, Subtract, 1);
		Loop If Condition Is True;
	}
}

rule("No entry pillars (knock, tele) -Created by Beemoo")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Is True For Any(Global Variable(arenaMap3), Compare(Distance Between(Current Array Element, Event Player), <, 1.250)) == True;
		Current Map == Map(Havana);
	}

	actions
	{
		Wait(0.500, Ignore Condition);
		Abort If Condition Is False;
		Apply Impulse(Event Player, Direction Towards(Position Of(Event Player), Add(First Of(Global Variable(arenaMap2)), Vector(0, 10,
			0))), 12, To World, Cancel Contrary Motion);
		Set Status(Event Player, Null, Stunned, 1);
		Play Effect(All Players(All Teams), Debuff Impact Sound, White, Event Player, 100);
		Small Message(Event Player, String("{0} {1}", String("No", Null, Null, Null), String("{0}!", String("Hiding", Null, Null, Null),
			Null, Null), Null));
		Wait(0.750, Ignore Condition);
		Abort If Condition Is False;
		Teleport(Event Player, Add(First Of(Global Variable(arenaMap2)), Vector(Random Integer(-8.000, 8), 0, Random Integer(-19.000,
			19))));
	}
}

rule("No entry floor (OOB) -Created by Beemoo")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		And(Compare(Y Component Of(Position Of(Event Player)), <, 26.500), Compare(Y Component Of(Position Of(Event Player)), >, 25))
			== True;
		Current Map == Map(Havana);
	}

	actions
	{
		Set Status(Event Player, Null, Burning, 0.500);
		Damage(Event Player, Event Player, 25);
		Apply Impulse(Event Player, Direction Towards(Position Of(Event Player), Add(First Of(Global Variable(arenaMap2)), Vector(0, 10,
			0))), 12, To World, Cancel Contrary Motion);
		Wait(0.500, Ignore Condition);
		Loop If Condition Is True;
	}
}

rule("No entry OOB (spawn tele) -Created by Beemoo")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Has Spawned(Event Player) == True;
		Current Map == Map(Havana);
		Or(Or(Or(Compare(X Component Of(Position Of(Event Player)), <, 171), Compare(X Component Of(Position Of(Event Player)), >, 229)),
			Compare(Z Component Of(Position Of(Event Player)), <, -66.000)), Compare(Z Component Of(Position Of(Event Player)), >,
			-15.000)) == True;
	}

	actions
	{
		Teleport(Event Player, Add(Global Variable(arenaMap2), Vector(Random Integer(-8.000, 8), 0, Random Integer(-19.000, 19))));
	}
}

rule("Game Mode Description HUD - 1000 DMG = NEXT HERO aka ∞ Infinite Damage Gun Game v11.0.0")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Is Game In Progress == True;
	}

	actions
	{
		Create HUD Text(All Players(All Teams), Null, Null, Custom String(" ", Null, Null, Null), Left, -1.000, White, White, White,
			Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), Null, Null, Custom String(" ", Null, Null, Null), Left, -1.000, White, White, White,
			Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), Null, Null, Custom String(" ", Null, Null, Null), Left, -1.000, White, White, White,
			Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), Null, Null, Custom String(" ", Null, Null, Null), Left, -1.000, White, White, White,
			Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), Null, Null, Custom String("1000 DMG = NEXT HERO aka ∞ Infinite Damage Gun Game v11.0.0",
			Null, Null, Null), Left, 0, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), Null, Null, Custom String("Change {0} every {1}", String("Hero", Null, Null, Null), String(
			"{0} {1}", 1000, String("Damage", Null, Null, Null), Null), Null), Left, 1, White, White, White, Visible To and String,
			Default Visibility);
		Create HUD Text(All Players(All Teams), Null, Null, Custom String("8 random DPS   1 Tank (5th)   1 Support (10th) in loop", Null,
			Null, Null), Left, 2, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), Null, Null, Custom String("———————————————————————————————————————", Null, Null, Null),
			Left, 2.500, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), Null, Null, Custom String("Created by Jokaes#2263", Null, Null, Null), Left, 3, White,
			White, White, Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), Null, Null, Custom String("Updated code & more in jokaes.github.io", Null, Null, Null),
			Left, 4, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), Null, Null, Custom String("Join in discord.gg/ZdukXgB", Null, Null, Null), Left, 5, White,
			White, White, Visible To and String, Default Visibility);
		Start Rule(gameModeDescriptionMessages, Do Nothing);
	}
}

rule("Game Mode Description for players who join - 1000 DMG = NEXT HERO aka ∞ Infinite Damage Gun Game v11.0.0")
{
	event
	{
		Player Joined Match;
		All;
		All;
	}

	conditions
	{
		Is Game In Progress == True;
	}

	actions
	{
		Start Rule(gameModeDescriptionMessages, Do Nothing);
	}
}

rule("Game Mode Description messages - 1000 DMG = NEXT HERO aka ∞ Infinite Damage Gun Game v11.0.0")
{
	event
	{
		Subroutine;
		gameModeDescriptionMessages;
	}

	actions
	{
		Wait(3.500, Ignore Condition);
		Small Message(Event Player, Custom String("1000 DMG = NEXT HERO aka ∞ Infinite Damage Gun Game v11.0.0", Null, Null, Null));
		Wait(3.500, Ignore Condition);
		Small Message(Event Player, Custom String("Change {0} every {1}", String("Hero", Null, Null, Null), String("{0} {1}", 1000, String(
			"Damage", Null, Null, Null), Null), Null));
		Wait(3.500, Ignore Condition);
		Small Message(Event Player, Custom String("8 random DPS   1 Tank (5th)   1 Support (10th) in loop", Null, Null, Null));
		Wait(3.500, Ignore Condition);
		Small Message(Event Player, Custom String("Created by Jokaes#2263", Null, Null, Null));
	}
}

disabled rule("Score Debug (TEST)")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Is Button Held(Event Player, Interact) == True;
	}

	actions
	{
		Modify Player Variable(Event Player, damageDone, Add, 100);
		Set Player Score(Event Player, Player Variable(Event Player, damageDone));
		Set Player Variable(Event Player, nextObjective, Multiply(Add(Round To Integer(Divide(Player Variable(Event Player, damageDone),
			1000), Down), 1), 1000));
		Start Forcing Player To Be Hero(Event Player, Value In Array(Player Variable(Event Player, heroList), Subtract(Divide(
			Player Variable(Event Player, nextObjective), 1000), 1)));
		Wait(0.250, Ignore Condition);
	}
}

disabled rule("Dummy Summon (TEST)")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Is Communicating(Event Player, Hello) == True;
	}

	actions
	{
		Create Dummy Bot(Value In Array(Player Variable(Event Player, heroList), 0), All Teams, -1.000, Position Of(Event Player), Vector(
			0, 0, 0));
		disabled Create Dummy Bot(Value In Array(Player Variable(Event Player, heroList), 0), All Teams, -1.000, Position Of(Event Player), Vector(
			0, 0, 0));
		disabled Create Dummy Bot(Value In Array(Player Variable(Event Player, heroList), 0), All Teams, -1.000, Position Of(Event Player), Vector(
			0, 0, 0));
		disabled Create Dummy Bot(Value In Array(Player Variable(Event Player, heroList), 0), All Teams, -1.000, Position Of(Event Player), Vector(
			0, 0, 0));
		disabled Create Dummy Bot(Value In Array(Player Variable(Event Player, heroList), 0), All Teams, -1.000, Position Of(Event Player), Vector(
			0, 0, 0));
		disabled Create Dummy Bot(Value In Array(Player Variable(Event Player, heroList), 0), All Teams, -1.000, Position Of(Event Player), Vector(
			0, 0, 0));
	}
}

disabled rule("Dummy Aim Bot (TEST)")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Is Dummy Bot(Event Player) == True;
	}

	actions
	{
		Start Facing(Event Player, Direction Towards(Event Player, Closest Player To(Event Player, Opposite Team Of(Team Of(
			Event Player)))), 10000, To World, Direction and Turn Rate);
		Start Holding Button(Event Player, Primary Fire);
		Modify Player Variable(Event Player, heroList, Remove From Array By Value, Hero(Hanzo));
		Modify Player Variable(Event Player, heroList, Remove From Array By Value, Hero(Ashe));
	}
}

disabled rule("Dummy Ult (TEST)")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Is Dummy Bot(Event Player) == True;
		Ultimate Charge Percent(Event Player) == 100;
	}

	actions
	{
		Press Button(Event Player, Ultimate);
	}
}

disabled rule("Dummy Walking (TEST)")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Is Dummy Bot(Event Player) == True;
	}

	actions
	{
		Start Throttle In Direction(Event Player, Direction Towards(Event Player, Value In Array(Sorted Array(Filtered Array(All Players(
			All Teams), Is Alive(Current Array Element)), Distance Between(Event Player, Current Array Element)), 1)), 1, To World,
			Replace existing throttle, Direction and Magnitude);
	}
}

disabled rule("Lobby with Dummies (TEST)")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Is In Setup == True;
	}

	actions
	{
		Create Dummy Bot(Value In Array(Player Variable(Event Player, heroList), 0), All Teams, -1.000, Vector(0, 0, 0), Vector(0, 0, 0));
		Loop If(Compare(Count Of(All Players(All Teams)), <, 12));
	}
}

rule("Created by Jokaes#2263")
{
	event
	{
		Ongoing - Global;
	}
}

Changelog

3 months ago 11.0.0

Added Workshop Maps Ultimate generation 100% -> 200% by popular appeal 1000 DMG = NEXT HERO name added Script logic updated

V5PEB
click to copy
4 months ago 10.4.1

New descriptions

RZXA2K
click to copy
4 months ago 10.4.0

New descriptions

P1P1F
click to copy
5 months ago 10.3.2

Removed Snowball deathmatch from the gamemodes LUL

VMNGA
click to copy
5 months ago 10.3.1
5 months ago 10.3.0

Removed unused variables and resorted the used one

VT888
click to copy
5 months ago 10.2.0

New leaderboard script - now this but with better sorting

E7FA1
click to copy
5 months ago 10.1.0

New leaderboard script

BEWPE
click to copy
5 months ago 10.0.0

It's still crashing but a lot less (':

Z9B9S
click to copy
5 months ago 10.0.0

It's still crashing but a lot less (':

3XZG2
click to copy
5 months ago 9.0.0

Now server lives longer

H1VEB
click to copy
5 months ago 8.1.2

Impovements in optimization and actual hero icon and message

VR78H
click to copy
5 months ago 8.0.0

This revision contains no notes

HY2WT
click to copy