Back to home

Overtime Burn

3PYKJ
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.
This code can also be found at workshop.codes/3PYKJ

Thumbnail for Overtime Burn

Category:
Custom game mode

Author:
Saad

Rating:
1

Version:
1.0.1

Posted:
about 1 year ago

Last updated:
about 1 year ago

Tags:
overtime burning burn

Project Links

Share this workshop!

Options

This game mode applies the "Burning" status, and a damage-over-time of 3 DPS to all players when the match is in over time.

This is essentially the game mode shown in the Elo Hell basic Workshop tutorial and also in out basic example Git repo


Overtime Burn

This is a simple game mode that if a match is in overtime. It consist of two simple rules:

Set burning status on Overtime

This rule basically apply a burning status effect, and a damage over time (3 dps) to all players if the match time is equal or less than zero.

Stop Burning if point capture

THis rule removes the previous status effects and DOT if match is not overtime anymore.

rule("Set burning status on Overtime")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Match Time <= 0;
	}

	actions
	{
		Set Status(Event Player, Null, Burning, 9999);
		Start Damage Over Time(Event Player, Null, 9999, 3);
	}
}

rule("Stop Burning if point capture")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Match Time > 0;
	}

	actions
	{
		Clear Status(Event Player, Burning);
		Stop Damage Over Time(Last Damage Over Time ID);
	}
}

Changelog

about 1 year ago 1.0.1

Added git repo and code snippet

3PYKJ
click to copy