]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Force angles '0 0 0' for dropped/passing flags, in case they get warped or such
authorSamual <samual@xonotic.org>
Mon, 2 Apr 2012 17:59:45 +0000 (13:59 -0400)
committerSamual <samual@xonotic.org>
Mon, 2 Apr 2012 17:59:45 +0000 (13:59 -0400)
qcsrc/server/mutators/gamemode_ctf.qc

index 95be2622f751b97b007cf74523559da0de820a3c..2d6a3ee1357d3811ebcbbf6a50e1be5999b39b6b 100644 (file)
@@ -576,6 +576,8 @@ void ctf_FlagThink()
                
                case FLAG_DROPPED:
                {
+                       self.angles = '0 0 0'; // in case warpzones adjust it
+                       
                        if(autocvar_g_ctf_flag_dropped_floatinwater && (self.flags & FL_INWATER))
                                        self.velocity_z = autocvar_g_ctf_flag_dropped_floatinwater;
                
@@ -637,7 +639,9 @@ void ctf_FlagThink()
                }
                
                case FLAG_PASSING: // todo make work with warpzones
-               {                       
+               {
+                       self.angles = '0 0 0'; // in case warpzones adjust it
+                       
                        vector targ_origin = ((self.pass_target.absmin + self.pass_target.absmax) * 0.5);
                        traceline(self.origin, targ_origin, MOVE_NOMONSTERS, self);