Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Get feet yaw angle #171

Closed
BlackYuzia opened this issue Oct 9, 2020 · 7 comments
Closed

Get feet yaw angle #171

BlackYuzia opened this issue Oct 9, 2020 · 7 comments

Comments

@BlackYuzia
Copy link

Question

How I can get feet yaw angle or this feature is not exist in current package?

@master117
Copy link

Can't you calculate it from the last 2 positions?

@saul
Copy link
Owner

saul commented Oct 9, 2020

I think you can get the feet yaw with player.getProp("DT_BaseEntity", "m_angRotation"). Can you let me know if that works?

@saul saul added question and removed enhancement labels Oct 9, 2020
@saul saul changed the title [QUESTION] Get Feet Yaw Angle Get feet yaw angle Oct 9, 2020
@BlackYuzia
Copy link
Author

@saul This isn't work. I get undefined

@saul
Copy link
Owner

saul commented Oct 10, 2020

How about player.getProp('DT_CSPlayer', 'm_flLowerBodyYawTarget')?

@BlackYuzia
Copy link
Author

BlackYuzia commented Oct 10, 2020

@saul did this feets angles?
This get some float value.

But Idk did this feets angles or not. If yes - that works.

@BlackYuzia
Copy link
Author

@saul m_flGoalFeetYaw maybe something like this?

animstate->m_flGoalFeetYaw // found in source codes

@saul
Copy link
Owner

saul commented Oct 10, 2020

Yes - m_flLowerBodyYawTarget is the angle in degrees that the feet should point at. This is the target angle (i.e. it won't smoothly interpolate between two values).

@saul saul added the answered label Oct 10, 2020
@saul saul closed this as completed Oct 10, 2020
@saul saul reopened this Feb 28, 2021
@saul saul closed this as completed Feb 28, 2021
Repository owner locked and limited conversation to collaborators Feb 28, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants