spectator changes

This commit is contained in:
Bryce Hutchings 2002-06-03 05:25:37 +00:00
parent b895f64faf
commit 7fcca121ee
4 changed files with 25 additions and 12 deletions

View File

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.44 2002/06/03 05:23:47 niceass
// spectator changes
//
// Revision 1.43 2002/06/03 00:48:32 niceass
// match scoreboard changes
//
@ -2489,20 +2492,21 @@ static void CG_DrawSpectator(void) {
}
}
CG_FillRect( 0, 400, 640, 80, Color );
CG_FillRect( 0, 420, 640, 60, Color );
MAKERGBA(Color, 0.0f, 0.0f, 0.0f, 1.0f);
CG_DrawCleanLine(0, 400, 640, 1, Color);
CG_DrawCleanLine(0, 420, 640, 1, Color);
CG_DrawBigString(320 - 10 * 8, 410, "Spectating", 1.0F);
CG_DrawBigString(320 - 10 * 8, 425, "Spectating", 1.0F);
if (cg.snap->ps.persistant[PERS_SAVEDTEAM] == TEAM_RED || cg.snap->ps.persistant[PERS_SAVEDTEAM] == TEAM_BLUE) return;
if (cg.snap->ps.persistant[PERS_SAVEDTEAM] == TEAM_RED ||
cg.snap->ps.persistant[PERS_SAVEDTEAM] == TEAM_BLUE) return;
if ( cgs.gametype == GT_TOURNAMENT ) {
CG_DrawBigString(320 - 15 * 8, 450, "Waiting to play...", 1.0F);
CG_DrawBigString(320 - 15 * 8, 455, "Waiting to play...", 1.0F);
}
else if ( cgs.gametype >= GT_TEAM ) {
CG_DrawBigString(320 - 19 * 8, 450, "Join a team to play", 1.0F);
CG_DrawBigString(320 - 19 * 8, 455, "Join a team to play", 1.0F);
}
}

View File

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.20 2002/06/03 05:23:22 niceass
// spectator changes
//
// Revision 1.19 2002/03/31 03:31:24 jbravo
// Compiler warning cleanups
//
@ -479,10 +482,10 @@ void CG_PredictPlayerState( void ) {
cg_pmove.tracemask = MASK_PLAYERSOLID;
}
if ( cg.snap->ps.persistant[PERS_TEAM] == TEAM_SPECTATOR ) {
cg_pmove.tracemask &= ~CONTENTS_BODY; // spectators can fly through bodies
cg_pmove.tracemask = 0; // NiceAss: spectators can fly through everything
}
// JBravo: fixing telefragging and shit during spawing (Thanks NiceAss! :)
// JBravo: fixing telefragging and shit during spawing (Thanks NiceAss! :)
if ((cg.snap->ps.stats[STAT_RQ3] & RQ3_PLAYERSOLID) != RQ3_PLAYERSOLID) {
cg_pmove.tracemask &= ~CONTENTS_BODY;
}

View File

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.74 2002/06/03 05:25:37 niceass
// spectator changes
//
// Revision 1.73 2002/05/21 04:58:27 blaze
// kicked the reload bugs ass!
//
@ -502,11 +505,11 @@ void G_TouchTriggers( gentity_t *ent ) {
// ignore most entities if a spectator
if ( ent->client->sess.sessionTeam == TEAM_SPECTATOR ) {
if ( hit->s.eType != ET_TELEPORT_TRIGGER &&
if ( hit->s.eType != ET_TELEPORT_TRIGGER ) { //&&
// this is ugly but adding a new ET_? type will
// most likely cause network incompatibilities
// NiceAss: changed Touch_DoorTrigger to Touch_DoorTriggerSpectator
hit->touch != Touch_DoorTriggerSpectator) {
// hit->touch != Touch_DoorTriggerSpectator) {
continue;
}
}
@ -573,7 +576,7 @@ void SpectatorThink( gentity_t *ent, usercmd_t *ucmd ) {
memset (&pm, 0, sizeof(pm));
pm.ps = &client->ps;
pm.cmd = *ucmd;
pm.tracemask = MASK_PLAYERSOLID & ~CONTENTS_BODY; // spectators can fly through bodies
pm.tracemask = 0; // spectators can fly through bodies
pm.trace = trap_Trace;
pm.pointcontents = trap_PointContents;

View File

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.87 2002/06/03 05:24:31 niceass
// spectator changes
//
// Revision 1.86 2002/05/31 18:17:10 makro
// Bot stuff. Added a server command that prints a line to a client
// and everyone who is spectating him
@ -899,7 +902,7 @@ gentity_t *fire_prox( gentity_t *self, vec3_t start, vec3_t aimdir );
//
void G_RunMover( gentity_t *ent );
void Touch_DoorTrigger( gentity_t *ent, gentity_t *other, trace_t *trace );
void Touch_DoorTriggerSpectator( gentity_t *ent, gentity_t *other, trace_t *trace ); // NiceAss: Added
//void Touch_DoorTriggerSpectator( gentity_t *ent, gentity_t *other, trace_t *trace ); // NiceAss: Added
//
// g_trigger.c