G: Too tired to update this, read the source and changelog lol
Known issue: The very first game in a session will have a broken replay.
Solution: Switch map at least once before starting elimination
G from the future: Not anymore!


elimination changelog by freeman (last update 6/7/2021)
original work by Amperbee aka Rapidgame7#1949
that version is KL_EliminationR1

The NVJR version has been tweaked and poked and prodded at by NVJR players (With permission)
most of the NVJR lifting has been done by freeman#7626
here I will make an attempt to document changes away from the default,
but there's a lot and i've likely already forgotten half of them

CONSOLE VAR: elim_announcements (on/off)
	this allows individual clients to turn elim announcments off if they
	find they take too much space. just stops announcements from drawing.

FORCEWIN COMMAND:
	this was set in such a way anyone could use it at anytime
	luckily this was fixed before someone else figured it out

ELIMINATION() RAWSET:
	This is a rawset function that can be and has been used in other scripts to tell if elim is running
	It has been tremendously useful to hack other scripts and make them poorly cooperate with elimination if detected

NETVARS: elim_timescaling (on/off)
	elim_scalingminplayers (1-200)
	elim_scalingmaxplayers (1-200)
	elim_scalingmintime (natural)
	elim_scalingmaxtime (natural)
		these guys all control a scaling function that can be turned on and off with the first command.
		if scaling is on the game will try to adjust the elim time between min time and max time
		if at or below min players, you get max time. Vice versa for min time and max players.
		If between, time is lineraly adjusted between min and max depending on number of players.
		the aim is to try and keep game times more consistent even between 3-15 players.
	
	TODO: maybe it is better to scale the starting time?? but this is harder to do because lmao join in progress
	
	elim_minplayers (natural)
		Elimination rounds won't start unless at least this many players are present (does not count spectators).
		fun fact this is a feature request from aqua's karthouse, thank you based aqua

	elim_spbgone (0-9999)
		If the number of alive players during a round is at or below this level, the SPB is forcibly
		disabled through the server's console from rolling. This helps stop the 'died because I rolled SPB
		while everyone else got catchup items' issue from manifesting.
		This used to be 0-16 but then I made a hardcode client for 32 players and realized maybe 16 isn't the best approach
	
	elim_lightninggone (on/off)
		when SPBgone is triggered, lightning gone will also turn off lightning shields from being rolled if enabled
		this was to stop frontrunners from easily rolling a lighting shield in the last few players to save themselves
		and also to stop duels from being ended with a lightning shield mash

	elim_spbdefault (on/off)
		when exiting level during intermission, the SPB will try to be set to this value.
		this is so if hosts want to play with SPB off for whatever reason elim doesn't stealth enable it on them

	elim_overtime (natural) [seconds]
		controls how long overtime is allowed to last before elim just mcfucking
		kills whoever it thinks is last. this is important because of:
	
	elim_safetynet (natural) [tics]
		this is the number of tics someone has to be in last for in order to get
		eliminated by the timer without going into overtime. If you haven't been
		this number of tics in last, you'll enter into overtime.
		Overtime will kill you either when it expires and you're in last, or
		when your safetynet expires. You can see how long you have by the
		warning markers. If the markers fully close on you, you die.

ANNOUNCEMENTS:
	as mentioned, you can turn them on and off
	I dont know how many there were to begin with, but now there's 305. This is a mistake.
	announcements are slightly more transparent then normal now.
	added a few missing characters but I am awful at spriting so I only added < > and .
	MasterFerro#4531 added an ! and ? and cleaned up my sprites

SCORING:
	an adventure was making eliminated players properly tally in the scoreboard.
	This has been achieved through an extremely ugly hack.
	players get an eliminated time and eliminated position.
		The position is based on how many other players were alive when they died.
		The time is the amount of time they spent on the track (p.realtime when they die).
	this is all jammed into a calculation which spits out xx'yy"zz
	xx = position you died in ; yy = minutes survived ; zz = seconds survived
	obviously this isn't perfect but it works and orders players correctly

TIME SCALING:
	a failsafe against spectating players that added time to the clock had no upper bound.
	if a bunch of players died to HP mod/spectated you'd get really long clocks
	in order to move things along people spectating or dying only add about 75% of elim_time to the clock
	and this time is capped to a max of elim_time, so it speeds things along.
		yes this actually screws over the next player if you ragespec but it works

CHAT NOTIFICATIONS:
	the game will print a chat message detailing who, in what position, and how long they survived when they die
	all players still on the map when elim.win is decided will have their name announced in chat

WINNING:
	player(s) surviving when elim.win is decided say their victory line and spawn a goalpost at their location

HUD:
	did away with FREEPLAY hud element, the "ELIMINATION" subtext
	re-added the game clock as a text render below the elim clock
	if the elim clock is below 6 seconds it gets an animated >>>05<<< thing that looks nice
	scooched some HUD elements further to the side
	got rid of laphand animations; they take up a bunch of space and aren't needed

COMPATABILITY:
	GENERAL:
		Elimination has a min players and will set the game's laps back to normal after a round
		so if elim is turned off, it won't interfere with other mapload hooks if they need
		to set them for a specific game mode (i.e frontrun)

Sunflower's Garden changes (based on KL_EliminationR2_NVJRTest_v1.25.wad):
	-"ELIM WAIT" has been removed
	-When elimination is set to off, don't print "not enough players for elimination" every round
	-When there aren't enough players, don't skip sprint maps