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"
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)) {