
forceClientDvars()
{
	level endon("ex_gameover");
	self endon("disconnect");
	self endon("ex_dead");

	forcedDvar = [];
	forcedDvarValue = []; 

	forcedDvar[0] = "rate";
	forcedDvarValue[0] = level.ex_forcerate;

	forcedDvar[1] = "cg_drawmantlehint";
	forcedDvarValue[1] = level.ex_mantlehint;

	forcedDvar[2] = "cg_drawcrosshair";
	forcedDvarValue[2] = level.ex_crosshair;

	forcedDvar[3] = "cg_drawcrosshairnames";
	forcedDvarValue[3] = level.ex_crosshairnames;

	forcedDvar[4] = "cg_drawturretcrosshair";
	forcedDvarValue[4] = level.ex_crosshair;
	
	if(level.ex_hudstance)
	{
		forcedDvar[5] = "hud_fade_stance";
		forcedDvarValue[5] = 1.7;
	}
	else
	{
		forcedDvar[5] = "hud_fade_stance";
		forcedDvarValue[5] = .05;
	}

	forcedDvar[6] = "cg_crosshairEnemyColor";
	forcedDvarValue[6] = level.ex_enemycross;

	forcedDvar[7] = "r_lighttweakambient";
	forcedDvarValue[7] = level.ex_brightmodels;

	// forced 1
	forcedDvar[8] = "r_lodscale";
	forcedDvarValue[8] = 1;
	
	// forced 1, sound will not function correctly without it
	forcedDvar[9] = "mss_Q3fs";
	forcedDvarValue[9] = 1;

	while(isPlayer(self) && self.sessionstate == "playing")
	{
		// Check if player has fully joined and force all settings
		for (j=0; j<forcedDvar.size ; j++)
		{
			self setClientCvar(forcedDvar[j], forcedDvarValue[j]);
			wait 0.1;
		}

		wait 5;
	}
}
