Garry's Mod

Garry's Mod

75 ratings
Offset hoverballs
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
File Size
Posted
Updated
77.026 KB
May 30, 2021 @ 1:56pm
Aug 18, 2024 @ 7:09am
32 Change Notes ( view )

Subscribe to download
Offset hoverballs

Description
What is this?
This is an unofficial remake/update of Marum's Hoverballs, an addon which hasn't been updated since September of 2016.

No I mean what does this addon actually do?
Offset hoverballs are entities that float at a certain distance from the ground underneath them, adjusting their height automatically to account for slopes, stairs, and uneven terrain. This makes them perfect for building hover vehicles of all kinds!









What makes this version different?
This version features several updates and fixes over the original, including:
▸ Now properly hovers over props and entities! Make bridges and ramps, go nuts!
▸ Experimental 'Slippery mode' allows your vehicles to slide down slopes.
▸ Wiremod integration, if wire is installed on your server/singleplayer game.
▸ Sleek-ish UI that shows info when looking at a hoverball.
▸ Full duplicator / advdupe / advdupe2 support, bugs from the original have been squished.
▸ Can now assign keys to adjust hover offset and toggle hovering on and off.
▸ Built in airbrakes to slow down your vehicles without relying on thrusters.
▸ Can now click hoverballs to update their values without having to remove and replace them.
▸ Update settings on a whole contraption in one go by shift + clicking the base prop.
▸ Configuration options for everything you could want, and probably some stuff you didn't.
▸ Full multi-language translation support. See community translations section below.
▸ Lasers! Everybody loves lasers.


FAQ:
"My offset hoverballs spawn as an error!"
Spawn your hoverballs using the 'Hoverball - Offset' tool. It can be found in the Construction menu. Do not spawn them directly using the entity in the 'Others' tab as this will result in an error model.

"My hover vehicle keeps bouncing up and down!"
Either your vehicle is too light or your offset hoverball force value is too high. Try making your contraption heavier or adjusting your hoverball force value in the spawner tool. Tweaking the 'hover damping' (springiness) setting may also help.

"I've found a bug!"
Please create a discussion or leave a comment and I'll try to sort it.
(Or if you're good at lua and already know how to fix it then by all means please submit a PR to the GitHub!)

"Why do my hoverballs have lines coming out the bottom?"
That laser line is to visualise the trace that the hoverball uses to detect whatever is below it.
Originally a debug thing but I left it in because it looks cool. By default it should only show when you're holding the toolgun, or if you have the checkbox ticked to show them all the time. Both can be switched off in the menu if you want.

"Why are there two wire inputs for height?"
The 'Set height' input is used for setting the absolute hover height, So giving it a value of 100 will make the hoverball float 100 units above the surface.
The 'Adjust height' input emulates pressing the up/down hotkeys, for smooth height ajustments. Input any positive value for going up, negative for down. A value of 0 does nothing.

"Your code is messy as hell"
Yes, it is. If you'd like to help improve this addon then feel free to submit a PR to the GitHub[github.com], I'd appreciate it!


Community translations:
If you're a cunning linguist and want to help translate this addon into other languages then you can find the translation files on the GitHub[github.com] in the resource/localization/ folder. All help is appreciated.


Credits and contributors:
  • This addon wouldn't exist at all without Marum's original version.
  • With extra features, optimisations, and spaghetti wrangling by dvdvideo1234 on GitHub.
  • Turkish translation by NovaDiablox.
  • Bulgarian translation by dvdvideo1234.


Tags for Steam search:
hoverball, hoverbike, hover vehicle, Marum's hoverballs update, float, floater, repulsor, repel, incline, slope, slippery, sled, wire, wiremod compatible, sony


30 Comments
boogie Brando Jan 1 @ 9:22pm 
the vanilla hoverball tool should've just been this from the very beginning, as someone who's completely illiterate at programming, i hated having to resort to wiremod just to get a working offset hoverball.
ellen61788 Apr 16, 2024 @ 10:38pm 
you fly? water?
ok:steamthumbsup::steamhappy:
Sony  [author] Jan 16, 2024 @ 3:02pm 
@Marum - Glad you like it! And thank you for making the OG version! ;)
Marum Jan 16, 2024 @ 1:35pm 
This is awesome, thanks for making it!
Sink Dec 21, 2023 @ 5:19am 
i thibkj parent mode
Sony  [author] Dec 21, 2023 @ 5:14am 
@Snek - Well that's a new one. When does this happen, after a dupe?
Are you using weld or parent mode to attach the hoverballs?
Sink Dec 21, 2023 @ 5:04am 
the balls keep detachting from my creations :steamfacepalm:
[Sk$Bh]Trick or treat KID!  [author] Oct 27, 2023 @ 6:11am 
@Sony

Try this: https://github.com/Sony-dev/Offset-Hoverballs/pull/28

We have to make shure nil is assigned. Lua will garbage collect all table members if they are not referenced anyway 😀
Sony  [author] Oct 20, 2023 @ 7:18pm 
@Dexious Emera - Thank you for letting me know!
Odd that it only seems to happen with the default gmod duplicator tool and not Adv dupe 1/2.
Applied an experimental fix that hopefully should solve the problem. Please let me know if you run into any other issues. :steamthumbsup:
Dexious Emera Oct 20, 2023 @ 4:15pm 
Updating/creating an offset hoverball with all the options ticked does not have the same issue, this happens when i have "hovers over entities/props" unticked