From: Martin Taibr Date: Sat, 19 Aug 2017 20:23:29 +0000 (+0200) Subject: keep te debug stmts sinec i have a feeling we'll be coming back to this X-Git-Tag: xonotic-v0.8.5~2430^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f2ae373cebfbb0be131d353c0e7e202762b12f7d;p=xonotic%2Fxonotic-data.pk3dir.git keep te debug stmts sinec i have a feeling we'll be coming back to this --- diff --git a/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc b/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc index 59b932f41..c8182cdd8 100644 --- a/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc +++ b/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc @@ -156,7 +156,7 @@ bool PM_dodging_checkpressedkeys(entity this) if (mymovement_##COND) { \ /* is this a state change? */ \ if(!(PHYS_DODGING_PRESSED_KEYS(this) & KEY_##BTN) || frozen_no_doubletap) { \ - /*LOG_INFOF("state change %f\n", time);*/ \ + /*LOG_INFOF("key press %f - %s\n", time, #BTN);*/ \ tap_direction_##RESULT; \ if ((time - this.last_##BTN##_KEY_time) < PHYS_DODGING_TIMEOUT(this) || frozen_no_doubletap) { \ /*LOG_INFOF("dodge repress %f (%s)\n", time - this.last_##BTN##_KEY_time, this.netname);*/ \ @@ -174,7 +174,7 @@ bool PM_dodging_checkpressedkeys(entity this) #undef X if (!dodge_detected) return false; - //LOG_INFOF("dodge keys detected %f, speed %f\n", time, vlen(this.velocity)); + //LOG_INFOF("dodge keys detected %f - delay %f - %s\n", time, time - this.last_dodging_time, this.netname); // this check has to be after checking keys: // the first key press of the double tap is allowed to be before dodging delay, @@ -190,7 +190,6 @@ bool PM_dodging_checkpressedkeys(entity this) bool can_air_dodge = (PHYS_DODGING_AIR && (PHYS_DODGING_AIR_MAXSPEED == 0 || vdist(this.velocity, <, PHYS_DODGING_AIR_MAXSPEED))); if (!can_dodge && !can_wall_dodge && !can_air_dodge) return false; - //LOG_INFOF("dodge delay %f (%s)\n", time - this.last_dodging_time, this.netname); // TODO lowest i got with double press: 0.63 this.last_dodging_time = time; this.dodging_action = 1; @@ -198,6 +197,7 @@ bool PM_dodging_checkpressedkeys(entity this) this.dodging_force_total = determine_force(this); this.dodging_force_remaining = this.dodging_force_total; + //LOG_INFOF("speed %d -> %f\n", vlen(vec2(this.velocity)), this.dodging_force_total); this.dodging_direction.x = tap_direction_x; this.dodging_direction.y = tap_direction_y;