From: Florian Paul Schmidt Date: Sun, 21 Mar 2010 20:36:44 +0000 (+0100) Subject: DODGING: comment updated to reflect what the code does X-Git-Tag: xonotic-v0.1.0preview~680^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2c2a6c64265405e5f461f3848d1f3a47feee0641;p=xonotic%2Fxonotic-data.pk3dir.git DODGING: comment updated to reflect what the code does --- diff --git a/qcsrc/server/mutators/mutator_dodging.qc b/qcsrc/server/mutators/mutator_dodging.qc index ac7a85a62..12bb7e600 100644 --- a/qcsrc/server/mutators/mutator_dodging.qc +++ b/qcsrc/server/mutators/mutator_dodging.qc @@ -168,7 +168,8 @@ MUTATOR_HOOKFUNCTION(dodging_GetPressedKeys) { height_above_ground = self.origin_z - trace_endpos_z; - // check if our feet are on the ground or at least close :D + // check if our feet are on the ground or at least close or we are + // near a wall,,, if ((height_above_ground > (fabs(PL_MIN_z) + cvar("sv_dodging_height_threshold"))) && (check_close_to_wall(cvar("sv_dodging_wall_distance_threshold")) != 1)) return 0;