Fixed weapon and item respawning after death in TP

This commit is contained in:
Richard Allen 2002-06-17 04:02:24 +00:00
parent 75294e8dbe
commit dde93f39f4

View file

@ -5,6 +5,9 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// //
// $Log$ // $Log$
// Revision 1.41 2002/06/17 04:02:24 jbravo
// Fixed weapon and item respawning after death in TP
//
// Revision 1.40 2002/06/16 20:06:14 jbravo // Revision 1.40 2002/06/16 20:06:14 jbravo
// Reindented all the source files with "indent -kr -ut -i8 -l120 -lc120 -sob -bad -bap" // Reindented all the source files with "indent -kr -ut -i8 -l120 -lc120 -sob -bad -bap"
// //
@ -1377,6 +1380,10 @@ void RQ3_ResetWeapon(int weapon)
int numRespawned = 0; int numRespawned = 0;
int numRemoved = 0; int numRemoved = 0;
// JBravo: no resetting/respawning weapons and items in TP
if (g_gametype.integer == GT_TEAMPLAY)
return;
switch (weapon) { switch (weapon) {
case WP_M3: case WP_M3:
c = "weapon_m3"; c = "weapon_m3";
@ -1443,6 +1450,9 @@ void RQ3_DroppedItemThink(gentity_t * ent)
// gentity_t *rq3_temp; // gentity_t *rq3_temp;
// float angle = rand() % 360; // float angle = rand() % 360;
// JBravo: no resetting items in TP
if (g_gametype.integer == GT_TEAMPLAY)
return;
switch (ent->item->giTag) { switch (ent->item->giTag) {
case HI_KEVLAR: case HI_KEVLAR:
case HI_LASER: case HI_LASER:
@ -1476,6 +1486,10 @@ void RQ3_ResetItem(int itemTag)
gentity_t *rq3_temp; gentity_t *rq3_temp;
float angle = rand() % 360; float angle = rand() % 360;
// JBravo: no resetting items in TP
if (g_gametype.integer == GT_TEAMPLAY)
return;
switch (itemTag) { switch (itemTag) {
case HI_KEVLAR: case HI_KEVLAR:
case HI_LASER: case HI_LASER: