From fc085ae494751c44e76760b3c65612830b9cb196 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 4 Mar 2017 00:28:35 +1000 Subject: [PATCH] Add a field to control the number of captures a flag is worth (some nutty maps may be coming) --- qcsrc/server/mutators/mutator/gamemode_ctf.qc | 2 +- qcsrc/server/mutators/mutator/gamemode_ctf.qh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/mutators/mutator/gamemode_ctf.qc b/qcsrc/server/mutators/mutator/gamemode_ctf.qc index d19f52567..5c8b78cd9 100644 --- a/qcsrc/server/mutators/mutator/gamemode_ctf.qc +++ b/qcsrc/server/mutators/mutator/gamemode_ctf.qc @@ -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); diff --git a/qcsrc/server/mutators/mutator/gamemode_ctf.qh b/qcsrc/server/mutators/mutator/gamemode_ctf.qh index 098a0addd..6dd5110fd 100644 --- a/qcsrc/server/mutators/mutator/gamemode_ctf.qh +++ b/qcsrc/server/mutators/mutator/gamemode_ctf.qh @@ -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; -- 2.39.2