mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2025-02-16 09:11:11 +00:00
Don't add points in domination after intermission starts.
This commit is contained in:
parent
b053cc7144
commit
d1c5c322ed
3 changed files with 23 additions and 0 deletions
|
@ -1241,6 +1241,9 @@ void BeginIntermission( void ) {
|
|||
// send the current scoring to all clients
|
||||
SendScoreboardMessageToAllClients();
|
||||
|
||||
// Q3Rally Code Start
|
||||
Team_EndGame();
|
||||
// Q3Rally Code END
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -98,6 +98,23 @@ void Team_InitGame( void ) {
|
|||
}
|
||||
}
|
||||
|
||||
// Q3Rally Code Start
|
||||
void Team_EndGame( void ) {
|
||||
// stop adding score when intermission starts
|
||||
if ( g_gametype.integer == GT_DOMINATION ) {
|
||||
if( teamgame.sigil[0].entity ) {
|
||||
teamgame.sigil[0].entity->nextthink = 0;
|
||||
}
|
||||
if( teamgame.sigil[1].entity ) {
|
||||
teamgame.sigil[1].entity->nextthink = 0;
|
||||
}
|
||||
if( teamgame.sigil[2].entity ) {
|
||||
teamgame.sigil[2].entity->nextthink = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
// Q3Rally Code END
|
||||
|
||||
int OtherTeam(int team) {
|
||||
if (team==TEAM_RED)
|
||||
return TEAM_BLUE;
|
||||
|
|
|
@ -77,6 +77,9 @@ void Team_DroppedFlagThink(gentity_t *ent);
|
|||
void Team_FragBonuses(gentity_t *targ, gentity_t *inflictor, gentity_t *attacker);
|
||||
void Team_CheckHurtCarrier(gentity_t *targ, gentity_t *attacker);
|
||||
void Team_InitGame(void);
|
||||
// Q3Rally Code Start
|
||||
void Team_EndGame(void);
|
||||
// Q3Rally Code END
|
||||
void Team_ReturnFlag(int team);
|
||||
void Team_FreeEntity(gentity_t *ent);
|
||||
gentity_t *SelectCTFSpawnPoint ( team_t team, int teamstate, vec3_t origin, vec3_t angles, qboolean isbot );
|
||||
|
|
Loading…
Reference in a new issue