private void LookForQueueInput() { if (this.acceptingInput && !this.gm.isPaused && this.isGameplayScene) { if (this.inputHandler.inputActions.jump.WasPressed) { if (this.CanWallJump()) { this.DoWallJump(); } else if (this.CanJump()) { this.HeroJump(); } else if (this.CanDoubleJump()) { this.DoDoubleJump(); } else if (this.CanInfiniteAirJump()) { this.CancelJump(); this.audioCtrl.PlaySound(HeroSounds.JUMP); this.ResetLook(); this.cState.jumping = true; } else { this.jumpQueueSteps = 0; this.jumpQueuing = true; this.doubleJumpQueueSteps = 0; this.doubleJumpQueuing = true; } } if (this.inputHandler.inputActions.dash.WasPressed && !ModHooks.OnDashPressed()) { if (this.CanDash()) { this.HeroDash(); } else { this.dashQueueSteps = 0; this.dashQueuing = true; } } if (this.inputHandler.inputActions.attack.WasPressed) { if (this.CanAttack()) { this.DoAttack(); } else { this.attackQueueSteps = 0; this.attackQueuing = true; } } if (this.inputHandler.inputActions.jump.IsPressed) { if (this.jumpQueueSteps <= this.JUMP_QUEUE_STEPS && this.CanJump() && this.jumpQueuing) { this.HeroJump(); } else if (this.doubleJumpQueueSteps <= this.DOUBLE_JUMP_QUEUE_STEPS && this.CanDoubleJump() && this.doubleJumpQueuing) { if (this.cState.onGround) { this.HeroJump(); } else { this.DoDoubleJump(); } } if (this.CanSwim()) { if (this.hero_state != ActorStates.airborne) { this.SetState(ActorStates.airborne); } this.cState.swimming = true; } } if (this.inputHandler.inputActions.dash.IsPressed && this.dashQueueSteps <= this.DASH_QUEUE_STEPS && this.CanDash() && this.dashQueuing && !ModHooks.OnDashPressed() && this.CanDash()) { this.HeroDash(); } if (this.inputHandler.inputActions.attack.IsPressed && this.attackQueueSteps <= this.ATTACK_QUEUE_STEPS && this.CanAttack() && this.attackQueuing) { this.DoAttack(); } } }