From a729b288a22181d391bc0820ecfb0c60b7a2ca8f Mon Sep 17 00:00:00 2001 From: Samual Date: Sun, 1 Apr 2012 13:13:17 -0400 Subject: [PATCH] Fix flag throwing bug and dropped capture bug --- qcsrc/server/mutators/gamemode_ctf.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/mutators/gamemode_ctf.qc b/qcsrc/server/mutators/gamemode_ctf.qc index 4c261d09d..5e6818806 100644 --- a/qcsrc/server/mutators/gamemode_ctf.qc +++ b/qcsrc/server/mutators/gamemode_ctf.qc @@ -263,6 +263,8 @@ void ctf_Handle_Throw(entity player, entity reciever, float droptype) flag.solid = SOLID_TRIGGER; flag.ctf_droptime = time; + flag.flags = FL_ITEM | FL_NOTARGET; // clear FL_ONGROUND for MOVETYPE_TOSS + switch(droptype) { case DROP_PASS: @@ -287,8 +289,6 @@ void ctf_Handle_Throw(entity player, entity reciever, float droptype) } } - print("flag.velocity = ", vtos(flag.velocity), ".\n"); - switch(droptype) { case DROP_PASS: @@ -367,7 +367,7 @@ void ctf_Handle_Capture(entity flag, entity toucher, float capturetype) // reset the flag player.next_take_time = time + autocvar_g_ctf_flag_collect_delay; - ctf_RespawnFlag(player.flagcarried); + ctf_RespawnFlag(enemy_flag); } void ctf_Handle_Return(entity flag, entity player) -- 2.39.2