
float GetCvarF( const kStr&in key, float def=0 )
{
	kStr val;
	if ( Sys.GetCvarValue( key, val ) )
		return val.Atof();
	return def;
}

bool GetCvarB( const kStr&in key, bool def=false )
{
	kStr val;
	if ( Sys.GetCvarValue( key, val ) )
		return Bool( val.Atoi() );
	return def;
}

bool TwoPointOh()
{
	// low-pass filter was added in 2.0, so its existence indicates we're post-2.0
	kStr junk;
	return Sys.GetCvarValue( "snd_lowpassfilter", junk );
}
