Make cl_shownet 3 a bit more verbose.
This commit is contained in:
parent
2b17f90b28
commit
0a565b1186
2 changed files with 29 additions and 8 deletions
|
@ -5731,6 +5731,9 @@ static void CL_ParseSetInfo (void)
|
||||||
{
|
{
|
||||||
player = &cl.players[slot];
|
player = &cl.players[slot];
|
||||||
|
|
||||||
|
if (cl_shownet.value == 3)
|
||||||
|
Con_Printf("\t%i(%s): %s=\"%s\"\n", slot, player->name, key, val);
|
||||||
|
else
|
||||||
Con_DLPrintf(strcmp(key, "chat")?1:2,"SETINFO %s: %s=%s\n", player->name, key, val);
|
Con_DLPrintf(strcmp(key, "chat")?1:2,"SETINFO %s: %s=%s\n", player->name, key, val);
|
||||||
|
|
||||||
InfoBuf_SetStarKey(&player->userinfo, key, val);
|
InfoBuf_SetStarKey(&player->userinfo, key, val);
|
||||||
|
@ -5755,6 +5758,9 @@ static void CL_ServerInfo (void)
|
||||||
Q_strncpyz (key, MSG_ReadString(), sizeof(key));
|
Q_strncpyz (key, MSG_ReadString(), sizeof(key));
|
||||||
Q_strncpyz (value, MSG_ReadString(), sizeof(value));
|
Q_strncpyz (value, MSG_ReadString(), sizeof(value));
|
||||||
|
|
||||||
|
if (cl_shownet.value == 3)
|
||||||
|
Con_Printf("\t%s=%s\n", key, value);
|
||||||
|
else
|
||||||
Con_DPrintf("SERVERINFO: %s=%s\n", key, value);
|
Con_DPrintf("SERVERINFO: %s=%s\n", key, value);
|
||||||
|
|
||||||
InfoBuf_SetStarKey(&cl.serverinfo, key, value);
|
InfoBuf_SetStarKey(&cl.serverinfo, key, value);
|
||||||
|
@ -5914,6 +5920,9 @@ static void CL_SetStatNumeric (int pnum, int stat, int ivalue, float fvalue)
|
||||||
cl.players[cls_lastto].stats[stat]=ivalue;
|
cl.players[cls_lastto].stats[stat]=ivalue;
|
||||||
cl.players[cls_lastto].statsf[stat]=fvalue;
|
cl.players[cls_lastto].statsf[stat]=fvalue;
|
||||||
|
|
||||||
|
if (cl_shownet.value == 3)
|
||||||
|
Con_Printf("\t%i: %i=%g\n", cls_lastto, stat, fvalue);
|
||||||
|
|
||||||
for (pnum = 0; pnum < cl.splitclients; pnum++)
|
for (pnum = 0; pnum < cl.splitclients; pnum++)
|
||||||
if (cl.playerview[pnum].cam_spec_track == cls_lastto && cl.playerview[pnum].cam_state != CAM_FREECAM)
|
if (cl.playerview[pnum].cam_spec_track == cls_lastto && cl.playerview[pnum].cam_state != CAM_FREECAM)
|
||||||
CL_SetStat_Internal(pnum, stat, ivalue, fvalue);
|
CL_SetStat_Internal(pnum, stat, ivalue, fvalue);
|
||||||
|
@ -5927,6 +5936,9 @@ static void CL_SetStatNumeric (int pnum, int stat, int ivalue, float fvalue)
|
||||||
cl.players[pl].statsf[stat]=fvalue;
|
cl.players[pl].statsf[stat]=fvalue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cl_shownet.value == 3)
|
||||||
|
Con_Printf("\t%i(%i): %i=%g\n", pnum, pl, stat, fvalue);
|
||||||
|
|
||||||
CL_SetStat_Internal(pnum, stat, ivalue, fvalue);
|
CL_SetStat_Internal(pnum, stat, ivalue, fvalue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7440,7 +7452,10 @@ void CLQW_ParseServerMessage (void)
|
||||||
i = MSG_ReadByte ();
|
i = MSG_ReadByte ();
|
||||||
if (i >= MAX_NET_LIGHTSTYLES)
|
if (i >= MAX_NET_LIGHTSTYLES)
|
||||||
Host_EndGame ("svc_lightstyle > MAX_LIGHTSTYLES");
|
Host_EndGame ("svc_lightstyle > MAX_LIGHTSTYLES");
|
||||||
R_UpdateLightStyle(i, MSG_ReadString(), 1, 1, 1);
|
s = MSG_ReadString();
|
||||||
|
if (cl_shownet.value == 3)
|
||||||
|
Con_Printf("\t%i=\"%s\"\n", i, s);
|
||||||
|
R_UpdateLightStyle(i, s, 1, 1, 1);
|
||||||
break;
|
break;
|
||||||
#ifdef PEXT_LIGHTSTYLECOL
|
#ifdef PEXT_LIGHTSTYLECOL
|
||||||
case svcfte_lightstylecol:
|
case svcfte_lightstylecol:
|
||||||
|
@ -7891,7 +7906,7 @@ void CLQ2_ParseServerMessage (void)
|
||||||
//
|
//
|
||||||
if (cl_shownet.value == 1)
|
if (cl_shownet.value == 1)
|
||||||
Con_Printf ("%i ",net_message.cursize);
|
Con_Printf ("%i ",net_message.cursize);
|
||||||
else if (cl_shownet.value == 2)
|
else if (cl_shownet.value >= 2)
|
||||||
Con_Printf ("------------------\n");
|
Con_Printf ("------------------\n");
|
||||||
|
|
||||||
|
|
||||||
|
@ -8281,7 +8296,7 @@ void CLNQ_ParseServerMessage (void)
|
||||||
//
|
//
|
||||||
if (cl_shownet.value == 1)
|
if (cl_shownet.value == 1)
|
||||||
Con_Printf ("%i ",net_message.cursize);
|
Con_Printf ("%i ",net_message.cursize);
|
||||||
else if (cl_shownet.value == 2)
|
else if (cl_shownet.value >= 2)
|
||||||
Con_Printf ("------------------\n");
|
Con_Printf ("------------------\n");
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -9841,7 +9841,9 @@ void CSQC_ParseEntities(qboolean sized)
|
||||||
|
|
||||||
CSQC_EntityCheck(entnum);
|
CSQC_EntityCheck(entnum);
|
||||||
|
|
||||||
if (cl_csqcdebug.ival)
|
if (cl_shownet.ival == 3)
|
||||||
|
Con_Printf("%3i: Remove %i\n", MSG_GetReadCount(), entnum);
|
||||||
|
else if (cl_csqcdebug.ival)
|
||||||
Con_Printf("Remove %i\n", entnum);
|
Con_Printf("Remove %i\n", entnum);
|
||||||
|
|
||||||
ent = csqcent[entnum];
|
ent = csqcent[entnum];
|
||||||
|
@ -9887,13 +9889,17 @@ void CSQC_ParseEntities(qboolean sized)
|
||||||
|
|
||||||
G_FLOAT(OFS_PARM0) = true;
|
G_FLOAT(OFS_PARM0) = true;
|
||||||
|
|
||||||
if (cl_csqcdebug.ival)
|
if (cl_shownet.ival == 3)
|
||||||
|
Con_Printf("%3i: Added %i (%i)\n", MSG_GetReadCount(), entnum, packetsize);
|
||||||
|
else if (cl_csqcdebug.ival)
|
||||||
Con_Printf("Add %i\n", entnum);
|
Con_Printf("Add %i\n", entnum);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
G_FLOAT(OFS_PARM0) = false;
|
G_FLOAT(OFS_PARM0) = false;
|
||||||
if (cl_csqcdebug.ival)
|
if (cl_shownet.ival == 3)
|
||||||
|
Con_Printf("%3i: Update %i (%i)\n", MSG_GetReadCount(), entnum, packetsize);
|
||||||
|
else if (cl_csqcdebug.ival)
|
||||||
Con_Printf("Update %i\n", entnum);
|
Con_Printf("Update %i\n", entnum);
|
||||||
}
|
}
|
||||||
#ifdef QUAKESTATS
|
#ifdef QUAKESTATS
|
||||||
|
|
Loading…
Reference in a new issue