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

High values used with OBJECT_VISUAL_TRANSFORM_ANIMATION_SPEED cause animation to truncate before finish #671

Open
merricksdad opened this issue Oct 7, 2024 · 0 comments
Labels
game Issues with the game code.

Comments

@merricksdad
Copy link

Describe the bug

As an example, if I apply the following script then the attack animations of oObj will only play about 2/3 of their length before they end early, and start the next animation. The play speed is modified as expected, but either a rounding error cuts the animation short, or the total length is not modified by the transform value, so it cuts off early.

SetObjectVisualTransform(oObj, OBJECT_VISUAL_TRANSFORM_ANIMATION_SPEED, 0.33f);

Custom content or overrides used

No response

Game version

37-11

First seen on game version

Probably not a regression, but only just noticed on 37-11. Probably been around since visual transforms were first added.

OS

Windows

Distribution

Steam

@merricksdad merricksdad added the game Issues with the game code. label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
game Issues with the game code.
Projects
None yet
Development

No branches or pull requests

1 participant