-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
API
: CSPlayer new members (physics related)
#851
Conversation
@wopox1337 @s1lentq need a hand here, any clue of why test demos are failing with this? |
Fields in structs |
Use explicitly double precision to fix test demo
That was clever. I thought for a moment of that kind of issue guessing about a precision issue but I just stared at the fact all three memory types were float, I totally dismissed |
- Cached CSPlayer pointer in a global variable - Changed PM_JumpHeight from lambda function to an inline function - Changed m_flDuckSpeedMultiplier data type to double
m_flJumpHeight
: player vertical jump force, 0 = default (~268.3)m_flLongJumpHeight
: player vertical jump force with longjump enabled, 0 = default (~299.3)m_flLongJumpForce
: player horizontal jump force with longjump enabled, 0 = default (560.0)m_flDuckSpeedMultiplier
: player duck speed multiplier, 0 = default (0.3333)