lenient bubbles

[Open Assets] lenient bubbles 1.1

What permissions do you give others to modify and/or maintain your submission?
Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
this mod makes air bubbles easier to get, and also adds some visual and auditory flair to bubbles
instead of bubbles spawning on a global timer and floating up to the ceiling, bubbles will now float up a little above the bubble patch that spawned them and stay mostly stationary, i have also added bubble sounds when bubble patches spawn bubbles
these changes to bubble behavior only apply to bubbles spawned from bubble patches; bubbles that come from other sources (such as popped buggles) will behave as usual

  • gravity flipped bubble patches don't work properly; i want to fix this in a future release
    • (to be fair vanilla bubble patches don't work when gravity flipped either...)
  • yes, i forgot to remove the todo comment at the start of the script lol; i'll fix it next update, since i don't want to release an update that isn't functionally different from the current version

in unmodded srb2, bots (aka tails while playing as sonic & tails) that get bubbles don't delete them, but still get a air refill from the bubble; however this causes them to never leave their gasping state until the bubble leaves their hitbox. while this is fine if you don't have lenient bubbles loaded because bubbles will keep floating all the way up to the ceiling, with lenient bubbles loaded it was causing bots to get stuck inside of bubbles because the bubbles won't move out of their hitbox
to fix this, i decided to make it so that bots will delete bubbles; however if a bot was the one who got the bubble, it will cause the bubble patch to spawn the next bubble instantly; hopefully this compromise avoids most situations where you drown because tails stole your bubble while also preventing tails from getting stuck

if anyone is aware of a better way to fix this without having to make bots delete bubbles, please tell me!

thanks to @SMS Alfredo for letting me know about the P_XYMovement and P_ZMovement functions
  • lenientBubbles example.mp4
    4.9 MB
Author
lexidog
Downloads
1,056
Views
4,010
Extension type
lua
File size
6.9 KB
MD5 Hash
50c35d8082109c9c7a15b78653d099e8
First release
Last update
Rating
4.50 star(s) 2 ratings

Share this resource

Latest updates

  1. 1.1 - a tiny bugfix

    this mod should now work correctly on bubble patches that are scaled, so you can make tiny...

Latest reviews

Yay, now the dumb water levels are better than just having to find a bubble but miss bc of the dumb bubble hitbox :D💀
Upvote 0
I was pleasantly surprised by this script, the bobbing motion and the added sounds are very nice. Welcome to releases!
Upvote 0
Back
Top