mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-03-20 07:00:56 +00:00
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
This commit is contained in:
parent
b811c3a81f
commit
8be4ab3ef4
1 changed files with 30 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue