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

Angles entity keyvalue doesn't take into account "angle" (yaw only) keyvalue. #109

Closed
Bluespark99 opened this issue Jun 4, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Bluespark99
Copy link

If an entity has an angle keyvalue (and doesn't have an angles value) then its yaw will be determined by angle which isn't reflected in the angles keyvalue which is displayed in the default entity attributes window. In this case angles always the inferred/default 0 0 0 value unless explicitly set in the entity. This means that unless you check all your angle-sensitive entities in Raw Edit mode you may miss the true yaw angle and instead see the misleading 0 0 0 value in Angles.
If angle keyvalue is parsed in the entity then that keyvalue should either be displayed under Angles as an additionaly keyvalue or the angle keyvalue should be transposed to the yaw of the displayed Angles. Or some other solution.
3qXirs9biQ
bspguy_2fUToTJtbZ

@wootguy wootguy added the enhancement New feature or request label Apr 23, 2024
@wootguy
Copy link
Owner

wootguy commented Mar 15, 2025

Doesn't that behavior depend on the game? This additional angle key should be added to whichever FGD you're using so that you can see it in the Attributes tab. Linking keyvalues like this can cause confusion especially if another game implements the angle key differently.

Edit:
It doesn't depend on the game, and the engine uses "angle" value even if "angles" is present. It overwrites the yaw in angles if set to a value greater than 0. If -1, it replaces angles with "-90 0 0". If lower than -1, it replaces angles with "90 0 0".

I don't want to link the keyvalues, but this combination of angles will be shown in the 3D view and a warning will be shown if the selected entity has an angle key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants