Exemple #1
0
qboolean Host_IsLocalClient( void )
{
	// only the local client has the active server
	if( CL_Active() && SV_Active())
		return true;
	return false;
}
Exemple #2
0
qboolean Host_IsLocalGame( void )
{
	if( host.type != HOST_DEDICATED )
	if( CL_Active() && SV_Active() && CL_GetMaxClients() == 1 )
		return true;
	return false;
}
Exemple #3
0
/*
=================
SV_IsSimulating
=================
*/
qboolean SV_IsSimulating( void )
{
	if( sv.background && SV_Active() && CL_Active())
	{
		if( CL_IsInConsole( ))
			return false;
		return true; // force simulating for background map
	}

	if( sv.hostflags & SVF_PLAYERSONLY )
		return false;
	if( !SV_HasActivePlayers())
		return false;
	if( !sv.paused && CL_IsInGame( ))
		return true;
	return false;
}
Exemple #4
0
qboolean Host_IsLocalGame( void )
{
	if( CL_Active() && SV_Active() && CL_GetMaxClients() == 1 )
		return true;
	return false;
}