mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-11 15:52:30 +00:00
MOre spec tweaks and a scoreboard fix
This commit is contained in:
parent
ae001e4294
commit
b718d0169d
2 changed files with 20 additions and 10 deletions
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.18 2002/03/30 02:54:24 jbravo
|
||||
// MOre spec tweaks and a scoreboard fix
|
||||
//
|
||||
// Revision 1.17 2002/03/24 22:57:27 niceass
|
||||
// VERY big scoreboard changes
|
||||
//
|
||||
|
@ -269,10 +272,12 @@ static int CG_TeamplayScoreboard(void)
|
|||
}
|
||||
|
||||
y += 2;
|
||||
if (Reds) {
|
||||
Com_sprintf(Tmp, 128, "%4d %5d %6d", (int)((float)Ping / (float)Reds), Frags, Damage);
|
||||
DrawStrip(y, SB_FONTSIZEH, qtrue, qtrue, qtrue, GreyL, Black);
|
||||
DrawLeftStripText(y, SB_FONTSIZEH, "Averages/Totals:", 100, White);
|
||||
DrawRightStripText(y, SB_FONTSIZEH, Tmp, 100, White);
|
||||
}
|
||||
y += SB_FONTSIZEH+SB_PADDING*2;
|
||||
|
||||
// *************** BLUE TEAM ************
|
||||
|
@ -315,10 +320,12 @@ static int CG_TeamplayScoreboard(void)
|
|||
}
|
||||
|
||||
y += 2;
|
||||
if (Blues) {
|
||||
Com_sprintf(Tmp, 128, "%4d %5d %6d", (int)((float)Ping / (float)Blues), Frags, Damage );
|
||||
DrawStrip(y, SB_FONTSIZEH, qtrue, qtrue, qtrue, GreyL, Black);
|
||||
DrawLeftStripText(y, SB_FONTSIZEH, "Averages/Totals:", 100, White);
|
||||
DrawRightStripText(y, SB_FONTSIZEH, Tmp, 100, White);
|
||||
}
|
||||
y += SB_FONTSIZEH+SB_PADDING*2;
|
||||
|
||||
// *************** SPECTATORS ************
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.64 2002/03/30 02:54:24 jbravo
|
||||
// MOre spec tweaks and a scoreboard fix
|
||||
//
|
||||
// Revision 1.63 2002/03/30 02:29:43 jbravo
|
||||
// Lots of spectator code updates. Removed debugshit, added some color.
|
||||
//
|
||||
|
@ -580,7 +583,7 @@ void SpectatorThink( gentity_t *ent, usercmd_t *ucmd ) {
|
|||
|
||||
// Attack Button cycles throught free view, follow or zcam
|
||||
if((ucmd->buttons & BUTTON_ATTACK) && !(client->oldbuttons & BUTTON_ATTACK)) {
|
||||
if (client->sess.spectatorState == SPECTATOR_FREE) {
|
||||
if (client->sess.spectatorState == SPECTATOR_FREE && OKtoFollow(clientNum)) {
|
||||
client->sess.spectatorState = SPECTATOR_ZCAM;
|
||||
client->specMode = SPECTATOR_ZCAM;
|
||||
client->ps.stats[STAT_RQ3] |= RQ3_ZCAM;
|
||||
|
@ -594,7 +597,7 @@ void SpectatorThink( gentity_t *ent, usercmd_t *ucmd ) {
|
|||
client->ps.stats[STAT_RQ3] &= ~RQ3_ZCAM;
|
||||
Cmd_FollowCycle_f(ent, 1);
|
||||
RQ3_SpectatorMode(ent);
|
||||
} else {
|
||||
} else if (client->sess.spectatorState == SPECTATOR_FOLLOW) {
|
||||
client->sess.spectatorState = SPECTATOR_FREE;
|
||||
client->specMode = SPECTATOR_FREE;
|
||||
client->ps.pm_flags &= ~PMF_FOLLOW;
|
||||
|
|
Loading…
Reference in a new issue