Players can now use the kill cmd, plummet and kill teammates after rounds in

tp without loosing frags.
This commit is contained in:
Richard Allen 2002-08-27 07:50:55 +00:00
parent 3d32afa310
commit f5c7b279a5
2 changed files with 11 additions and 2 deletions

View File

@ -55,6 +55,7 @@
* Removed the cd key menu * Removed the cd key menu
* Fixed dropped weapons and items blocking doors and other movers. * Fixed dropped weapons and items blocking doors and other movers.
* Added ref say command to talk to everyone, dead or alive * Added ref say command to talk to everyone, dead or alive
* Players can now use the kill cmd, plummet and kill teammates after rounds in tp without loosing frags.

View File

@ -5,6 +5,10 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// //
// $Log$ // $Log$
// Revision 1.122 2002/08/27 07:50:55 jbravo
// Players can now use the kill cmd, plummet and kill teammates after rounds in
// tp without loosing frags.
//
// Revision 1.121 2002/08/27 01:25:22 jbravo // Revision 1.121 2002/08/27 01:25:22 jbravo
// Fixed scoring in TOURNAMENT mode and made it a legit gametype. // Fixed scoring in TOURNAMENT mode and made it a legit gametype.
// //
@ -1302,7 +1306,9 @@ void player_die(gentity_t * self, gentity_t * inflictor, gentity_t * attacker, i
ResetKills(self); ResetKills(self);
// JBravo: make it OK to frag teammates after rounds are over. // JBravo: make it OK to frag teammates after rounds are over.
if (attacker == self) { if (attacker == self) {
AddScore(attacker, self->r.currentOrigin, -1); if (g_gametype.integer == GT_TEAMPLAY && !level.team_round_going) {
} else
AddScore(attacker, self->r.currentOrigin, -1);
} else if (OnSameTeam(self, attacker)) { } else if (OnSameTeam(self, attacker)) {
if (g_gametype.integer == GT_TEAMPLAY && level.team_round_going) { if (g_gametype.integer == GT_TEAMPLAY && level.team_round_going) {
AddScore(attacker, self->r.currentOrigin, -1); AddScore(attacker, self->r.currentOrigin, -1);
@ -1372,7 +1378,9 @@ void player_die(gentity_t * self, gentity_t * inflictor, gentity_t * attacker, i
attacker->client->lastKillTime = level.time; attacker->client->lastKillTime = level.time;
} }
} else { } else {
AddScore(self, self->r.currentOrigin, -1); if (g_gametype.integer == GT_TEAMPLAY && !level.team_round_going) {
} else
AddScore(self, self->r.currentOrigin, -1);
} }
// Add team bonuses // Add team bonuses