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

CItemAirBox: Fix flight to the moon! #697

Merged

Conversation

StevenKal
Copy link
Contributor

#681 done: Prevent the item to fly non-stop toward the sky on the restart (new round usually), when we picked it up earlier.

Also reset the velocity on Touch, just to avoid the "invisible" entity to keep moving.
Let the reset on "Restart"too in case of, despite facultative.
Final version: Reset all the axes of the velocity to make the sure the item spawns with a complete null velocity (I did not do that before more in order to take in consideration the possible custom X/Y speed we could give to them, like via plugin, but I finally decided to clean up all, the plugins could still affect it later if needed).
@SergeyShorokhov SergeyShorokhov self-requested a review October 28, 2021 00:16
@SergeyShorokhov SergeyShorokhov added Priority: 🕒 low Low priority tasks that can be postponed for the future. Status: ✅ done The issue done and closed. Type: 🐞 bug An error that needs fixing. labels Oct 28, 2021
@SergeyShorokhov SergeyShorokhov merged commit 53181d3 into rehlds:master Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: 🕒 low Low priority tasks that can be postponed for the future. Status: ✅ done The issue done and closed. Type: 🐞 bug An error that needs fixing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants