saul / demofile

Node.js library for parsing Counter-Strike: Global Offensive demo files

Home Page:https://demofile.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get feet yaw angle

BlackYuzia opened this issue · comments

Question

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

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

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

@saul This isn't work. I get undefined

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

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

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

@saul m_flGoalFeetYaw maybe something like this?

animstate->m_flGoalFeetYaw // found in source codes

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).