mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +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
|
#ifdef MISSIONPACK
|
||||||
if (g_gametype.integer == GT_1FCTF) {
|
if (g_gametype.integer == GT_1FCTF) {
|
||||||
|
flag_pw = PW_NEUTRALFLAG;
|
||||||
enemy_flag_pw = PW_NEUTRALFLAG;
|
enemy_flag_pw = PW_NEUTRALFLAG;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -486,6 +487,12 @@ void Team_CheckHurtCarrier(gentity_t *targ, gentity_t *attacker)
|
||||||
else
|
else
|
||||||
flag_pw = PW_REDFLAG;
|
flag_pw = PW_REDFLAG;
|
||||||
|
|
||||||
|
#ifdef MISSIONPACK
|
||||||
|
if (g_gametype.integer == GT_1FCTF) {
|
||||||
|
flag_pw = PW_NEUTRALFLAG;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// flags
|
// flags
|
||||||
if (targ->client->ps.powerups[flag_pw] &&
|
if (targ->client->ps.powerups[flag_pw] &&
|
||||||
targ->client->sess.sessionTeam != attacker->client->sess.sessionTeam)
|
targ->client->sess.sessionTeam != attacker->client->sess.sessionTeam)
|
||||||
|
|
Loading…
Reference in a new issue