mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-10 23:32:06 +00:00
In FFA, any items you are holding should be dropped back at random spawn points
This commit is contained in:
parent
701683aa09
commit
40b969014e
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue