set sv_dodging_horiz_speed 350 "the horizontal velocity of the dodge"
set sv_dodging_ramp_time 0.1 "a ramp so that the horizontal part of the dodge is added smoothly (seconds)"
set sv_dodging_height_threshold 40 "the maximum height above ground where to allow dodging"
+set sv_dodging_sound 1 "if 1 dodging makes a sound. if 0 dodging is silent"
set leadlimit 0
self.velocity
+ (cvar("sv_dodging_up_speed") * v_up);
+ if (cvar("sv_dodging_sound") == 1)
+ PlayerSound(playersound_jump, CHAN_PLAYER, VOICETYPE_PLAYERSOUND);
+
self.dodging_single_action = 0;
}