Back to home

Widow's Super Hot Gamemode

0BJ17
click to copy
This code is over 6 months old.
Codes expire after 6 months and will no longer function.
This game is archived.
If you with to unarchive it, click the "restore" button in the options menu.

Category:
Custom game mode

Author:
CactusPuppy

Rating:
0

Version:
1.0.0

Posted:
8 months ago

Project Links

Share this workshop!

Options

Features:

  • Scope in as a Widowmaker on Team 1 to slow time!
  • Semi-accurate scope detection: Will detect when unscoping via jumping or getting stunned

Created on request for UndeadPotato.

rule("When global var A, slow time")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Global Variable(A) == True;
	}

	actions
	{
		Set Slow Motion(25);
	}
}

rule("When not G: A, speed up again")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Global Variable(A) == False;
	}

	actions
	{
		Set Slow Motion(100);
	}
}

rule("When scoped in, set slow time true (G: A)")
{
	event
	{
		Ongoing - Each Player;
		Team 1;
		All;
	}

	conditions
	{
		Is Button Held(Event Player, Secondary Fire) == True;
		Hero Of(Event Player) == Hero(Widowmaker);
		Global Variable(A) == False;
	}

	actions
	{
		Wait(0.100, Ignore Condition);
		Set Global Variable(A, True);
	}
}

rule("When unscoped, set slow time false (G: A)")
{
	event
	{
		Ongoing - Each Player;
		Team 1;
		All;
	}

	conditions
	{
		Is Button Held(Event Player, Secondary Fire) != True;
		Hero Of(Event Player) == Hero(Widowmaker);
	}

	actions
	{
		Set Global Variable(A, False);
	}
}

rule("If jump or stunned, set slow time false (G: A)")
{
	event
	{
		Ongoing - Each Player;
		Team 1;
		All;
	}

	conditions
	{
		Or(Has Status(Event Player, Stunned), Is Button Held(Event Player, Jump)) == True;
	}

	actions
	{
		Skip If(Compare(Global Variable(A), !=, True), 1);
		Set Global Variable(A, False);
	}
}

rule("If killed, set slow time false (G: A)")
{
	event
	{
		Ongoing - Each Player;
		Team 1;
		All;
	}

	conditions
	{
		Is Dead(Event Player) == True;
		Hero Of(Event Player) == Hero(Widowmaker);
	}

	actions
	{
		Skip If(Compare(Global Variable(A), !=, True), 1);
		Set Global Variable(A, False);
	}
}

rule("On interact, stun self")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

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

	actions
	{
		Set Status(Event Player, Null, Stunned, 0.025);
	}
}