mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
This one's for Mercury :) (cvar control of pmodel and emodel)
This commit is contained in:
parent
a0796826ee
commit
652069d3f2
3 changed files with 9 additions and 1 deletions
|
@ -301,6 +301,8 @@ extern struct cvar_s *m_side;
|
|||
|
||||
extern struct cvar_s *cl_name;
|
||||
|
||||
extern struct cvar_s *cl_model_crcs;
|
||||
|
||||
|
||||
#define MAX_STATIC_ENTITIES 128 // torches, etc
|
||||
|
||||
|
|
|
@ -134,6 +134,8 @@ cvar_t *cl_cshift_contents;
|
|||
cvar_t *cl_cshift_damage;
|
||||
cvar_t *cl_cshift_powerup;
|
||||
|
||||
cvar_t *cl_model_crcs;
|
||||
|
||||
cvar_t *lookspring;
|
||||
|
||||
cvar_t *m_pitch;
|
||||
|
@ -1197,6 +1199,10 @@ CL_Init (void)
|
|||
void
|
||||
CL_Init_Cvars (void)
|
||||
{
|
||||
cl_model_crcs = Cvar_Get ("cl_model_crcs", "1", CVAR_ARCHIVE, NULL,
|
||||
"Controls setting of emodel and pmodel info vars. Required by some "
|
||||
"servers, but clearing this can make the difference between "
|
||||
"connecting and not connecting on some others.");
|
||||
confirm_quit = Cvar_Get ("confirm_quit", "1", CVAR_ARCHIVE, NULL,
|
||||
"confirm quit command");
|
||||
cl_allow_cmd_pkt = Cvar_Get ("cl_allow_cmd_pkt", "1", CVAR_NONE, NULL,
|
||||
|
|
|
@ -297,7 +297,7 @@ Model_NextDownload (void)
|
|||
&& cl.model_precache[i]->type == mod_alias)
|
||||
info_key = emodel_name;
|
||||
|
||||
if (info_key) {
|
||||
if (info_key && cl_model_crcs->int_val) {
|
||||
aliashdr_t *ahdr = (aliashdr_t *) Mod_Extradata (cl.model_precache[i]);
|
||||
Info_SetValueForKey (cls.userinfo, info_key, va ("%d", ahdr->crc),
|
||||
MAX_INFO_STRING);
|
||||
|
|
Loading…
Reference in a new issue