]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
DODGING: remove unused variable
authorFlorian Paul Schmidt <mista.tapas@gmx.net>
Sun, 21 Mar 2010 20:34:06 +0000 (21:34 +0100)
committerFlorian Paul Schmidt <mista.tapas@gmx.net>
Sun, 21 Mar 2010 20:34:06 +0000 (21:34 +0100)
DODGING: add jump animation when dodging

qcsrc/server/mutators/mutator_dodging.qc

index 4b31116348b74349b9e38d478d1f747bd38fa954..ac7a85a6288da789183e5d05973645ed27460cde 100644 (file)
@@ -83,6 +83,8 @@ MUTATOR_HOOKFUNCTION(dodging_PlayerPhysics) {
                if (cvar("sv_dodging_sound") == 1)
                        PlayerSound(playersound_jump, CHAN_PLAYER, VOICETYPE_PLAYERSOUND);
 
+               setanim(self, self.anim_jump, TRUE, FALSE, TRUE);
+
                self.dodging_single_action = 0;
        }
 
@@ -107,11 +109,8 @@ float check_close_to_wall(float threshold) {
        vector trace_start;
        vector trace_end;
 
-       float distance;
-
        trace_start = self.origin;
 
-
        trace_end = self.origin + (1000*v_right);
        tracebox(trace_start, self.mins, self.maxs, trace_end, TRUE, self);
        if (trace_fraction < 1 && vlen (self.origin - trace_endpos) < threshold)