mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-02-22 19:51:48 +00:00
DM team none was missing a suicide.
This commit is contained in:
parent
c5fecc7474
commit
4bd753c157
1 changed files with 10 additions and 0 deletions
|
@ -5,6 +5,9 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.186 2003/04/09 20:57:21 jbravo
|
||||||
|
// DM team none was missing a suicide.
|
||||||
|
//
|
||||||
// Revision 1.185 2003/04/09 02:00:43 jbravo
|
// Revision 1.185 2003/04/09 02:00:43 jbravo
|
||||||
// Fixed team none in DM and some final cleanups for the 3.0 release
|
// Fixed team none in DM and some final cleanups for the 3.0 release
|
||||||
//
|
//
|
||||||
|
@ -1139,6 +1142,13 @@ void SetTeam(gentity_t * ent, char *s)
|
||||||
player_die(ent, ent, ent, 100000, MOD_SUICIDE);
|
player_die(ent, ent, ent, 100000, MOD_SUICIDE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// JBravo: DM players switching to spectators should also die.
|
||||||
|
if (g_gametype.integer == GT_FFA && team == TEAM_SPECTATOR && client->ps.pm_type == PM_NORMAL) {
|
||||||
|
ent->flags &= ~FL_GODMODE;
|
||||||
|
ent->client->ps.stats[STAT_HEALTH] = ent->health = 0;
|
||||||
|
player_die(ent, ent, ent, 100000, MOD_SUICIDE);
|
||||||
|
}
|
||||||
|
|
||||||
// JBravo: lets set the correct var here.
|
// JBravo: lets set the correct var here.
|
||||||
if (g_gametype.integer >= GT_TEAM) {
|
if (g_gametype.integer >= GT_TEAM) {
|
||||||
client->sess.savedTeam = team;
|
client->sess.savedTeam = team;
|
||||||
|
|
Loading…
Reference in a new issue