-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Sprite Movement working with AI movement #33494
Sprite Movement working with AI movement #33494
Conversation
Mostly commenting to follow so I can implement once merged. The code is surprisingly straight forward though. |
|
||
ent.Comp.IsMoving = args.IsMoving; | ||
Dirty(ent); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this even needs to be networked? It's just getting derived from inputmover data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SteeringSystem serveronly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, i get it, yes, not needed for input mover
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@metalgearsloth If I remove Dirty(), it won't work anymore. Neither when the creature is controlled by the AI, nor when the player
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested this ingame with various other creatures. The change to spider parentage is possibly a bit out of scope for the PR, but still works.
About the PR
Now AI movement can work with SpriteMovementSystem
Why / Balance
bug
fix #32187
Media
2024-11-23.17-13-50.mp4
Requirements
Changelog
to minor