mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-23 12:42:36 +00:00
scores / +scores
This commit is contained in:
parent
8c85d99618
commit
71a4c5d261
1 changed files with 13 additions and 4 deletions
|
@ -309,7 +309,7 @@ static void CG_PlayerOrigin_f(void)
|
||||||
(int) cg.snap->ps.origin[1], (int) cg.snap->ps.origin[2]);
|
(int) cg.snap->ps.origin[1], (int) cg.snap->ps.origin[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
static void CG_ScoresDown_f( void ) {
|
static void CG_ScoresDown_f( void ) {
|
||||||
|
|
||||||
if ( cg.time - cg.scoreFadeTime < 500 && !cg.showScores)
|
if ( cg.time - cg.scoreFadeTime < 500 && !cg.showScores)
|
||||||
|
@ -321,7 +321,7 @@ static void CG_ScoresDown_f( void ) {
|
||||||
if ( !cg.showScores ) cg.scoreStartTime = cg.time;
|
if ( !cg.showScores ) cg.scoreStartTime = cg.time;
|
||||||
|
|
||||||
if ( cg.scoresRequestTime + 2000 < cg.time ) {
|
if ( cg.scoresRequestTime + 2000 < cg.time ) {
|
||||||
// the scores are more than two seconds out of data,
|
// the scores are more than two seconds out of date,
|
||||||
// so request new ones
|
// so request new ones
|
||||||
cg.scoresRequestTime = cg.time;
|
cg.scoresRequestTime = cg.time;
|
||||||
trap_SendClientCommand( "score" );
|
trap_SendClientCommand( "score" );
|
||||||
|
@ -338,7 +338,15 @@ static void CG_ScoresDown_f( void ) {
|
||||||
cg.showScores = qtrue;
|
cg.showScores = qtrue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
|
static void CG_ScoresUp_f( void ) {
|
||||||
|
if ( cg.showScores ) {
|
||||||
|
cg.showScores = qfalse;
|
||||||
|
cg.scoreFadeTime = cg.time;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void CG_Scores_f(void)
|
static void CG_Scores_f(void)
|
||||||
{
|
{
|
||||||
|
@ -636,7 +644,8 @@ static consoleCommand_t commands[] = {
|
||||||
{"prevskin", CG_TestModelPrevSkin_f},
|
{"prevskin", CG_TestModelPrevSkin_f},
|
||||||
{"viewpos", CG_Viewpos_f},
|
{"viewpos", CG_Viewpos_f},
|
||||||
{"playerorigin", CG_PlayerOrigin_f},
|
{"playerorigin", CG_PlayerOrigin_f},
|
||||||
//{ "+scores", CG_ScoresDown_f },
|
{"+scores", CG_ScoresDown_f },
|
||||||
|
{ "-scores", CG_ScoresUp_f },
|
||||||
{"scores", CG_Scores_f},
|
{"scores", CG_Scores_f},
|
||||||
/* { "+zoom", CG_ZoomDown_f }, // hawkins not needed in Reaction
|
/* { "+zoom", CG_ZoomDown_f }, // hawkins not needed in Reaction
|
||||||
{ "-zoom", CG_ZoomUp_f },*/
|
{ "-zoom", CG_ZoomUp_f },*/
|
||||||
|
|
Loading…
Reference in a new issue