29 #include "../../idlib/precompiled.h"
133 if (
masters[ index ].var->GetString()[0] ==
'\0' ) {
136 if ( !
masters[ index ].resolved ||
masters[ index ].var->IsModified() ) {
139 common->
Printf(
"Failed to resolve master%d: %s\n", index,
masters[ index ].var->GetString() );
222 memset( &cmd, 0,
sizeof( cmd ) );
259 currentUserCmd = previousUserCmd;
268 if ( abs( currentUserCmd.
upmove ) > 2 ) currentUserCmd.
upmove >>= 1;
286 previousUserCmd.
angles[0] != currentUserCmd.
angles[0] ||
287 previousUserCmd.
angles[1] != currentUserCmd.
angles[1] ||
298 if(args.
Argc() > 1) {
351 if ( args.
Argc() != 2 ) {
431 clientId = args.
Argv( 1 );
436 iclient = atoi( clientId );
470 if ( sessCmd[ 0 ] ) {
483 if ( args.
Argc() != 2 ) {
484 common->
Warning(
"idAsyncNetwork::UpdateUI_f: wrong arguments\n" );
488 common->
Warning(
"idAsyncNetwork::UpdateUI_f: server is not active\n" );
491 int clientNum = atoi( args.
Args( 1 ) );
virtual bool IsOpenGLRunning(void) const =0
static void ArgCompletion_MapName(const idCmdArgs &args, void(*callback)(const char *s))
static void Shutdown(void)
#define IDNET_MASTER_PORT
static idCVar serverSnapshotDelay
idCVarSystem * cvarSystem
static idCVar serverReloadEngine
static idCVar serverMaxUsercmdRelay
static void Connect_f(const idCmdArgs &args)
virtual void virtual void virtual const idLangDict * GetLanguageDict(void)=0
bool IsActive(void) const
static idCVar clientPrediction
virtual void ShutdownOpenGL(void)=0
void ExecuteMapChange(void)
static idCVar clientDownload
void WriteDeltaShort(int oldValue, int newValue)
virtual int GetCVarInteger(const char *name) const =0
static idAsyncClient client
virtual idUserInterface * StartMenu()=0
idRenderSystem * renderSystem
static idCVar clientMaxPrediction
void GetServerInfo(const netadr_t adr)
idFileSystem * fileSystem
const char * Args(int start=1, int end=-1, bool escapeArgs=false) const
idCVar com_asyncInput("com_asyncInput","0", CVAR_BOOL|CVAR_SYSTEM,"sample input from the async thread")
bool Sys_StringToNetAdr(const char *s, netadr_t *a, bool doDNSResolve)
void ConnectToServer(const netadr_t adr)
const int MAX_USERCMD_DUPLICATION
static idCVar serverDrawClient
virtual void SetCVarString(const char *name, const char *value, int flags=0)=0
static idCVar serverAllowServerMod
static idCVar clientRemoteConsoleAddress
void WriteDeltaByte(int oldValue, int newValue)
int ReadDeltaShort(int oldValue) const
void SendVersionCheck(bool fromMenu=false)
static void UpdateUI_f(const idCmdArgs &args)
static idCVar serverClientTimeout
int Icmp(const char *text) const
void WriteDeltaLongCounter(int oldValue, int newValue)
static idCVar clientUsercmdBackup
const int MAX_MASTER_SERVERS
static idCVar serverZombieTimeout
virtual void BufferCommandText(cmdExecution_t exec, const char *text)=0
static void RemoteConsole_f(const idCmdArgs &args)
void WriteDeltaChar(int oldValue, int newValue)
static master_t masters[MAX_MASTER_SERVERS]
static idCVar clientMaxRate
static void GetLANServers_f(const idCmdArgs &args)
static void Reconnect_f(const idCmdArgs &args)
void Sys_ShowConsole(int visLevel, bool quitOnClose)
static void CheckNewVersion_f(const idCmdArgs &args)
static idAsyncServer server
static void WriteUserCmdDelta(idBitMsg &msg, const usercmd_t &cmd, const usercmd_t *base)
static void BuildInvalidKeyMsg(idStr &msg, bool valid[2])
const int MAX_USERCMD_RELAY
virtual const char * GetCVarString(const char *name) const =0
static void GetNETServers()
const char * GetString(const char *str) const
static idCVar serverDedicated
static void SpawnServer_f(const idCmdArgs &args)
static void Kick_f(const idCmdArgs &args)
idUsercmdGen * usercmdGen
static void Heartbeat_f(const idCmdArgs &args)
static idCVar allowCheats
virtual void Printf(const char *fmt,...) id_attribute((format(printf
static idCVar serverRemoteConsolePassword
static netadr_t GetMasterAddress(void)
static void GetServerInfo_f(const idCmdArgs &args)
bool IsNumeric(void) const
virtual void SetMute(bool mute)=0
static bool UsercmdInputChanged(const usercmd_t &previousUserCmd, const usercmd_t ¤tUserCmd)
int ReadDeltaChar(int oldValue) const
virtual bool Active(void)=0
int ReadDeltaLongCounter(int oldValue) const
static void ExecuteSessionCommand(const char *sessCmd)
void DropClient(int clientNum, const char *reason)
static idCVar clientRemoteConsolePassword
void UpdateUI(int clientNum)
int ReadDeltaByte(int oldValue) const
idSoundSystem * soundSystem
static void RunFrame(void)
static bool DuplicateUsercmd(const usercmd_t &previousUserCmd, usercmd_t ¤tUserCmd, int frame, int time)
int GetLocalClientNum(void) const
virtual bool ShutdownHW(void)=0
void RemoteConsole(const char *command)
static idCVar serverMaxClientRate
void SetBool(const bool value)
void MasterHeartbeat(bool force=false)
const char * Argv(int arg) const
virtual void InhibitUsercmd(inhibit_t subsystem, bool inhibit)=0
static idCVar clientServerTimeout
static void ReadUserCmdDelta(const idBitMsg &msg, usercmd_t &cmd, const usercmd_t *base)
virtual void virtual void Warning(const char *fmt,...) id_attribute((format(printf
void DisconnectFromServer(void)
virtual bool HasD3XP(void)=0
virtual void SetGUI(idUserInterface *gui, HandleGuiCommand_t handle)=0
virtual void AddCommand(const char *cmdName, cmdFunction_t function, int flags, const char *description, argCompletion_t argCompletion=NULL)=0
int ReadShort(void) const
static void ListServers_f(const idCmdArgs &args)
static void NextMap_f(const idCmdArgs &args)
void Sys_GrabMouseCursor(bool)