mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-27 06:22:27 +00:00
Fixed weapon and item respawning after death in TP
This commit is contained in:
parent
75294e8dbe
commit
dde93f39f4
1 changed files with 14 additions and 0 deletions
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $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
|
||||
// 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 numRemoved = 0;
|
||||
|
||||
// JBravo: no resetting/respawning weapons and items in TP
|
||||
if (g_gametype.integer == GT_TEAMPLAY)
|
||||
return;
|
||||
|
||||
switch (weapon) {
|
||||
case WP_M3:
|
||||
c = "weapon_m3";
|
||||
|
@ -1443,6 +1450,9 @@ void RQ3_DroppedItemThink(gentity_t * ent)
|
|||
// gentity_t *rq3_temp;
|
||||
// float angle = rand() % 360;
|
||||
|
||||
// JBravo: no resetting items in TP
|
||||
if (g_gametype.integer == GT_TEAMPLAY)
|
||||
return;
|
||||
switch (ent->item->giTag) {
|
||||
case HI_KEVLAR:
|
||||
case HI_LASER:
|
||||
|
@ -1476,6 +1486,10 @@ void RQ3_ResetItem(int itemTag)
|
|||
gentity_t *rq3_temp;
|
||||
float angle = rand() % 360;
|
||||
|
||||
// JBravo: no resetting items in TP
|
||||
if (g_gametype.integer == GT_TEAMPLAY)
|
||||
return;
|
||||
|
||||
switch (itemTag) {
|
||||
case HI_KEVLAR:
|
||||
case HI_LASER:
|
||||
|
|
Loading…
Reference in a new issue