From c617b0e17ccd3f81a802107671557d73e311eca1 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 22 Mar 2025 09:17:45 +1000 Subject: [PATCH] Re-enable throwing, only disable passing phantom flags --- qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc b/qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc index bc8cd78c3..c86492e3b 100644 --- a/qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc +++ b/qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc @@ -2405,10 +2405,10 @@ MUTATOR_HOOKFUNCTION(ctf, PlayerUseKey) entity player = M_ARGV(0, entity); - if((time > player.throw_antispam) && !IS_DEAD(player) && !player.speedrunning && player.flagcarried.classname != "phantomflag" && (!player.vehicle || autocvar_g_ctf_allow_vehicle_touch)) + if((time > player.throw_antispam) && !IS_DEAD(player) && !player.speedrunning && (!player.vehicle || autocvar_g_ctf_allow_vehicle_touch)) { // pass the flag to a team mate - if(autocvar_g_ctf_pass) + if(autocvar_g_ctf_pass && player.flagcarried.classname != "phantomflag") { entity head, closest_target = NULL; head = WarpZone_FindRadius(player.origin, autocvar_g_ctf_pass_radius, true); -- 2.39.5