Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Is there a better way to get player states? #472

Answered by Xsintashi
MesuDevastator asked this question in Q&A
Discussion options

You must be logged in to vote

for is on ground i recommend if (EnginePrediction::getFlags() & 1)
for is ducking i recommend if (EnginePrediction::getFlags() & 2)
for is not on ground i recommend if (!EnginePrediction::getFlags() & 1)

for checking velocity i recommend if (localPlayer->velocity().length2D() > 0.0f)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@MesuDevastator
Comment options

Answer selected by MesuDevastator
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants