]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
- removed commented out lines
authorFlorian Paul Schmidt <mista.tapas@gmx.net>
Sun, 21 Mar 2010 00:55:07 +0000 (01:55 +0100)
committerFlorian Paul Schmidt <mista.tapas@gmx.net>
Sun, 21 Mar 2010 00:55:07 +0000 (01:55 +0100)
defaultXonotic.cfg
qcsrc/server/mutators/mutator_dodging.qc

index c3c6db76434e867cc1d464c1ef1ec27a856e58ef..9e723179f1968753062c9b88deeb78a4df7bb7a1 100644 (file)
@@ -516,6 +516,7 @@ set g_dodging 0 "set to 1 to enable dodging in games"
 
 seta cl_dodging_timeout 0 "determines how long apart (in seconds) two taps on the same direction key are considered a dodge. use 0 to disable"
 
+set sv_dodging_walldodging 0 "set to 1 to allow dodging off walls. 0 to disable"
 set sv_dodging_delay 0.5 "determines how long a player has to wait to be able to dodge again after dodging"
 set sv_dodging_up_speed 200 "the jump velocity of the dodge"
 set sv_dodging_horiz_speed 350 "the horizontal velocity of the dodge"
index 8fea811acc88f7f7db8c841a21240b3fb82c793f..bc660f0c97e02e2e51377cfdcd161ccce6ee13e8 100644 (file)
@@ -124,13 +124,10 @@ MUTATOR_HOOKFUNCTION(dodging_GetPressedKeys) {
        traceline(trace_start, trace_end, TRUE, self);
        height_above_ground = self.origin_z - trace_endpos_z;
 
+       // check if our feet are on the ground or at least close :D
        if (height_above_ground > (fabs(PL_MIN_z) + cvar("sv_dodging_height_threshold")))
                return 0;
 
-       // check if our feet are on the ground or at least close :D
-       //if (!(self.lastflags & FL_ONGROUND))
-       //      return 0;
-
        if (self.movement_x > 0) {
                // is this a state change?
                if (!(self.pressedkeys & KEY_FORWARD)) {