Zcam tewaking

This commit is contained in:
Richard Allen 2002-03-03 02:04:15 +00:00
parent d83f5bb879
commit 440a4a69f5
2 changed files with 18 additions and 3 deletions

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.65 2002/03/03 02:04:14 jbravo
// Zcam tewaking
//
// Revision 1.64 2002/03/02 14:54:24 jbravo
// Added the skin and model names to the name of the player thats being
// followed, as in AQ
@ -882,6 +885,8 @@ void StopFollowing( gentity_t *ent ) {
ent->client->ps.persistant[ PERS_TEAM ] = TEAM_SPECTATOR;
ent->client->sess.sessionTeam = TEAM_SPECTATOR;
ent->client->sess.spectatorState = SPECTATOR_FREE;
// ent->client->sess.spectatorState = SPECTATOR_ZCAM;
// ent->client->ps.stats[STAT_RQ3] |= RQ3_ZCAM;
//Slicer - Removing any zoom bits he might have gainned
Cmd_Unzoom(ent);
ent->client->ps.pm_flags &= ~PMF_FOLLOW;

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.7 2002/03/03 02:04:15 jbravo
// Zcam tewaking
//
// Revision 1.6 2002/02/10 18:38:42 jbravo
// Added new SPECTATOR_ZCAM spec mode.
//
@ -224,11 +227,18 @@ static int NumPlayers (void)
for (i = 0; i < level.maxclients; i++)
{
if (level.clients[i].pers.connected == CON_CONNECTED
&& level.clients[i].sess.sessionTeam != TEAM_SPECTATOR)
{
// JBravo: zcam team fixes
if (g_gametype.integer == GT_TEAMPLAY) {
if (level.clients[i].pers.connected == CON_CONNECTED
&& level.clients[i].sess.savedTeam != TEAM_SPECTATOR) {
count ++;
}
} else {
if (level.clients[i].pers.connected == CON_CONNECTED
&& level.clients[i].sess.sessionTeam != TEAM_SPECTATOR) {
count ++;
}
}
}
return count;
}