mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
Add score bonus for defending the flag carrier in 1 Flag CTF
Set flag_pw to neutral flag instead of using CTF value for red or blue flag so that flag carrier is detected correctly.
This commit is contained in:
parent
13831f9569
commit
5f2e4a03c5
1 changed files with 7 additions and 0 deletions
|
@ -300,6 +300,7 @@ void Team_FragBonuses(gentity_t *targ, gentity_t *inflictor, gentity_t *attacker
|
|||
|
||||
#ifdef MISSIONPACK
|
||||
if (g_gametype.integer == GT_1FCTF) {
|
||||
flag_pw = PW_NEUTRALFLAG;
|
||||
enemy_flag_pw = PW_NEUTRALFLAG;
|
||||
}
|
||||
#endif
|
||||
|
@ -486,6 +487,12 @@ void Team_CheckHurtCarrier(gentity_t *targ, gentity_t *attacker)
|
|||
else
|
||||
flag_pw = PW_REDFLAG;
|
||||
|
||||
#ifdef MISSIONPACK
|
||||
if (g_gametype.integer == GT_1FCTF) {
|
||||
flag_pw = PW_NEUTRALFLAG;
|
||||
}
|
||||
#endif
|
||||
|
||||
// flags
|
||||
if (targ->client->ps.powerups[flag_pw] &&
|
||||
targ->client->sess.sessionTeam != attacker->client->sess.sessionTeam)
|
||||
|
|
Loading…
Reference in a new issue