Skip to content

CItemAirBox: Fix flight to the moon!#697

Merged
wopox1337 merged 3 commits intorehlds:masterfrom
StevenKal:CItemAirBox-Fix-flight-to-the-moon!
Oct 28, 2021
Merged

CItemAirBox: Fix flight to the moon!#697
wopox1337 merged 3 commits intorehlds:masterfrom
StevenKal:CItemAirBox-Fix-flight-to-the-moon!

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).
@wopox1337 wopox1337 self-requested a review October 28, 2021 00:16
@wopox1337 wopox1337 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
@wopox1337 wopox1337 merged commit 53181d3 into rehlds:master Oct 28, 2021
yohimik pushed a commit to yohimik/ReGameDLL_CS that referenced this pull request Jun 5, 2025
* Update item_airbox.cpp

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).
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