qboolean Host_IsLocalClient( void ) { // only the local client has the active server if( CL_Active() && SV_Active()) return true; return false; }
qboolean Host_IsLocalGame( void ) { if( host.type != HOST_DEDICATED ) if( CL_Active() && SV_Active() && CL_GetMaxClients() == 1 ) return true; return false; }
/* ================= 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; }
qboolean Host_IsLocalGame( void ) { if( CL_Active() && SV_Active() && CL_GetMaxClients() == 1 ) return true; return false; }