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

Entity_GetAbsOrigin returns zero for func_door_rotating #67

Open
Adrianilloo opened this issue Jul 26, 2021 · 0 comments
Open

Entity_GetAbsOrigin returns zero for func_door_rotating #67

Adrianilloo opened this issue Jul 26, 2021 · 0 comments

Comments

@Adrianilloo
Copy link

Adrianilloo commented Jul 26, 2021

Entity_GetAbsOrigin uses m_vecOrigin rather than m_vecAbsOrigin for some reason. We've only recently discovered that when used on a func_door_rotating, it returns the world origin (0, 0, 0). Are there any historical reasons for this function using m_vecOrigin rather than m_vecAbsOrigin? From the SDK, CBaseEntity::GetAbsOrigin uses m_vecAbsOrigin instead.

UPDATE: (If it wasn't obvious, the latter prop solves this case, causing to return the correct origin)

@Adrianilloo Adrianilloo changed the title Entity_GetAbsOrigin returns NULL_VECTOR for func_door_rotating Entity_GetAbsOrigin returns zero for func_door_rotating Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant