In FFA, any items you are holding should be dropped back at random spawn points

This commit is contained in:
Scott Brooks 2009-06-23 02:14:05 +00:00
parent 701683aa09
commit 40b969014e

View file

@ -1514,6 +1514,15 @@ void player_die(gentity_t * self, gentity_t * inflictor, gentity_t * attacker, i
} else if (self->client->ps.powerups[PW_BLUEFLAG]) { // only happens in standard CTF
Team_ReturnFlag(TEAM_BLUE);
}
} else if ( g_gametype.integer == GT_FFA ) {
int i=0;
for (i=0; i < HI_NUM_HOLDABLE; i++)
{
if ( self->client->ps.stats[STAT_HOLDABLE_ITEM] & (1<< i))
{
RQ3_ResetItem(i);
}
}
}
}