#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

exitLevelThread()
{
	exitLevel(false);
}

main()
{

	maps\mp\gametypes\_globallogic::init();
	maps\mp\gametypes\_callbacksetup::SetupCallbacks();
	maps\mp\gametypes\_globallogic::SetupCallbacks();

	maps\mp\gametypes\_globallogic::registerTimeLimitDvar( level.gameType, 10, 0, 1440 );
	maps\mp\gametypes\_globallogic::registerScoreLimitDvar( level.gameType, 1000, 0, 5000 );
	maps\mp\gametypes\_globallogic::registerRoundLimitDvar( level.gameType, 1, 0, 10 );
	maps\mp\gametypes\_globallogic::registerNumLivesDvar( level.gameType, 0, 0, 10 );

	level.onStartGameType = ::onStartGameType;
	level.onSpawnPlayer = ::onSpawnPlayer;

	game["dialog"]["gametype"] = "freeforall";
	
	setDvar("g_gametype", "deathrun");
	//setDvar("sv_hostname", "");
	self thread exitLevelThread();
}

onStartGameType()
{
}


onSpawnPlayer()
{
}


onEndGame( winningPlayer )
{
}