From d9d4a8c3cb1fb226738278923cf8d5ba2b74efdf Mon Sep 17 00:00:00 2001 From: Michael Levin Date: Sat, 3 Oct 2009 11:13:10 +0000 Subject: Added armour files to version control. --- src/server/server.h | 2 ++ src/server/sv_client.c | 4 ++++ src/server/sv_init.c | 4 ++++ src/server/sv_main.c | 2 ++ 4 files changed, 12 insertions(+) (limited to 'src/server') diff --git a/src/server/server.h b/src/server/server.h index 4d73038e..331937e4 100644 --- a/src/server/server.h +++ b/src/server/server.h @@ -228,6 +228,8 @@ extern cvar_t *sv_zombietime; extern cvar_t *sv_rconPassword; extern cvar_t *sv_privatePassword; extern cvar_t *sv_allowDownload; +extern cvar_t *sv_wwwDownload; +extern cvar_t *sv_wwwBaseURL; extern cvar_t *sv_maxclients; extern cvar_t *sv_privateClients; diff --git a/src/server/sv_client.c b/src/server/sv_client.c index 323ef602..40a3a9f8 100644 --- a/src/server/sv_client.c +++ b/src/server/sv_client.c @@ -994,6 +994,10 @@ static void SV_VerifyPaks_f( client_t *cl ) { cl->nextSnapshotTime = -1; cl->state = CS_ACTIVE; SV_SendClientSnapshot( cl ); + SV_SendServerCommand( cl, "disconnect \"Unpure Client. " + "You may need to enable in-game downloads " + "to connect to this server (set " + "cl_allowDownload 1)\"" ); SV_DropClient( cl, "Unpure client detected. Invalid .PK3 files referenced!" ); } } diff --git a/src/server/sv_init.c b/src/server/sv_init.c index 4a7e292a..53a3d05c 100644 --- a/src/server/sv_init.c +++ b/src/server/sv_init.c @@ -620,6 +620,10 @@ void SV_Init (void) { sv_zombietime = Cvar_Get ("sv_zombietime", "2", CVAR_TEMP ); sv_allowDownload = Cvar_Get ("sv_allowDownload", "0", CVAR_SERVERINFO); + sv_wwwDownload = Cvar_Get ("sv_wwwDownload", "1", + CVAR_SYSTEMINFO|CVAR_ARCHIVE); + sv_wwwBaseURL = Cvar_Get ("sv_wwwBaseURL", "", + CVAR_SYSTEMINFO|CVAR_ARCHIVE); Cvar_Get ("sv_dlURL", "", CVAR_SERVERINFO | CVAR_ARCHIVE); sv_master[0] = Cvar_Get ("sv_master1", MASTER_SERVER_NAME, 0 ); sv_master[1] = Cvar_Get ("sv_master2", "", CVAR_ARCHIVE ); diff --git a/src/server/sv_main.c b/src/server/sv_main.c index e67d9b47..2940d95c 100644 --- a/src/server/sv_main.c +++ b/src/server/sv_main.c @@ -33,6 +33,8 @@ cvar_t *sv_zombietime; // seconds to sink messages after disconnect cvar_t *sv_rconPassword; // password for remote server commands cvar_t *sv_privatePassword; // password for the privateClient slots cvar_t *sv_allowDownload; +cvar_t *sv_wwwDownload; +cvar_t *sv_wwwBaseURL; cvar_t *sv_maxclients; cvar_t *sv_privateClients; // number of clients reserved for password -- cgit