From 8be4ab3ef48d70fb961f5f10ecddbc54cf9c6795 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 14 Sep 2005 04:15:00 +0000 Subject: [PATCH] Small tweeks, it listens to the allow_f_ stuff, and f_version now gives some info about potential cheat variables. Partly so that people ask about it perhaps, partly because it allows us to not care so much about when people complain that it's a cheat. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1312 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/valid.c | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/engine/client/valid.c b/engine/client/valid.c index 3f2662805..1e719cebf 100644 --- a/engine/client/valid.c +++ b/engine/client/valid.c @@ -129,13 +129,33 @@ void ValidationPrintVersion(char *f_query_string) char answer; char name[128]; char sr[256]; + char *s; int i; + extern cvar_t r_shadow_realtime_world, r_drawflat; + switch(qrenderer) { #ifdef RGLQUAKE case QR_OPENGL: - *sr = *""; + s = sr; + //print certain allowed 'cheat' options. + //realtime lighting (shadows can show around corners) + //drawflat is just lame + //24bits can be considered eeeevil, by some. + if (r_shadows.value) + { + if (r_shadow_realtime_world.value) + *s++ = 'W'; + else + *s++ = 'S'; + } + if (r_drawflat.value) + *s++ = 'F'; + if (gl_load24bit.value) + *s++ = 'H'; + + *s = *""; break; #endif #ifdef SWQUAKE @@ -147,7 +167,11 @@ void ValidationPrintVersion(char *f_query_string) *sr = *""; break; } - if (Security_Generate_Crc && allow_f_version.value) + + if (!allow_f_version.value) + return; //suppress it + + if (Security_Generate_Crc) { signed_buffer_t *resp; query_crc = SCRC_GetQueryStateCrc(f_query_string); @@ -1019,6 +1043,10 @@ void Validation_Skins(void) { extern cvar_t r_fullbrightSkins, r_fb_models; int percent = r_fullbrightSkins.value*100; + + if (!allow_f_skins.value) + return; + if (percent < 0) percent = 0; if (percent > cls.allow_fbskins*100)