Back to home

Junkenstein's Revenge - Random hero after ultimate

V41P9
click to copy
This game is archived.
If you with to unarchive it, click the "restore" button in the options menu.
This code can also be found at workshop.codes/V41P9

Category:
Custom game mode

Author:
Jokaes

Rating:
2

Version:
2.0.0

Posted:
10 months ago

Last updated:
3 months ago

Tags:
junkenstein revenge random hero ultimate pve jokaes jokaes#2263

Share this workshop!

Options

Junkenstein's Revenge - Random hero after ultimate

Junkenstein's Revenge but transform into a random hero after ultimate.

Currenty there is a bug in Overwatch that ignores your difficulty settings so even if you change it will be in Hard

settings
{
	main
	{
		Description: "Junkenstein's Revenge - Random hero after ultimate | v1.0.0 | By Jokaes#2263"
	}

	lobby
	{
		Max Spectators: 12
	}

	modes
	{
		Junkenstein's Revenge
		{
			Difficulty: Hard
			Endless Mode: On
		}

		General
		{
			Allow Hero Switching: Off
			Game Mode Start: Immediately
			Hero Limit: Off
			Respawn As Random Hero: On
		}
	}
}

rule("Hero List")
{
	event
	{
		Ongoing - Global;
	}

	actions
	{
		Global.L = All Heroes;
		Preload Hero(All Players(Team 1), Global.L);
	}
}

rule("Starter Hero")
{
	event
	{
		Ongoing - Each Player;
		Team 1;
		All;
	}

	actions
	{
		Start Forcing Player To Be Hero(Event Player, Random Value In Array(Global.L));
	}
}

rule("New hero after ult")
{
	event
	{
		Ongoing - Each Player;
		Team 1;
		All;
	}

	conditions
	{
		Is Using Ultimate(Event Player) == True;
		Is Alive(Event Player) == True;
	}

	actions
	{
		Wait(0.125, Ignore Condition);
		Loop If Condition Is True;
		Event Player.H = Random Value In Array(Global.L);
		Modify Global Variable(L, Remove From Array By Value, Event Player.H);
		Start Forcing Player To Be Hero(Event Player, Random Value In Array(Global.L));
		Modify Global Variable(L, Append To Array, Event Player.H);
	}
}

rule("Skip assembling")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Is Assembling Heroes == True;
	}

	actions
	{
		Set Match Time(0);
	}
}

Changelog

10 months ago 1.0.0

This revision contains no notes

V41P9
click to copy