Oops! Readded "Sprint" command. Removed some unnecessary variables in FirstPersonInputController. Fixed bug where you couldnt dash right away as the game started.

This commit is contained in:
verysecrethero
2016-02-03 17:45:37 +01:00
parent 7b5a2a5388
commit 1bd4aa91ff
2 changed files with 7 additions and 17 deletions
@@ -38,24 +38,15 @@ protected:
bool m_Jumping = false;
bool m_DoubleJumping = false;
bool m_Crouching = false;
//assault dash enum
enum class AssaultDashDirection {
Left,
Right,
Forward,
Backward,
None
};
//assault dash membervariables
double m_AssaultDashDoubleTapDeltaTime = 0.0f;
double m_AssaultDashCoolDownTimer = 0.0f;
double m_AssaultDashCoolDownMaxTimer = 2.0f;
AssaultDashDirection m_AssaultDashDoubleTapLastKey = AssaultDashDirection::None;
double m_AssaultDashDoubleTapDeltaTime = 0.0;
double m_AssaultDashCoolDownTimer = 0.0;
double m_AssaultDashCoolDownMaxTimer = 2.0;
const float m_AssaultDashDoubleTapSensitivityTimer = 0.25f;
std::string m_AssaultDashTapDirection = "";
bool m_AssaultDashDoubleTapped = false;
bool m_PlayerIsDashing = false;
bool m_ShiftDashing = true;
bool m_ShiftDashing = false;
bool m_ValidDoubleTap = false;
//specialabilitys