//=============================================================================
+cvar_t demo_nehahra = {"demo_nehahra", "0"};
+
+void CL_Parse_Init(void)
+{
+ // LordHavoc: added demo_nehahra cvar
+ Cvar_RegisterVariable (&demo_nehahra);
+ if (nehahra)
+ Cvar_SetValue("demo_nehahra", 1);
+}
+
qboolean Nehahrademcompatibility; // LordHavoc: to allow playback of the early Nehahra movie segments
qboolean dpprotocol; // LordHavoc: whether or not the current network stream is the enhanced DarkPlaces protocol
SZ_Clear (&cls.message);
}
-extern qboolean isworldmodel;
-extern char skyname[];
-extern void R_SetSkyBox (char *sky);
-extern void FOG_clear();
-extern cvar_t r_farclip;
-
void CL_ParseEntityLump(char *entdata)
{
char *data;
char wadname[128];
int i, j, k;
FOG_clear(); // LordHavoc: no fog until set
- skyname[0] = 0; // LordHavoc: no enviroment mapped sky until set
+ R_SetSkyBox(""); // LordHavoc: no enviroment mapped sky until set
r_farclip.value = 6144; // LordHavoc: default farclip distance
data = entdata;
if (!data)
CL_ParseServerInfo
==================
*/
-extern cvar_t demo_nehahra;
void CL_ParseServerInfo (void)
{
char *str;
bitprofilecount = 0;
}
-void CL_EntityUpdateSetup()
+void CL_EntityUpdateSetup(void)
{
memset(entkill, 1, MAX_EDICTS);
}
-void CL_EntityUpdateEnd()
+void CL_EntityUpdateEnd(void)
{
int i;
for (i = 1;i < MAX_EDICTS;i++)
ent->render.alpha = 1;
ent->render.scale = 1;
ent->render.alpha = 1;
- ent->render.glowsize = 0;
- ent->render.glowcolor = 254;
ent->render.colormod[0] = ent->render.colormod[1] = ent->render.colormod[2] = 1;
VectorCopy (ent->state_baseline.origin, ent->render.origin);
#define SHOWNET(x) if(cl_shownet.value==2)Con_Printf ("%3i:%s\n", msg_readcount-1, x);
-extern void SHOWLMP_decodehide();
-extern void SHOWLMP_decodeshow();
-extern void R_SetSkyBox(char* sky);
-extern int netshown;
-
/*
=====================
CL_ParseServerMessage
// if recording demos, copy the message out
//
if (cl_shownet.value == 1)
- {
Con_Printf ("%i ",net_message.cursize);
- netshown = true;
- }
else if (cl_shownet.value == 2)
- {
Con_Printf ("------------------\n");
- netshown = true;
- }
cl.onground = false; // unless the server says otherwise
//