Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix several problems related to sliding down slopes #41

Merged
merged 5 commits into from
Apr 1, 2016
Merged

Fix several problems related to sliding down slopes #41

merged 5 commits into from
Apr 1, 2016

Commits on Apr 1, 2016

  1. Refactor some inequations from comparisons of start times into compar…

    …isons of delta times
    
    This should make it more easily understandable.
    Numerical conditioning is probably better as well... Not that it matters :)
    TomyLobo committed Apr 1, 2016
    Configuration menu
    Copy the full SHA
    91513c4 View commit details
    Browse the repository at this point in the history
  2. Use slow-motion-corrected time value to determine whether certain les…

    …sons have been learned
    TomyLobo committed Apr 1, 2016
    Configuration menu
    Copy the full SHA
    b8ece67 View commit details
    Browse the repository at this point in the history
  3. Add some comments

    TomyLobo committed Apr 1, 2016
    Configuration menu
    Copy the full SHA
    fa54a40 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e4cd1b7 View commit details
    Browse the repository at this point in the history
  5. Split up m_flSlideTime into m_flSlideStartTime and m_flSlideAutoEndTime

    m_flSlideStartTime is the time the player started sliding.
    m_flSlideAutoEndTime is the time the slide will end on its own, if the player doesn't interrupt it earlier.
    
    When sliding down slopes, now only m_flSlideAutoEndTime is incremented and m_flSlideStartTime stays at the initial value.
    This allowed fixing several problems related to sliding down slopes:
    - Sliding down slopes can now be interrupted properly
    - Eye offset is now properly adjusted when starting a slide on a slope
    - The reslide timer is properly reset after sliding down a long slope
    TomyLobo committed Apr 1, 2016
    Configuration menu
    Copy the full SHA
    40882ae View commit details
    Browse the repository at this point in the history