]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a field to control the number of captures a flag is worth (some nutty maps may...
authorMario <mario@smbclan.net>
Fri, 3 Mar 2017 14:28:35 +0000 (00:28 +1000)
committerMario <mario@smbclan.net>
Fri, 3 Mar 2017 14:28:35 +0000 (00:28 +1000)
qcsrc/server/mutators/mutator/gamemode_ctf.qc
qcsrc/server/mutators/mutator/gamemode_ctf.qh

index d19f52567fcd641b5afda647e090180cf0f6a334..5c8b78cd91b612e90ffa43155ed59fe512ec30e4 100644 (file)
@@ -597,7 +597,7 @@ void ctf_Handle_Capture(entity flag, entity toucher, int capturetype)
 
        // scoring
        PlayerTeamScore_AddScore(player, ((enemy_flag.score_capture) ? enemy_flag.score_capture : autocvar_g_ctf_score_capture));
-       PlayerTeamScore_Add(player, SP_CTF_CAPS, ST_CTF_CAPS, 1);
+       PlayerTeamScore_Add(player, SP_CTF_CAPS, ST_CTF_CAPS, ((enemy_flag.score_team_capture) ? enemy_flag.score_team_capture : 1));
 
        old_time = PlayerScore_Add(player, SP_CTF_CAPTIME, 0);
        new_time = TIME_ENCODE(time - enemy_flag.ctf_pickuptime);
index 098a0adddb73ec8996e26f0dc89cf7aff60c390d..6dd5110fd3124b0650d03e2f90dc357641a60754 100644 (file)
@@ -54,6 +54,7 @@ const float VEHICLE_FLAG_SCALE = 1.0;
 .float score_drop; // note: negated
 .float score_pickup;
 .float score_return;
+.float score_team_capture; // shouldn't be too high
 
 // effects
 .string toucheffect;