main()
{
	level endon("restarting");
	for(;;)
	{
		if(getDvarInt("sv_cheats")||isDefined(game["PROMOD_MATCH_MODE"])&&game["PROMOD_MATCH_MODE"]=="strat")break;
		forceDvar("authServerName","cod4master.activision.com");
		forceDvar("sv_disableClientConsole","0");
		forceDvar("sv_fps","20");
		forceDvar("sv_pure","1");
		forceDvar("sv_maxrate","25000");
		forceDvar("g_gravity","650");
		forceDvar("g_speed","200");
		forceDvar("g_knockback","1000");
		forceDvar("g_playercollisionejectspeed","25");
		forceDvar("g_dropforwardspeed","10");
		forceDvar("g_drophorzspeedrand","100");
		forceDvar("g_dropupspeedbase","10");
		forceDvar("g_dropupspeedrand","5");
		forceDvar("g_useholdtime","0");
		if(isDefined(game["PROMOD_MATCH_MODE"])&&game["PROMOD_MATCH_MODE"]=="match")
		{
			forceDvar("g_maxdroppedweapons","16");
			if(!game["LAN_MODE"])forceDvar("g_smoothclients","1");
		}
		wait 0.1;
	}
}

forceDvar(dvar,value)
{
	val=getDvar(dvar);
	if(val!=value)
	{
		setDvar(dvar,value);
		iprintln("^3"+dvar+" has been changed back to '"+value+"' (was '"+val+"')");
	}
}