From: Florian Paul Schmidt Date: Sun, 4 Apr 2010 23:47:29 +0000 (+0200) Subject: DODGING: clear FL_ONGROUND in the right place X-Git-Tag: xonotic-v0.1.0preview~664^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d8f87820cb5da896034a8b5308d8f309aaac5bfa;p=xonotic%2Fxonotic-data.pk3dir.git DODGING: clear FL_ONGROUND in the right place --- diff --git a/qcsrc/server/mutators/mutator_dodging.qc b/qcsrc/server/mutators/mutator_dodging.qc index 8e52ab13e..d3b8e6d64 100644 --- a/qcsrc/server/mutators/mutator_dodging.qc +++ b/qcsrc/server/mutators/mutator_dodging.qc @@ -105,6 +105,8 @@ MUTATOR_HOOKFUNCTION(dodging_PlayerPhysics) { // the up part of the dodge is a single shot action if (self.dodging_single_action == 1) { + self.flags &~= FL_ONGROUND; + self.velocity = self.velocity + (cvar("sv_dodging_up_speed") * v_up); @@ -244,8 +246,6 @@ MUTATOR_HOOKFUNCTION(dodging_GetPressedKeys) { if (dodge_detected == 1) { self.last_dodging_time = time; - self.flags &~= FL_ONGROUND; - self.dodging_action = 1; self.dodging_single_action = 1;