mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-28 22:52:01 +00:00
New CVAR flag system. Appears to work perfectly
This commit is contained in:
parent
50167d5e71
commit
7d387042f7
36 changed files with 200 additions and 194 deletions
|
@ -59,10 +59,10 @@ double cam_lastviewtime;
|
||||||
int spec_track = 0; // player# of who we are tracking
|
int spec_track = 0; // player# of who we are tracking
|
||||||
int autocam = CAM_NONE;
|
int autocam = CAM_NONE;
|
||||||
|
|
||||||
cvar_t cl_chasecam = {"cl_chasecam", "0", true};
|
cvar_t cl_chasecam = {"cl_chasecam", "0", CVAR_ARCHIVE};
|
||||||
cvar_t cl_chasecam_up = {"cl_chasecam_up", "16", true};
|
cvar_t cl_chasecam_up = {"cl_chasecam_up", "16",CVAR_ARCHIVE};
|
||||||
cvar_t cl_chasecam_back = {"cl_chasecam_back", "100", true};
|
cvar_t cl_chasecam_back = {"cl_chasecam_back", "100", CVAR_ARCHIVE};
|
||||||
cvar_t cl_chasecam_right = {"cl_chasecam_right", "0", true};
|
cvar_t cl_chasecam_right = {"cl_chasecam_right", "0", CVAR_ARCHIVE};
|
||||||
|
|
||||||
vec3_t chase_pos;
|
vec3_t chase_pos;
|
||||||
vec3_t chase_angles;
|
vec3_t chase_angles;
|
||||||
|
|
|
@ -231,8 +231,8 @@ float CL_KeyState (kbutton_t *key)
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
cvar_t cl_upspeed = {"cl_upspeed","200"};
|
cvar_t cl_upspeed = {"cl_upspeed","200"};
|
||||||
cvar_t cl_forwardspeed = {"cl_forwardspeed","200", true};
|
cvar_t cl_forwardspeed = {"cl_forwardspeed","200", CVAR_ARCHIVE};
|
||||||
cvar_t cl_backspeed = {"cl_backspeed","200", true};
|
cvar_t cl_backspeed = {"cl_backspeed","200", CVAR_ARCHIVE};
|
||||||
cvar_t cl_sidespeed = {"cl_sidespeed","350"};
|
cvar_t cl_sidespeed = {"cl_sidespeed","350"};
|
||||||
|
|
||||||
cvar_t cl_movespeedkey = {"cl_movespeedkey","2.0"};
|
cvar_t cl_movespeedkey = {"cl_movespeedkey","2.0"};
|
||||||
|
|
|
@ -91,31 +91,31 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
qboolean noclip_anglehack; // remnant from old quake
|
qboolean noclip_anglehack; // remnant from old quake
|
||||||
|
|
||||||
|
|
||||||
cvar_t rcon_password = {"rcon_password", "", false};
|
cvar_t rcon_password = {"rcon_password", "", CVAR_NONE};
|
||||||
|
|
||||||
cvar_t rcon_address = {"rcon_address", ""};
|
cvar_t rcon_address = {"rcon_address", ""};
|
||||||
|
|
||||||
cvar_t cl_timeout = {"cl_timeout", "60"};
|
cvar_t cl_timeout = {"cl_timeout", "60"};
|
||||||
|
|
||||||
// these two are not intended to be set directly
|
// these two are not intended to be set directly
|
||||||
cvar_t cl_name = {"_cl_name", "player", true};
|
cvar_t cl_name = {"_cl_name", "player", CVAR_ARCHIVE};
|
||||||
cvar_t cl_color = {"_cl_color", "0", true};
|
cvar_t cl_color = {"_cl_color", "0", CVAR_ARCHIVE};
|
||||||
|
|
||||||
cvar_t cl_shownet = {"cl_shownet","0"}; // can be 0, 1, or 2
|
cvar_t cl_shownet = {"cl_shownet","0"}; // can be 0, 1, or 2
|
||||||
cvar_t cl_nolerp = {"cl_nolerp","0"};
|
cvar_t cl_nolerp = {"cl_nolerp","0"};
|
||||||
|
|
||||||
cvar_t cl_sbar = {"cl_sbar", "1", true};
|
cvar_t cl_sbar = {"cl_sbar", "1", CVAR_ARCHIVE};
|
||||||
cvar_t cl_hudswap = {"cl_hudswap", "1", true};
|
cvar_t cl_hudswap = {"cl_hudswap", "1", CVAR_ARCHIVE};
|
||||||
cvar_t cl_maxfps = {"cl_maxfps", "0", true};
|
cvar_t cl_maxfps = {"cl_maxfps", "0", CVAR_ARCHIVE};
|
||||||
|
|
||||||
cvar_t lookspring = {"lookspring","0", true};
|
cvar_t lookspring = {"lookspring","0", CVAR_ARCHIVE};
|
||||||
cvar_t lookstrafe = {"lookstrafe","0", true};
|
cvar_t lookstrafe = {"lookstrafe","0", CVAR_ARCHIVE};
|
||||||
cvar_t sensitivity = {"sensitivity","3", true};
|
cvar_t sensitivity = {"sensitivity","3", CVAR_ARCHIVE};
|
||||||
|
|
||||||
cvar_t m_pitch = {"m_pitch","0.022", true};
|
cvar_t m_pitch = {"m_pitch","0.022", CVAR_ARCHIVE};
|
||||||
cvar_t m_yaw = {"m_yaw","0.022", true};
|
cvar_t m_yaw = {"m_yaw","0.022", CVAR_ARCHIVE};
|
||||||
cvar_t m_forward = {"m_forward","1", true};
|
cvar_t m_forward = {"m_forward","1", CVAR_ARCHIVE};
|
||||||
cvar_t m_side = {"m_side","0.8", true};
|
cvar_t m_side = {"m_side","0.8", CVAR_ARCHIVE};
|
||||||
|
|
||||||
cvar_t entlatency = {"entlatency", "20"};
|
cvar_t entlatency = {"entlatency", "20"};
|
||||||
cvar_t cl_predict_players = {"cl_predict_players", "1"};
|
cvar_t cl_predict_players = {"cl_predict_players", "1"};
|
||||||
|
@ -131,16 +131,16 @@ static qboolean allowremotecmd = true;
|
||||||
//
|
//
|
||||||
// info mirrors
|
// info mirrors
|
||||||
//
|
//
|
||||||
cvar_t password = {"password", "", false, true};
|
cvar_t password = {"password", "", CVAR_USERINFO|CVAR_SERVERINFO };
|
||||||
cvar_t spectator = {"spectator", "", false, true};
|
cvar_t spectator = {"spectator", "",CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t name = {"name","unnamed", true, true};
|
cvar_t name = {"name","unnamed", CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t team = {"team","", true, true};
|
cvar_t team = {"team","", CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t skin = {"skin","", true, true};
|
cvar_t skin = {"skin","", CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t topcolor = {"topcolor","0", true, true};
|
cvar_t topcolor = {"topcolor","0", CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t bottomcolor = {"bottomcolor","0", true, true};
|
cvar_t bottomcolor = {"bottomcolor","0", CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t rate = {"rate","2500", true, true};
|
cvar_t rate = {"rate","2500", CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t noaim = {"noaim","0", true, true};
|
cvar_t noaim = {"noaim","0", CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t msg = {"msg","1", true, true};
|
cvar_t msg = {"msg","1", CVAR_ARCHIVE|CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
|
|
||||||
extern cvar_t cl_hightrack;
|
extern cvar_t cl_hightrack;
|
||||||
|
|
||||||
|
|
|
@ -137,16 +137,16 @@ void Cvar_Set (char *var_name, char *value)
|
||||||
Con_Printf ("Cvar_Set: variable %s not found\n", var_name);
|
Con_Printf ("Cvar_Set: variable %s not found\n", var_name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(var->type&CVAR_ROM && !var->first) return;
|
||||||
#ifdef SERVERONLY
|
#ifdef SERVERONLY
|
||||||
if (var->info)
|
if (var->type&CVAR_SERVERINFO)
|
||||||
{
|
{
|
||||||
Info_SetValueForKey (svs.info, var_name, value, MAX_SERVERINFO_STRING);
|
Info_SetValueForKey (svs.info, var_name, value, MAX_SERVERINFO_STRING);
|
||||||
SV_SendServerInfoChange(var_name, value);
|
SV_SendServerInfoChange(var_name, value);
|
||||||
// SV_BroadcastCommand ("fullserverinfo \"%s\"\n", svs.info);
|
// SV_BroadcastCommand ("fullserverinfo \"%s\"\n", svs.info);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (var->info)
|
if (var->type&CVAR_USERINFO)
|
||||||
{
|
{
|
||||||
Info_SetValueForKey (cls.userinfo, var_name, value, MAX_INFO_STRING);
|
Info_SetValueForKey (cls.userinfo, var_name, value, MAX_INFO_STRING);
|
||||||
if (cls.state >= ca_connected)
|
if (cls.state >= ca_connected)
|
||||||
|
@ -162,6 +162,7 @@ void Cvar_Set (char *var_name, char *value)
|
||||||
var->string = Z_Malloc (Q_strlen(value)+1);
|
var->string = Z_Malloc (Q_strlen(value)+1);
|
||||||
Q_strcpy (var->string, value);
|
Q_strcpy (var->string, value);
|
||||||
var->value = Q_atof (var->string);
|
var->value = Q_atof (var->string);
|
||||||
|
var->first = false;
|
||||||
}
|
}
|
||||||
#elif defined(UQUAKE)
|
#elif defined(UQUAKE)
|
||||||
void Cvar_Set (char *var_name, char *value)
|
void Cvar_Set (char *var_name, char *value)
|
||||||
|
@ -176,6 +177,9 @@ void Cvar_Set (char *var_name, char *value)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't change if this is a CVAR_ROM
|
||||||
|
if(var->type&CVAR_ROM && !var->first) return;
|
||||||
|
|
||||||
changed = Q_strcmp(var->string, value);
|
changed = Q_strcmp(var->string, value);
|
||||||
|
|
||||||
Z_Free (var->string); // free the old value string
|
Z_Free (var->string); // free the old value string
|
||||||
|
@ -183,11 +187,12 @@ void Cvar_Set (char *var_name, char *value)
|
||||||
var->string = Z_Malloc (Q_strlen(value)+1);
|
var->string = Z_Malloc (Q_strlen(value)+1);
|
||||||
Q_strcpy (var->string, value);
|
Q_strcpy (var->string, value);
|
||||||
var->value = Q_atof (var->string);
|
var->value = Q_atof (var->string);
|
||||||
if (var->server && changed)
|
if (var->type&CVAR_NOTIFY && changed)
|
||||||
{
|
{
|
||||||
if (sv.active)
|
if (sv.active)
|
||||||
SV_BroadcastPrintf ("\"%s\" changed to \"%s\"\n", var->name, var->string);
|
SV_BroadcastPrintf ("\"%s\" changed to \"%s\"\n", var->name, var->string);
|
||||||
}
|
}
|
||||||
|
var->first = false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -239,6 +244,7 @@ void Cvar_RegisterVariable (cvar_t *variable)
|
||||||
variable->string = Z_Malloc (1);
|
variable->string = Z_Malloc (1);
|
||||||
|
|
||||||
// set it through the function to be consistant
|
// set it through the function to be consistant
|
||||||
|
variable->first = true;
|
||||||
Cvar_Set (variable->name, value);
|
Cvar_Set (variable->name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -283,7 +289,7 @@ void Cvar_WriteVariables (QFile *f)
|
||||||
cvar_t *var;
|
cvar_t *var;
|
||||||
|
|
||||||
for (var = cvar_vars ; var ; var = var->next)
|
for (var = cvar_vars ; var ; var = var->next)
|
||||||
if (var->archive)
|
if (var->type&CVAR_ARCHIVE)
|
||||||
Qprintf (f, "%s \"%s\"\n", var->name, var->string);
|
Qprintf (f, "%s \"%s\"\n", var->name, var->string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -308,7 +314,7 @@ void Cvar_Set_f(void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var = (cvar_t*)calloc(1,sizeof(cvar_t));
|
var = (cvar_t*)calloc(1,sizeof(cvar_t));
|
||||||
var->heap = 1;
|
var->type=CVAR_USER_CREATED|CVAR_HEAP;
|
||||||
var->name = strdup (var_name);
|
var->name = strdup (var_name);
|
||||||
var->string = value;
|
var->string = value;
|
||||||
Cvar_RegisterVariable (var);
|
Cvar_RegisterVariable (var);
|
||||||
|
|
|
@ -63,14 +63,17 @@ typedef struct cvar_s
|
||||||
{
|
{
|
||||||
char *name;
|
char *name;
|
||||||
char *string;
|
char *string;
|
||||||
qboolean archive; // set to true to cause it to be saved to vars.rc
|
unsigned int type;
|
||||||
qboolean info; // added to serverinfo or userinfo when changed
|
qboolean first; // determine if this is the first write
|
||||||
qboolean server; // notifies players when changed (UQUAKE)
|
// qboolean archive; // set to true to cause it to be saved to vars.rc
|
||||||
qboolean heap; // allocated off the heap, safe to free
|
// qboolean info; // added to serverinfo or userinfo when changed
|
||||||
|
// qboolean server; // notifies players when changed (UQUAKE)
|
||||||
|
// qboolean heap; // allocated off the heap, safe to free
|
||||||
float value;
|
float value;
|
||||||
struct cvar_s *next;
|
struct cvar_s *next;
|
||||||
} cvar_t;
|
} cvar_t;
|
||||||
|
|
||||||
|
#define CVAR_NONE 0
|
||||||
#define CVAR_ARCHIVE 1 // set to cause it to be saved to vars.rc
|
#define CVAR_ARCHIVE 1 // set to cause it to be saved to vars.rc
|
||||||
// used for system variables, not for player
|
// used for system variables, not for player
|
||||||
// specific configurations
|
// specific configurations
|
||||||
|
@ -79,14 +82,11 @@ typedef struct cvar_s
|
||||||
#define CVAR_SYSTEMINFO 8 // these cvars will be duplicated on all clients
|
#define CVAR_SYSTEMINFO 8 // these cvars will be duplicated on all clients
|
||||||
#define CVAR_INIT 16 // don't allow change from console at all,
|
#define CVAR_INIT 16 // don't allow change from console at all,
|
||||||
// but can be set from the command line
|
// but can be set from the command line
|
||||||
#define CVAR_LATCH 32 // will only change when C code next does
|
#define CVAR_NOTIFY 32 // Will notify players when changed.
|
||||||
// a Cvar_Get(), so it can't be changed
|
|
||||||
// without proper initialization. modified
|
|
||||||
// will be set, even though the value hasn't
|
|
||||||
// changed yet
|
|
||||||
#define CVAR_ROM 64 // display only, cannot be set by user at all
|
#define CVAR_ROM 64 // display only, cannot be set by user at all
|
||||||
#define CVAR_USER_CREATED 128 // created by a set command
|
#define CVAR_USER_CREATED 128 // created by a set command
|
||||||
#define CVAR_TEMP 256 // can be set even when cheats are disabled, but is not archived
|
#define CVAR_HEAP 256 // allocated off the heap, safe to free
|
||||||
#define CVAR_CHEAT 512 // can not be changed if cheats are disabled
|
#define CVAR_CHEAT 512 // can not be changed if cheats are disabled
|
||||||
#define CVAR_NORESTART 1024 // do not clear when a cvar_restart is issued
|
#define CVAR_NORESTART 1024 // do not clear when a cvar_restart is issued
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,7 @@ cvar_t gl_keeptjunctions = {"gl_keeptjunctions","1"};
|
||||||
#else
|
#else
|
||||||
cvar_t gl_keeptjunctions = {"gl_keeptjunctions","0"};
|
cvar_t gl_keeptjunctions = {"gl_keeptjunctions","0"};
|
||||||
#endif
|
#endif
|
||||||
cvar_t gl_doubleeyes = {"gl_doubleeyes", "1", true};
|
cvar_t gl_doubleeyes = {"gl_doubleeyes", "1", CVAR_ARCHIVE};
|
||||||
|
|
||||||
extern cvar_t gl_ztrick;
|
extern cvar_t gl_ztrick;
|
||||||
#ifdef QUAKEWORLD
|
#ifdef QUAKEWORLD
|
||||||
|
|
|
@ -87,10 +87,10 @@ unsigned short d_8to16table[256];
|
||||||
unsigned d_8to24table[256];
|
unsigned d_8to24table[256];
|
||||||
unsigned char d_15to8table[65536];
|
unsigned char d_15to8table[65536];
|
||||||
|
|
||||||
cvar_t _windowed_mouse = {"_windowed_mouse", "0", true};
|
cvar_t _windowed_mouse = {"_windowed_mouse", "0", CVAR_ARCHIVE};
|
||||||
cvar_t m_filter = {"m_filter", "0"};
|
cvar_t m_filter = {"m_filter", "0"};
|
||||||
cvar_t vid_mode = {"vid_mode", "0", false};
|
cvar_t vid_mode = {"vid_mode", "0", CVAR_NONE};
|
||||||
cvar_t vid_glx_fullscreen = {"vid_glx_fullscreen", "0", false};
|
cvar_t vid_glx_fullscreen = {"vid_glx_fullscreen", "0", CVAR_NONE};
|
||||||
|
|
||||||
static int fullscreen = 0;
|
static int fullscreen = 0;
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ static int nummodes;
|
||||||
static XF86VidModeModeInfo **vidmodes;
|
static XF86VidModeModeInfo **vidmodes;
|
||||||
static int hasdgavideo = 0, hasvidmode = 0;
|
static int hasdgavideo = 0, hasvidmode = 0;
|
||||||
static int dgamouse = 0;
|
static int dgamouse = 0;
|
||||||
static cvar_t vid_dga_mouseaccel = {"vid_dga_mouseaccel", "1", true};
|
static cvar_t vid_dga_mouseaccel = {"vid_dga_mouseaccel", "1", CVAR_ARCHIVE};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XMESA
|
#ifdef XMESA
|
||||||
|
@ -139,7 +139,7 @@ int texture_extension_number = 1;
|
||||||
|
|
||||||
float gldepthmin, gldepthmax;
|
float gldepthmin, gldepthmax;
|
||||||
|
|
||||||
cvar_t gl_ztrick = {"gl_ztrick", "0", true};
|
cvar_t gl_ztrick = {"gl_ztrick", "0", CVAR_ARCHIVE};
|
||||||
|
|
||||||
const char *gl_vendor;
|
const char *gl_vendor;
|
||||||
const char *gl_renderer;
|
const char *gl_renderer;
|
||||||
|
|
|
@ -47,10 +47,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
unsigned d_8to24table[256];
|
unsigned d_8to24table[256];
|
||||||
unsigned char d_15to8table[65536];
|
unsigned char d_15to8table[65536];
|
||||||
|
|
||||||
static cvar_t vid_mode = {"vid_mode", "5", false};
|
static cvar_t vid_mode = {"vid_mode", "5", CVAR_NONE};
|
||||||
static cvar_t vid_redrawfull = {"vid_redrawfull", "0", false};
|
static cvar_t vid_redrawfull = {"vid_redrawfull", "0", CVAR_NONE};
|
||||||
static cvar_t vid_waitforrefresh = {"vid_waitforrefresh", "0", true};
|
static cvar_t vid_waitforrefresh = {"vid_waitforrefresh", "0", CVAR_ARCHIVE};
|
||||||
cvar_t gl_ztrick = {"gl_ztrick", "0", true};
|
cvar_t gl_ztrick = {"gl_ztrick", "0", CVAR_ARCHIVE};
|
||||||
|
|
||||||
static fxMesaContext fc = NULL;
|
static fxMesaContext fc = NULL;
|
||||||
static int scr_width, scr_height;
|
static int scr_width, scr_height;
|
||||||
|
|
|
@ -143,20 +143,20 @@ qboolean gl_mtexable = false;
|
||||||
|
|
||||||
//====================================
|
//====================================
|
||||||
|
|
||||||
cvar_t gl_ztrick = {"gl_ztrick", "1", true};
|
cvar_t gl_ztrick = {"gl_ztrick", "1", CVAR_ARCHIVE};
|
||||||
|
|
||||||
cvar_t vid_mode = {"vid_mode", "0", false};
|
cvar_t vid_mode = {"vid_mode", "0", CVAR_NONE};
|
||||||
// Note that 0 is MODE_WINDOWED
|
// Note that 0 is MODE_WINDOWED
|
||||||
cvar_t _vid_default_mode = {"_vid_default_mode", "0", true};
|
cvar_t _vid_default_mode = {"_vid_default_mode", "0", CVAR_ARCHIVE};
|
||||||
// Note that 3 is MODE_FULLSCREEN_DEFAULT
|
// Note that 3 is MODE_FULLSCREEN_DEFAULT
|
||||||
cvar_t _vid_default_mode_win = {"_vid_default_mode_win", "3", true};
|
cvar_t _vid_default_mode_win = {"_vid_default_mode_win", "3", CVAR_ARCHIVE};
|
||||||
cvar_t vid_wait = {"vid_wait", "0"};
|
cvar_t vid_wait = {"vid_wait", "0"};
|
||||||
cvar_t vid_nopageflip = {"vid_nopageflip", "0", true};
|
cvar_t vid_nopageflip = {"vid_nopageflip", "0", CVAR_ARCHIVE};
|
||||||
cvar_t _vid_wait_override = {"_vid_wait_override", "0", true};
|
cvar_t _vid_wait_override = {"_vid_wait_override", "0", CVAR_ARCHIVE};
|
||||||
cvar_t vid_config_x = {"vid_config_x", "800", true};
|
cvar_t vid_config_x = {"vid_config_x", "800", CVAR_ARCHIVE};
|
||||||
cvar_t vid_config_y = {"vid_config_y", "600", true};
|
cvar_t vid_config_y = {"vid_config_y", "600", CVAR_ARCHIVE};
|
||||||
cvar_t vid_stretch_by_2 = {"vid_stretch_by_2", "1", true};
|
cvar_t vid_stretch_by_2 = {"vid_stretch_by_2", "1", CVAR_ARCHIVE};
|
||||||
cvar_t _windowed_mouse = {"_windowed_mouse", "1", true};
|
cvar_t _windowed_mouse = {"_windowed_mouse", "1", CVAR_ARCHIVE};
|
||||||
|
|
||||||
int window_center_x, window_center_y, window_x, window_y, window_width, window_height;
|
int window_center_x, window_center_y, window_x, window_y, window_width, window_height;
|
||||||
RECT window_rect;
|
RECT window_rect;
|
||||||
|
|
|
@ -69,16 +69,16 @@ cvar_t sys_ticrate = {"sys_ticrate","0.05"};
|
||||||
cvar_t serverprofile = {"serverprofile", "0"};
|
cvar_t serverprofile = {"serverprofile", "0"};
|
||||||
cvar_t host_framerate = {"host_framerate", "0"}; // set for slow motion
|
cvar_t host_framerate = {"host_framerate", "0"}; // set for slow motion
|
||||||
cvar_t samelevel = {"samelevel", "0"};
|
cvar_t samelevel = {"samelevel", "0"};
|
||||||
cvar_t noexit = {"noexit", "0", false, true};
|
cvar_t noexit = {"noexit", "0", CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t pausable = {"pausable", "1"};
|
cvar_t pausable = {"pausable", "1"};
|
||||||
cvar_t temp1 = {"temp1", "0"};
|
cvar_t temp1 = {"temp1", "0"};
|
||||||
cvar_t sv_filter = {"sv_filter", "1"}; // strip \n, \r in names?
|
cvar_t sv_filter = {"sv_filter", "1"}; // strip \n, \r in names?
|
||||||
cvar_t teamplay = {"teamplay","0",false,true};
|
cvar_t teamplay = {"teamplay","0",CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t deathmatch = {"deathmatch","0"}; // 0, 1, or 2
|
cvar_t deathmatch = {"deathmatch","0"}; // 0, 1, or 2
|
||||||
cvar_t coop = {"coop","0"}; // 0 or 1
|
cvar_t coop = {"coop","0"}; // 0 or 1
|
||||||
cvar_t fraglimit = {"fraglimit","0",false,true};
|
cvar_t fraglimit = {"fraglimit","0",CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t skill = {"skill","1"}; // 0 - 3
|
cvar_t skill = {"skill","1"}; // 0 - 3
|
||||||
cvar_t timelimit = {"timelimit","0",false,true};
|
cvar_t timelimit = {"timelimit","0",CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
|
|
||||||
#ifdef UQUAKE
|
#ifdef UQUAKE
|
||||||
client_t *host_client; // current client
|
client_t *host_client; // current client
|
||||||
|
|
|
@ -88,7 +88,7 @@ float old_mouse_x, old_mouse_y;
|
||||||
|
|
||||||
|
|
||||||
cvar_t in_joystick = {"joystick","1"};
|
cvar_t in_joystick = {"joystick","1"};
|
||||||
cvar_t joy_numbuttons = {"joybuttons","4", true};
|
cvar_t joy_numbuttons = {"joybuttons","4", CVAR_ARCHIVE};
|
||||||
|
|
||||||
qboolean joy_avail;
|
qboolean joy_avail;
|
||||||
int joy_oldbuttonstate;
|
int joy_oldbuttonstate;
|
||||||
|
@ -103,7 +103,7 @@ qboolean extern_avail;
|
||||||
int extern_buttons;
|
int extern_buttons;
|
||||||
int extern_oldbuttonstate;
|
int extern_oldbuttonstate;
|
||||||
int extern_buttonstate;
|
int extern_buttonstate;
|
||||||
cvar_t aux_look = {"auxlook","1", true};
|
cvar_t aux_look = {"auxlook","1", CVAR_ARCHIVE};
|
||||||
externControl_t *extern_control;
|
externControl_t *extern_control;
|
||||||
void IN_StartupExternal (void);
|
void IN_StartupExternal (void);
|
||||||
void IN_ExternalMove (usercmd_t *cmd);
|
void IN_ExternalMove (usercmd_t *cmd);
|
||||||
|
|
|
@ -62,7 +62,7 @@ extern int global_dx, global_dy;
|
||||||
// globals
|
// globals
|
||||||
//
|
//
|
||||||
|
|
||||||
cvar_t _windowed_mouse = {"_windowed_mouse","1", true};
|
cvar_t _windowed_mouse = {"_windowed_mouse","1", CVAR_ARCHIVE};
|
||||||
int x_root, y_root;
|
int x_root, y_root;
|
||||||
int x_root_old, y_root_old;
|
int x_root_old, y_root_old;
|
||||||
//
|
//
|
||||||
|
|
|
@ -57,7 +57,7 @@ static int mx, my;
|
||||||
static void IN_init_kb();
|
static void IN_init_kb();
|
||||||
static void IN_init_mouse();
|
static void IN_init_mouse();
|
||||||
|
|
||||||
cvar_t _windowed_mouse = {"_windowed_mouse", "1", true};
|
cvar_t _windowed_mouse = {"_windowed_mouse", "1", CVAR_ARCHIVE};
|
||||||
cvar_t m_filter = {"m_filter","0"};
|
cvar_t m_filter = {"m_filter","0"};
|
||||||
|
|
||||||
static cvar_t mouse_button_commands[3] =
|
static cvar_t mouse_button_commands[3] =
|
||||||
|
|
|
@ -86,7 +86,7 @@ PDWORD pdwRawValue[JOY_MAX_AXES];
|
||||||
// each time. this avoids any problems with getting back to a default usage
|
// each time. this avoids any problems with getting back to a default usage
|
||||||
// or when changing from one controller to another. this way at least something
|
// or when changing from one controller to another. this way at least something
|
||||||
// works.
|
// works.
|
||||||
cvar_t in_joystick = {"joystick","0", true};
|
cvar_t in_joystick = {"joystick","0", CVAR_ARCHIVE};
|
||||||
cvar_t joy_name = {"joyname", "joystick"};
|
cvar_t joy_name = {"joyname", "joystick"};
|
||||||
cvar_t joy_advanced = {"joyadvanced", "0"};
|
cvar_t joy_advanced = {"joyadvanced", "0"};
|
||||||
cvar_t joy_advaxisx = {"joyadvaxisx", "0"};
|
cvar_t joy_advaxisx = {"joyadvaxisx", "0"};
|
||||||
|
|
|
@ -62,8 +62,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cvar_t _windowed_mouse = {"_windowed_mouse","0", true};
|
cvar_t _windowed_mouse = {"_windowed_mouse","0", CVAR_ARCHIVE};
|
||||||
cvar_t m_filter = {"m_filter","0", true};
|
cvar_t m_filter = {"m_filter","0", CVAR_ARCHIVE};
|
||||||
|
|
||||||
static qboolean mouse_avail;
|
static qboolean mouse_avail;
|
||||||
static float mouse_x, mouse_y;
|
static float mouse_x, mouse_y;
|
||||||
|
|
|
@ -63,11 +63,11 @@ cvar_t scratch1 = {"scratch1", "0"};
|
||||||
cvar_t scratch2 = {"scratch2", "0"};
|
cvar_t scratch2 = {"scratch2", "0"};
|
||||||
cvar_t scratch3 = {"scratch3", "0"};
|
cvar_t scratch3 = {"scratch3", "0"};
|
||||||
cvar_t scratch4 = {"scratch4", "0"};
|
cvar_t scratch4 = {"scratch4", "0"};
|
||||||
cvar_t savedgamecfg = {"savedgamecfg", "0", true};
|
cvar_t savedgamecfg = {"savedgamecfg", "0", CVAR_ARCHIVE};
|
||||||
cvar_t saved1 = {"saved1", "0", true};
|
cvar_t saved1 = {"saved1", "0", CVAR_ARCHIVE};
|
||||||
cvar_t saved2 = {"saved2", "0", true};
|
cvar_t saved2 = {"saved2", "0", CVAR_ARCHIVE};
|
||||||
cvar_t saved3 = {"saved3", "0", true};
|
cvar_t saved3 = {"saved3", "0", CVAR_ARCHIVE};
|
||||||
cvar_t saved4 = {"saved4", "0", true};
|
cvar_t saved4 = {"saved4", "0", CVAR_ARCHIVE};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAX_FIELD_LEN 64
|
#define MAX_FIELD_LEN 64
|
||||||
|
|
|
@ -82,8 +82,8 @@ int desired_bits = 16;
|
||||||
|
|
||||||
int sound_started=0;
|
int sound_started=0;
|
||||||
|
|
||||||
cvar_t bgmvolume = {"bgmvolume", "1", true};
|
cvar_t bgmvolume = {"bgmvolume", "1", CVAR_ARCHIVE};
|
||||||
cvar_t volume = {"volume", "0.7", true};
|
cvar_t volume = {"volume", "0.7", CVAR_ARCHIVE};
|
||||||
|
|
||||||
cvar_t nosound = {"nosound", "0"};
|
cvar_t nosound = {"nosound", "0"};
|
||||||
cvar_t precache = {"precache", "1"};
|
cvar_t precache = {"precache", "1"};
|
||||||
|
@ -93,7 +93,7 @@ cvar_t ambient_level = {"ambient_level", "0.3"};
|
||||||
cvar_t ambient_fade = {"ambient_fade", "100"};
|
cvar_t ambient_fade = {"ambient_fade", "100"};
|
||||||
cvar_t snd_noextraupdate = {"snd_noextraupdate", "0"};
|
cvar_t snd_noextraupdate = {"snd_noextraupdate", "0"};
|
||||||
cvar_t snd_show = {"snd_show", "0"};
|
cvar_t snd_show = {"snd_show", "0"};
|
||||||
cvar_t _snd_mixahead = {"_snd_mixahead", "0.1", true};
|
cvar_t _snd_mixahead = {"_snd_mixahead", "0.1", CVAR_ARCHIVE};
|
||||||
|
|
||||||
|
|
||||||
// ====================================================================
|
// ====================================================================
|
||||||
|
|
|
@ -47,9 +47,9 @@ static byte vid_current_palette[768];
|
||||||
|
|
||||||
static int UseDisplay = 1;
|
static int UseDisplay = 1;
|
||||||
|
|
||||||
static cvar_t vid_mode = {"vid_mode","5",false};
|
static cvar_t vid_mode = {"vid_mode","5",CVAR_NONE};
|
||||||
static cvar_t vid_redrawfull = {"vid_redrawfull","0",false};
|
static cvar_t vid_redrawfull = {"vid_redrawfull","0",CVAR_NONE};
|
||||||
static cvar_t vid_waitforrefresh = {"vid_waitforrefresh","0",true};
|
static cvar_t vid_waitforrefresh = {"vid_waitforrefresh","0",CVAR_ARCHIVE};
|
||||||
|
|
||||||
static char *framebuffer_ptr;
|
static char *framebuffer_ptr;
|
||||||
|
|
||||||
|
|
|
@ -44,21 +44,21 @@ vmode_t *pcurrentmode = NULL;
|
||||||
int vid_testingmode, vid_realmode;
|
int vid_testingmode, vid_realmode;
|
||||||
double vid_testendtime;
|
double vid_testendtime;
|
||||||
|
|
||||||
cvar_t vid_mode = {"vid_mode","0", false};
|
cvar_t vid_mode = {"vid_mode","0", CVAR_NONE};
|
||||||
cvar_t vid_wait = {"vid_wait","0"};
|
cvar_t vid_wait = {"vid_wait","0"};
|
||||||
cvar_t vid_nopageflip = {"vid_nopageflip","0", true};
|
cvar_t vid_nopageflip = {"vid_nopageflip","0", CVAR_ARCHIVE};
|
||||||
cvar_t _vid_wait_override = {"_vid_wait_override", "0", true};
|
cvar_t _vid_wait_override = {"_vid_wait_override", "0",CVAR_ARCHIVE};
|
||||||
cvar_t _vid_default_mode = {"_vid_default_mode","0", true};
|
cvar_t _vid_default_mode = {"_vid_default_mode","0", CVAR_ARCHIVE};
|
||||||
cvar_t _vid_default_mode_win = {"_vid_default_mode_win","1", true};
|
cvar_t _vid_default_mode_win = {"_vid_default_mode_win","1", CVAR_ARCHIVE};
|
||||||
cvar_t vid_config_x = {"vid_config_x","800", true};
|
cvar_t vid_config_x = {"vid_config_x","800", CVAR_ARCHIVE};
|
||||||
cvar_t vid_config_y = {"vid_config_y","600", true};
|
cvar_t vid_config_y = {"vid_config_y","600", CVAR_ARCHIVE};
|
||||||
cvar_t vid_stretch_by_2 = {"vid_stretch_by_2","1", true};
|
cvar_t vid_stretch_by_2 = {"vid_stretch_by_2","1", CVAR_ARCHIVE};
|
||||||
cvar_t _windowed_mouse = {"_windowed_mouse","0", true};
|
cvar_t _windowed_mouse = {"_windowed_mouse","0", CVAR_ARCHIVE};
|
||||||
cvar_t vid_fullscreen_mode = {"vid_fullscreen_mode","3", true};
|
cvar_t vid_fullscreen_mode = {"vid_fullscreen_mode","3", CVAR_ARCHIVE};
|
||||||
cvar_t vid_windowed_mode = {"vid_windowed_mode","0", true};
|
cvar_t vid_windowed_mode = {"vid_windowed_mode","0", CVAR_ARCHIVE};
|
||||||
cvar_t block_switch = {"block_switch","0", true};
|
cvar_t block_switch = {"block_switch","0", CVAR_ARCHIVE};
|
||||||
cvar_t vid_window_x = {"vid_window_x", "0", true};
|
cvar_t vid_window_x = {"vid_window_x", "0", CVAR_ARCHIVE};
|
||||||
cvar_t vid_window_y = {"vid_window_y", "0", true};
|
cvar_t vid_window_y = {"vid_window_y", "0", CVAR_ARCHIVE};
|
||||||
|
|
||||||
int VID_options_items = 0;
|
int VID_options_items = 0;
|
||||||
|
|
||||||
|
|
|
@ -44,8 +44,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
viddef_t vid; // global video state
|
viddef_t vid; // global video state
|
||||||
unsigned short d_8to16table[256];
|
unsigned short d_8to16table[256];
|
||||||
|
|
||||||
cvar_t _windowed_mouse = {"_windowed_mouse","0", true};
|
cvar_t _windowed_mouse = {"_windowed_mouse","0", CVAR_ARCHIVE};
|
||||||
cvar_t m_filter = {"m_filter","0", true};
|
cvar_t m_filter = {"m_filter","0", CVAR_ARCHIVE};
|
||||||
|
|
||||||
#define NUM_STDBUTTONS 3
|
#define NUM_STDBUTTONS 3
|
||||||
#define NUM_BUTTONS 10
|
#define NUM_BUTTONS 10
|
||||||
|
|
|
@ -33,7 +33,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include <cmd.h>
|
#include <cmd.h>
|
||||||
#include <client.h>
|
#include <client.h>
|
||||||
|
|
||||||
cvar_t _windowed_mouse = {"_windowed_mouse","0", true};
|
cvar_t _windowed_mouse = {"_windowed_mouse","0", CVAR_ARCHIVE};
|
||||||
static float old_windowed_mouse = 0;
|
static float old_windowed_mouse = 0;
|
||||||
|
|
||||||
viddef_t vid; // global video state
|
viddef_t vid; // global video state
|
||||||
|
|
|
@ -57,8 +57,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include <sys.h>
|
#include <sys.h>
|
||||||
#include <client.h>
|
#include <client.h>
|
||||||
|
|
||||||
cvar_t _windowed_mouse = {"_windowed_mouse","0", true};
|
cvar_t _windowed_mouse = {"_windowed_mouse","0", CVAR_ARCHIVE};
|
||||||
cvar_t m_filter = {"m_filter","0", true};
|
cvar_t m_filter = {"m_filter","0", CVAR_ARCHIVE};
|
||||||
|
|
||||||
static qboolean mouse_avail;
|
static qboolean mouse_avail;
|
||||||
static float mouse_x, mouse_y;
|
static float mouse_x, mouse_y;
|
||||||
|
|
|
@ -72,23 +72,23 @@ viddef_t vid; // global video state
|
||||||
#define MODE_FULLSCREEN_DEFAULT (MODE_WINDOWED + 3)
|
#define MODE_FULLSCREEN_DEFAULT (MODE_WINDOWED + 3)
|
||||||
|
|
||||||
// Note that 0 is MODE_WINDOWED
|
// Note that 0 is MODE_WINDOWED
|
||||||
cvar_t vid_mode = {"vid_mode","0", false};
|
cvar_t vid_mode = {"vid_mode","0", CVAR_NONE};
|
||||||
// Note that 0 is MODE_WINDOWED
|
// Note that 0 is MODE_WINDOWED
|
||||||
cvar_t _vid_default_mode = {"_vid_default_mode","0", true};
|
cvar_t _vid_default_mode = {"_vid_default_mode","0", CVAR_ARCHIVE};
|
||||||
// Note that 3 is MODE_FULLSCREEN_DEFAULT
|
// Note that 3 is MODE_FULLSCREEN_DEFAULT
|
||||||
cvar_t _vid_default_mode_win = {"_vid_default_mode_win","3", true};
|
cvar_t _vid_default_mode_win = {"_vid_default_mode_win","3", CVAR_ARCHIVE};
|
||||||
cvar_t vid_wait = {"vid_wait","0"};
|
cvar_t vid_wait = {"vid_wait","0"};
|
||||||
cvar_t vid_nopageflip = {"vid_nopageflip","0", true};
|
cvar_t vid_nopageflip = {"vid_nopageflip","0", CVAR_ARCHIVE};
|
||||||
cvar_t _vid_wait_override = {"_vid_wait_override", "0", true};
|
cvar_t _vid_wait_override = {"_vid_wait_override", "0", CVAR_ARCHIVE};
|
||||||
cvar_t vid_config_x = {"vid_config_x","800", true};
|
cvar_t vid_config_x = {"vid_config_x","800", CVAR_ARCHIVE};
|
||||||
cvar_t vid_config_y = {"vid_config_y","600", true};
|
cvar_t vid_config_y = {"vid_config_y","600", CVAR_ARCHIVE};
|
||||||
cvar_t vid_stretch_by_2 = {"vid_stretch_by_2","1", true};
|
cvar_t vid_stretch_by_2 = {"vid_stretch_by_2","1", CVAR_ARCHIVE};
|
||||||
cvar_t _windowed_mouse = {"_windowed_mouse","0", true};
|
cvar_t _windowed_mouse = {"_windowed_mouse","0", CVAR_ARCHIVE};
|
||||||
cvar_t vid_fullscreen_mode = {"vid_fullscreen_mode","3", true};
|
cvar_t vid_fullscreen_mode = {"vid_fullscreen_mode","3", CVAR_ARCHIVE};
|
||||||
cvar_t vid_windowed_mode = {"vid_windowed_mode","0", true};
|
cvar_t vid_windowed_mode = {"vid_windowed_mode","0", CVAR_ARCHIVE};
|
||||||
cvar_t block_switch = {"block_switch","0", true};
|
cvar_t block_switch = {"block_switch","0", CVAR_ARCHIVE};
|
||||||
cvar_t vid_window_x = {"vid_window_x", "0", true};
|
cvar_t vid_window_x = {"vid_window_x", "0", CVAR_ARCHIVE};
|
||||||
cvar_t vid_window_y = {"vid_window_y", "0", true};
|
cvar_t vid_window_y = {"vid_window_y", "0", CVAR_ARCHIVE};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int width;
|
int width;
|
||||||
|
|
|
@ -52,7 +52,7 @@ byte mod_novis[MAX_MAP_LEAFS/8];
|
||||||
model_t mod_known[MAX_MOD_KNOWN];
|
model_t mod_known[MAX_MOD_KNOWN];
|
||||||
int mod_numknown;
|
int mod_numknown;
|
||||||
|
|
||||||
cvar_t gl_subdivide_size = {"gl_subdivide_size", "128", true};
|
cvar_t gl_subdivide_size = {"gl_subdivide_size", "128", CVAR_ARCHIVE};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
===============
|
===============
|
||||||
|
|
|
@ -97,7 +97,7 @@ float scr_con_current;
|
||||||
float scr_conlines; // lines of console to display
|
float scr_conlines; // lines of console to display
|
||||||
|
|
||||||
float oldscreensize, oldfov;
|
float oldscreensize, oldfov;
|
||||||
cvar_t scr_viewsize = {"viewsize","100", true};
|
cvar_t scr_viewsize = {"viewsize","100", CVAR_ARCHIVE};
|
||||||
cvar_t scr_fov = {"fov","90"}; // 10 - 170
|
cvar_t scr_fov = {"fov","90"}; // 10 - 170
|
||||||
cvar_t scr_conspeed = {"scr_conspeed","300"};
|
cvar_t scr_conspeed = {"scr_conspeed","300"};
|
||||||
cvar_t scr_centertime = {"scr_centertime","2"};
|
cvar_t scr_centertime = {"scr_centertime","2"};
|
||||||
|
@ -106,7 +106,7 @@ cvar_t scr_showturtle = {"showturtle","0"};
|
||||||
cvar_t scr_showpause = {"showpause","1"};
|
cvar_t scr_showpause = {"showpause","1"};
|
||||||
cvar_t scr_printspeed = {"scr_printspeed","8"};
|
cvar_t scr_printspeed = {"scr_printspeed","8"};
|
||||||
cvar_t scr_allowsnap = {"scr_allowsnap", "1"};
|
cvar_t scr_allowsnap = {"scr_allowsnap", "1"};
|
||||||
cvar_t gl_triplebuffer = {"gl_triplebuffer", "1", true };
|
cvar_t gl_triplebuffer = {"gl_triplebuffer", "1", CVAR_ARCHIVE };
|
||||||
extern cvar_t crosshair;
|
extern cvar_t crosshair;
|
||||||
|
|
||||||
qboolean scr_initialized; // ready to draw
|
qboolean scr_initialized; // ready to draw
|
||||||
|
|
|
@ -94,7 +94,7 @@ float scr_conlines; // lines of console to display
|
||||||
|
|
||||||
float oldscreensize, oldfov;
|
float oldscreensize, oldfov;
|
||||||
float oldsbar;
|
float oldsbar;
|
||||||
cvar_t scr_viewsize = {"viewsize","100", true};
|
cvar_t scr_viewsize = {"viewsize","100", CVAR_ARCHIVE};
|
||||||
cvar_t scr_fov = {"fov","90"}; // 10 - 170
|
cvar_t scr_fov = {"fov","90"}; // 10 - 170
|
||||||
cvar_t scr_conspeed = {"scr_conspeed","300"};
|
cvar_t scr_conspeed = {"scr_conspeed","300"};
|
||||||
cvar_t scr_centertime = {"scr_centertime","2"};
|
cvar_t scr_centertime = {"scr_centertime","2"};
|
||||||
|
|
|
@ -45,32 +45,32 @@ cvar_t lcd_x = {"lcd_x", "0"}; // FIXME: make this work sometime...
|
||||||
cvar_t cl_rollspeed = {"cl_rollspeed", "200"};
|
cvar_t cl_rollspeed = {"cl_rollspeed", "200"};
|
||||||
cvar_t cl_rollangle = {"cl_rollangle", "2.0"};
|
cvar_t cl_rollangle = {"cl_rollangle", "2.0"};
|
||||||
|
|
||||||
cvar_t cl_bob = {"cl_bob","0.02", false};
|
cvar_t cl_bob = {"cl_bob","0.02", CVAR_NONE};
|
||||||
cvar_t cl_bobcycle = {"cl_bobcycle","0.6", false};
|
cvar_t cl_bobcycle = {"cl_bobcycle","0.6", CVAR_NONE};
|
||||||
cvar_t cl_bobup = {"cl_bobup","0.5", false};
|
cvar_t cl_bobup = {"cl_bobup","0.5", CVAR_NONE};
|
||||||
|
|
||||||
cvar_t v_kicktime = {"v_kicktime", "0.5", false};
|
cvar_t v_kicktime = {"v_kicktime", "0.5", CVAR_NONE};
|
||||||
cvar_t v_kickroll = {"v_kickroll", "0.6", false};
|
cvar_t v_kickroll = {"v_kickroll", "0.6", CVAR_NONE};
|
||||||
cvar_t v_kickpitch = {"v_kickpitch", "0.6", false};
|
cvar_t v_kickpitch = {"v_kickpitch", "0.6", CVAR_NONE};
|
||||||
|
|
||||||
cvar_t v_iyaw_cycle = {"v_iyaw_cycle", "2", false};
|
cvar_t v_iyaw_cycle = {"v_iyaw_cycle", "2", CVAR_NONE};
|
||||||
cvar_t v_iroll_cycle = {"v_iroll_cycle", "0.5", false};
|
cvar_t v_iroll_cycle = {"v_iroll_cycle", "0.5", CVAR_NONE};
|
||||||
cvar_t v_ipitch_cycle = {"v_ipitch_cycle", "1", false};
|
cvar_t v_ipitch_cycle = {"v_ipitch_cycle", "1", CVAR_NONE};
|
||||||
cvar_t v_iyaw_level = {"v_iyaw_level", "0.3", false};
|
cvar_t v_iyaw_level = {"v_iyaw_level", "0.3", CVAR_NONE};
|
||||||
cvar_t v_iroll_level = {"v_iroll_level", "0.1", false};
|
cvar_t v_iroll_level = {"v_iroll_level", "0.1", CVAR_NONE};
|
||||||
cvar_t v_ipitch_level = {"v_ipitch_level", "0.3", false};
|
cvar_t v_ipitch_level = {"v_ipitch_level", "0.3", CVAR_NONE};
|
||||||
|
|
||||||
cvar_t v_idlescale = {"v_idlescale", "0", false};
|
cvar_t v_idlescale = {"v_idlescale", "0", CVAR_NONE};
|
||||||
|
|
||||||
cvar_t crosshair = {"crosshair", "0", true};
|
cvar_t crosshair = {"crosshair", "0", CVAR_ARCHIVE};
|
||||||
cvar_t crosshaircolor = {"crosshaircolor", "79", true};
|
cvar_t crosshaircolor = {"crosshaircolor", "79", CVAR_ARCHIVE};
|
||||||
|
|
||||||
cvar_t cl_crossx = {"cl_crossx", "0", true};
|
cvar_t cl_crossx = {"cl_crossx", "0", CVAR_ARCHIVE};
|
||||||
cvar_t cl_crossy = {"cl_crossy", "0", true};
|
cvar_t cl_crossy = {"cl_crossy", "0", CVAR_ARCHIVE};
|
||||||
|
|
||||||
cvar_t gl_cshiftpercent = {"gl_cshiftpercent", "100", false};
|
cvar_t gl_cshiftpercent = {"gl_cshiftpercent", "100", CVAR_NONE};
|
||||||
|
|
||||||
cvar_t v_contentblend = {"v_contentblend", "1", false};
|
cvar_t v_contentblend = {"v_contentblend", "1", CVAR_NONE};
|
||||||
|
|
||||||
float v_dmg_time, v_dmg_roll, v_dmg_pitch;
|
float v_dmg_time, v_dmg_roll, v_dmg_pitch;
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ float V_CalcBob (void)
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
|
|
||||||
cvar_t v_centermove = {"v_centermove", "0.15", false};
|
cvar_t v_centermove = {"v_centermove", "0.15", CVAR_NONE};
|
||||||
cvar_t v_centerspeed = {"v_centerspeed","500"};
|
cvar_t v_centerspeed = {"v_centerspeed","500"};
|
||||||
|
|
||||||
|
|
||||||
|
@ -269,7 +269,7 @@ cshift_t cshift_water = { {130,80,50}, 128 };
|
||||||
cshift_t cshift_slime = { {0,25,5}, 150 };
|
cshift_t cshift_slime = { {0,25,5}, 150 };
|
||||||
cshift_t cshift_lava = { {255,80,0}, 150 };
|
cshift_t cshift_lava = { {255,80,0}, 150 };
|
||||||
|
|
||||||
cvar_t v_gamma = {"gamma", "1", true};
|
cvar_t v_gamma = {"gamma", "1", CVAR_ARCHIVE};
|
||||||
|
|
||||||
byte gammatable[256]; // palette is sent through this
|
byte gammatable[256]; // palette is sent through this
|
||||||
|
|
||||||
|
|
|
@ -78,17 +78,17 @@ cvar_t pausable = {"pausable", "1"};
|
||||||
//
|
//
|
||||||
// game rules mirrored in svs.info
|
// game rules mirrored in svs.info
|
||||||
//
|
//
|
||||||
cvar_t fraglimit = {"fraglimit","0",false,true};
|
cvar_t fraglimit = {"fraglimit","0",CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t timelimit = {"timelimit","0",false,true};
|
cvar_t timelimit = {"timelimit","0",CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t teamplay = {"teamplay","0",false,true};
|
cvar_t teamplay = {"teamplay","0",CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t samelevel = {"samelevel","0", false, true};
|
cvar_t samelevel = {"samelevel","0", CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t maxclients = {"maxclients","8", false, true};
|
cvar_t maxclients = {"maxclients","8", CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t maxspectators = {"maxspectators","8", false, true};
|
cvar_t maxspectators = {"maxspectators","8", CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t deathmatch = {"deathmatch","1", false, true}; // 0, 1, or 2
|
cvar_t deathmatch = {"deathmatch","1", CVAR_USERINFO|CVAR_SERVERINFO}; // 0, 1, or 2
|
||||||
cvar_t spawn = {"spawn","0", false, true};
|
cvar_t spawn = {"spawn","0", CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t watervis = {"watervis", "0", false, true};
|
cvar_t watervis = {"watervis", "0", CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
|
|
||||||
cvar_t hostname = {"hostname","unnamed", false, true};
|
cvar_t hostname = {"hostname","unnamed", CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
|
|
||||||
QFile *sv_logfile;
|
QFile *sv_logfile;
|
||||||
QFile *sv_fraglogfile;
|
QFile *sv_fraglogfile;
|
||||||
|
|
|
@ -47,7 +47,7 @@ byte mod_novis[MAX_MAP_LEAFS/8];
|
||||||
model_t mod_known[MAX_MOD_KNOWN];
|
model_t mod_known[MAX_MOD_KNOWN];
|
||||||
int mod_numknown;
|
int mod_numknown;
|
||||||
|
|
||||||
cvar_t gl_subdivide_size = {"gl_subdivide_size", "128", true};
|
cvar_t gl_subdivide_size = {"gl_subdivide_size", "128", CVAR_ARCHIVE};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
===============
|
===============
|
||||||
|
|
|
@ -98,7 +98,7 @@ float scr_con_current;
|
||||||
float scr_conlines; // lines of console to display
|
float scr_conlines; // lines of console to display
|
||||||
|
|
||||||
float oldscreensize, oldfov;
|
float oldscreensize, oldfov;
|
||||||
cvar_t scr_viewsize = {"viewsize","100", true};
|
cvar_t scr_viewsize = {"viewsize","100", CVAR_ARCHIVE};
|
||||||
cvar_t scr_fov = {"fov","90"}; // 10 - 170
|
cvar_t scr_fov = {"fov","90"}; // 10 - 170
|
||||||
cvar_t scr_conspeed = {"scr_conspeed","300"};
|
cvar_t scr_conspeed = {"scr_conspeed","300"};
|
||||||
cvar_t scr_centertime = {"scr_centertime","2"};
|
cvar_t scr_centertime = {"scr_centertime","2"};
|
||||||
|
@ -106,7 +106,7 @@ cvar_t scr_showram = {"showram","1"};
|
||||||
cvar_t scr_showturtle = {"showturtle","0"};
|
cvar_t scr_showturtle = {"showturtle","0"};
|
||||||
cvar_t scr_showpause = {"showpause","1"};
|
cvar_t scr_showpause = {"showpause","1"};
|
||||||
cvar_t scr_printspeed = {"scr_printspeed","8"};
|
cvar_t scr_printspeed = {"scr_printspeed","8"};
|
||||||
cvar_t gl_triplebuffer = {"gl_triplebuffer", "1", true };
|
cvar_t gl_triplebuffer = {"gl_triplebuffer", "1",CVAR_ARCHIVE };
|
||||||
extern cvar_t crosshair;
|
extern cvar_t crosshair;
|
||||||
|
|
||||||
qboolean scr_initialized; // ready to draw
|
qboolean scr_initialized; // ready to draw
|
||||||
|
|
|
@ -958,7 +958,7 @@ static qsocket_t *_Datagram_CheckNewConnections (void)
|
||||||
// search for the next server cvar
|
// search for the next server cvar
|
||||||
while (var)
|
while (var)
|
||||||
{
|
{
|
||||||
if (var->server)
|
if (var->type&CVAR_NOTIFY)
|
||||||
break;
|
break;
|
||||||
var = var->next;
|
var = var->next;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,14 +76,14 @@ cvar_t net_messagetimeout = {"net_messagetimeout","300"};
|
||||||
cvar_t hostname = {"hostname", "UNNAMED"};
|
cvar_t hostname = {"hostname", "UNNAMED"};
|
||||||
|
|
||||||
qboolean configRestored = false;
|
qboolean configRestored = false;
|
||||||
cvar_t config_com_port = {"_config_com_port", "0x3f8", true};
|
cvar_t config_com_port = {"_config_com_port", "0x3f8", CVAR_ARCHIVE};
|
||||||
cvar_t config_com_irq = {"_config_com_irq", "4", true};
|
cvar_t config_com_irq = {"_config_com_irq", "4", CVAR_ARCHIVE};
|
||||||
cvar_t config_com_baud = {"_config_com_baud", "57600", true};
|
cvar_t config_com_baud = {"_config_com_baud", "57600", CVAR_ARCHIVE};
|
||||||
cvar_t config_com_modem = {"_config_com_modem", "1", true};
|
cvar_t config_com_modem = {"_config_com_modem", "1", CVAR_ARCHIVE};
|
||||||
cvar_t config_modem_dialtype = {"_config_modem_dialtype", "T", true};
|
cvar_t config_modem_dialtype = {"_config_modem_dialtype", "T", CVAR_ARCHIVE};
|
||||||
cvar_t config_modem_clear = {"_config_modem_clear", "ATZ", true};
|
cvar_t config_modem_clear = {"_config_modem_clear", "ATZ", CVAR_ARCHIVE};
|
||||||
cvar_t config_modem_init = {"_config_modem_init", "", true};
|
cvar_t config_modem_init = {"_config_modem_init", "", CVAR_ARCHIVE};
|
||||||
cvar_t config_modem_hangup = {"_config_modem_hangup", "AT H", true};
|
cvar_t config_modem_hangup = {"_config_modem_hangup", "AT H", CVAR_ARCHIVE};
|
||||||
|
|
||||||
extern int vcrFile;
|
extern int vcrFile;
|
||||||
qboolean recording = false;
|
qboolean recording = false;
|
||||||
|
|
|
@ -99,7 +99,7 @@ float scr_conlines; // lines of console to display
|
||||||
|
|
||||||
float oldscreensize, oldfov;
|
float oldscreensize, oldfov;
|
||||||
float oldsbar;
|
float oldsbar;
|
||||||
cvar_t scr_viewsize = {"viewsize","100", true};
|
cvar_t scr_viewsize = {"viewsize","100", CVAR_ARCHIVE};
|
||||||
cvar_t scr_fov = {"fov","90"}; // 10 - 170
|
cvar_t scr_fov = {"fov","90"}; // 10 - 170
|
||||||
cvar_t scr_conspeed = {"scr_conspeed","300"};
|
cvar_t scr_conspeed = {"scr_conspeed","300"};
|
||||||
cvar_t scr_centertime = {"scr_centertime","2"};
|
cvar_t scr_centertime = {"scr_centertime","2"};
|
||||||
|
|
|
@ -47,9 +47,9 @@ solid_edge items only clip against bsp models.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
cvar_t sv_friction = {"sv_friction","4",false,true};
|
cvar_t sv_friction = {"sv_friction","4",CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t sv_stopspeed = {"sv_stopspeed","100"};
|
cvar_t sv_stopspeed = {"sv_stopspeed","100"};
|
||||||
cvar_t sv_gravity = {"sv_gravity","800",false,true};
|
cvar_t sv_gravity = {"sv_gravity","800",CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t sv_maxvelocity = {"sv_maxvelocity","2000"};
|
cvar_t sv_maxvelocity = {"sv_maxvelocity","2000"};
|
||||||
cvar_t sv_nostep = {"sv_nostep","0"};
|
cvar_t sv_nostep = {"sv_nostep","0"};
|
||||||
|
|
||||||
|
|
|
@ -178,7 +178,7 @@ void SV_UserFriction (void)
|
||||||
SV_Accelerate
|
SV_Accelerate
|
||||||
==============
|
==============
|
||||||
*/
|
*/
|
||||||
cvar_t sv_maxspeed = {"sv_maxspeed", "320", false, true};
|
cvar_t sv_maxspeed = {"sv_maxspeed", "320", CVAR_USERINFO|CVAR_SERVERINFO};
|
||||||
cvar_t sv_accelerate = {"sv_accelerate", "10"};
|
cvar_t sv_accelerate = {"sv_accelerate", "10"};
|
||||||
#if 0
|
#if 0
|
||||||
void SV_Accelerate (vec3_t wishvel)
|
void SV_Accelerate (vec3_t wishvel)
|
||||||
|
|
|
@ -42,37 +42,37 @@ when crossing a water boudnary.
|
||||||
cvar_t lcd_x = {"lcd_x", "0"}; // FIXME: make this work sometime...
|
cvar_t lcd_x = {"lcd_x", "0"}; // FIXME: make this work sometime...
|
||||||
cvar_t lcd_yaw = {"lcd_yaw", "0"};
|
cvar_t lcd_yaw = {"lcd_yaw", "0"};
|
||||||
|
|
||||||
cvar_t scr_ofsx = {"scr_ofsx", "0", false};
|
cvar_t scr_ofsx = {"scr_ofsx", "0"};
|
||||||
cvar_t scr_ofsy = {"scr_ofsy", "0", false};
|
cvar_t scr_ofsy = {"scr_ofsy", "0"};
|
||||||
cvar_t scr_ofsz = {"scr_ofsz", "0", false};
|
cvar_t scr_ofsz = {"scr_ofsz", "0"};
|
||||||
|
|
||||||
cvar_t cl_rollspeed = {"cl_rollspeed", "200"};
|
cvar_t cl_rollspeed = {"cl_rollspeed", "200"};
|
||||||
cvar_t cl_rollangle = {"cl_rollangle", "2.0"};
|
cvar_t cl_rollangle = {"cl_rollangle", "2.0"};
|
||||||
|
|
||||||
cvar_t cl_bob = {"cl_bob","0.02", false};
|
cvar_t cl_bob = {"cl_bob","0.02"};
|
||||||
cvar_t cl_bobcycle = {"cl_bobcycle","0.6", false};
|
cvar_t cl_bobcycle = {"cl_bobcycle","0.6"};
|
||||||
cvar_t cl_bobup = {"cl_bobup","0.5", false};
|
cvar_t cl_bobup = {"cl_bobup","0.5"};
|
||||||
|
|
||||||
cvar_t v_kicktime = {"v_kicktime", "0.5", false};
|
cvar_t v_kicktime = {"v_kicktime", "0.5"};
|
||||||
cvar_t v_kickroll = {"v_kickroll", "0.6", false};
|
cvar_t v_kickroll = {"v_kickroll", "0.6"};
|
||||||
cvar_t v_kickpitch = {"v_kickpitch", "0.6", false};
|
cvar_t v_kickpitch = {"v_kickpitch", "0.6"};
|
||||||
|
|
||||||
cvar_t v_iyaw_cycle = {"v_iyaw_cycle", "2", false};
|
cvar_t v_iyaw_cycle = {"v_iyaw_cycle", "2"};
|
||||||
cvar_t v_iroll_cycle = {"v_iroll_cycle", "0.5", false};
|
cvar_t v_iroll_cycle = {"v_iroll_cycle", "0.5"};
|
||||||
cvar_t v_ipitch_cycle = {"v_ipitch_cycle", "1", false};
|
cvar_t v_ipitch_cycle = {"v_ipitch_cycle", "1"};
|
||||||
cvar_t v_iyaw_level = {"v_iyaw_level", "0.3", false};
|
cvar_t v_iyaw_level = {"v_iyaw_level", "0.3"};
|
||||||
cvar_t v_iroll_level = {"v_iroll_level", "0.1", false};
|
cvar_t v_iroll_level = {"v_iroll_level", "0.1"};
|
||||||
cvar_t v_ipitch_level = {"v_ipitch_level", "0.3", false};
|
cvar_t v_ipitch_level = {"v_ipitch_level", "0.3"};
|
||||||
|
|
||||||
cvar_t v_idlescale = {"v_idlescale", "0", false};
|
cvar_t v_idlescale = {"v_idlescale", "0"};
|
||||||
|
|
||||||
cvar_t crosshair = {"crosshair", "0", true};
|
cvar_t crosshair = {"crosshair", "0", CVAR_ARCHIVE};
|
||||||
cvar_t crosshaircolor = {"crosshaircolor", "79", true};
|
cvar_t crosshaircolor = {"crosshaircolor", "79",CVAR_ARCHIVE};
|
||||||
|
|
||||||
cvar_t cl_crossx = {"cl_crossx", "0", true};
|
cvar_t cl_crossx = {"cl_crossx", "0",CVAR_ARCHIVE};
|
||||||
cvar_t cl_crossy = {"cl_crossy", "0", true};
|
cvar_t cl_crossy = {"cl_crossy", "0", CVAR_ARCHIVE};
|
||||||
|
|
||||||
cvar_t gl_cshiftpercent = {"gl_cshiftpercent", "100", false};
|
cvar_t gl_cshiftpercent = {"gl_cshiftpercent", "100"};
|
||||||
|
|
||||||
float v_dmg_time, v_dmg_roll, v_dmg_pitch;
|
float v_dmg_time, v_dmg_roll, v_dmg_pitch;
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ float V_CalcBob (void)
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
|
|
||||||
cvar_t v_centermove = {"v_centermove", "0.15", false};
|
cvar_t v_centermove = {"v_centermove", "0.15"};
|
||||||
cvar_t v_centerspeed = {"v_centerspeed","500"};
|
cvar_t v_centerspeed = {"v_centerspeed","500"};
|
||||||
|
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ cshift_t cshift_water = { {130,80,50}, 128 };
|
||||||
cshift_t cshift_slime = { {0,25,5}, 150 };
|
cshift_t cshift_slime = { {0,25,5}, 150 };
|
||||||
cshift_t cshift_lava = { {255,80,0}, 150 };
|
cshift_t cshift_lava = { {255,80,0}, 150 };
|
||||||
|
|
||||||
cvar_t v_gamma = {"gamma", "1", true};
|
cvar_t v_gamma = {"gamma", "1", CVAR_ARCHIVE};
|
||||||
|
|
||||||
byte gammatable[256]; // palette is sent through this
|
byte gammatable[256]; // palette is sent through this
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue