]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Passing is assisting too
authorSamual Lenks <samual@xonotic.org>
Thu, 6 Sep 2012 16:42:04 +0000 (12:42 -0400)
committerSamual Lenks <samual@xonotic.org>
Thu, 6 Sep 2012 16:42:04 +0000 (12:42 -0400)
qcsrc/server/mutators/gamemode_ctf.qc

index 0dfa7e109de731e8fbdcfc12e527908a5e8aeb10..86795ffeb932fd51538aed1eae453519cd5ae49b 100644 (file)
@@ -235,7 +235,7 @@ void ctf_Handle_Retrieve(entity flag, entity player)
        
        sender.throw_antispam = time + autocvar_g_ctf_pass_wait;
        player.throw_antispam = sender.throw_antispam;
-       
+
        flag.pass_sender = world;
        flag.pass_target = world;
 }
@@ -256,6 +256,7 @@ void ctf_Handle_Throw(entity player, entity reciever, float droptype)
        flag.owner.flagcarried = world;
        flag.owner = world;
        flag.solid = SOLID_TRIGGER;
+       flag.ctf_dropper = player;
        flag.ctf_droptime = time;
        
        flag.flags = FL_ITEM | FL_NOTARGET; // clear FL_ONGROUND for MOVETYPE_TOSS