set sv_dodging_up_speed 200 "the jump velocity of the dodge"
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_wall_distance_threshold 40 "the maximum distance from a wall that still allows dodging"
+set sv_dodging_height_threshold 10 "the maximum height above ground where to allow dodging"
+set sv_dodging_wall_distance_threshold 10 "the maximum distance from a wall that still allows dodging"
set sv_dodging_sound 1 "if 1 dodging makes a sound. if 0 dodging is silent"
set leadlimit 0
trace_end = self.origin + (1000*v_right);
- traceline(trace_start, trace_end, TRUE, self);
-
+ tracebox(trace_start, self.mins, self.maxs, trace_end, TRUE, self);
if (trace_fraction < 1 && vlen (self.origin - trace_endpos) < threshold)
return 1;
trace_end = self.origin - (1000*v_right);
- traceline(trace_start, trace_end, TRUE, self);
-
+ tracebox(trace_start, self.mins, self.maxs, trace_end, TRUE, self);
if (trace_fraction < 1 && vlen (self.origin - trace_endpos) < threshold)
return 1;
trace_end = self.origin + (1000*v_forward);
- traceline(trace_start, trace_end, TRUE, self);
-
+ tracebox(trace_start, self.mins, self.maxs, trace_end, TRUE, self);
if (trace_fraction < 1 && vlen (self.origin - trace_endpos) < threshold)
return 1;
trace_end = self.origin - (1000*v_forward);
- traceline(trace_start, trace_end, TRUE, self);
-
+ tracebox(trace_start, self.mins, self.maxs, trace_end, TRUE, self);
if (trace_fraction < 1 && vlen (self.origin - trace_endpos) < threshold)
return 1;
trace_start = self.origin;
trace_end = self.origin - (1000*v_up);
- traceline(trace_start, trace_end, TRUE, self);
+ tracebox(trace_start, self.mins, self.maxs, trace_end, TRUE, self);
// check if the trace hit anything at all
if (trace_fraction > 1)