From: Florian Paul Schmidt Date: Sun, 21 Mar 2010 20:34:06 +0000 (+0100) Subject: DODGING: remove unused variable X-Git-Tag: xonotic-v0.1.0preview~680^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1744f51e60fe7e3bf7378baa0277f4d92aac09a2;p=xonotic%2Fxonotic-data.pk3dir.git DODGING: remove unused variable DODGING: add jump animation when dodging --- diff --git a/qcsrc/server/mutators/mutator_dodging.qc b/qcsrc/server/mutators/mutator_dodging.qc index 4b3111634..ac7a85a62 100644 --- a/qcsrc/server/mutators/mutator_dodging.qc +++ b/qcsrc/server/mutators/mutator_dodging.qc @@ -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)