Garry's Mod

Garry's Mod

160 ratings
Glide // Circular Functions (Nitrous, Health Bar)
3
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Vehicle
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
Updated
9.601 MB
4 Aug @ 8:29am
2 Oct @ 9:50am
15 Change Notes ( view )

Subscribe to download
Glide // Circular Functions (Nitrous, Health Bar)

In 1 collection by Roboboy
Unit Vehicles Addons
61 items
Description
Circular Functions is an addon to Glide, adding in various additional features to the vehicle base.



Features (more coming soon)
  • Nitrous System; Accelerate faster and get more traction! Use the Nitrous Editor Tool under "Glide" to edit it!
  • Health Bar displayed on the Speedometer

Adjust the settings via Glide extensions menu!



FAQ
Question
Answer
How do I use Nitrous?
By default, Nitrous is bound to Left Alt, but can be changed in Glide Settings (under Land vehicle controls).



Credits
  • Roboboy - Main idea & Coding
  • AludriX - Coding
  • Moka - Coding
Popular Discussions View All (1)
1
3 Sep @ 4:47am
PINNED: For Vehicle Developers
AludriX
27 Comments
Beef Stroganoff 15 Sep @ 2:23pm 
is there a way to add a engine heat system for nitrous? sort of like in motorstorm where boosting makes the engine heat up until the car explodes, basically a feature to enable something like that
Matsilagi 9 Sep @ 1:19am 
nvm, i ended up hooking it on OnUpdateMisc(), worked fine.
Matsilagi 8 Sep @ 5:38pm 
Any idea where on a glide vehicle i could hook a function to change the color in real-time?
Im trying to introduce the Boost Switch function on the Hawker Mech and i managed to get everything working but the nitrous color changes. No matter what, it only works on post initialize.

If i try to replace or hijack think, it causes the car to act weirdly, and i dont know where else it would be good to add that function without copying a bunch of unnecessary code into it.

I do know it has to change that value in the CLIENT side, but it sitll doesnt work.
Animaritides 7 Sep @ 1:40pm 
Thanks!
AludriX  [author] 5 Sep @ 7:06pm 
@Animaritides ENT.NitrousEnabled, added to Stool too
Animaritides 5 Sep @ 9:13am 
Yeah, I am aware you can change those attributes.

What I am saying is that an attribute to enable/disable the nitrous on a specific vehicle, would be great.

As currently to disable nitrous on a single vehicle, you have to set the depletion rate to a high number and the regen rate to 0. It works, but it's kinda hacky.

For example, maybe have like a variable like, ENT.HasNitrous = 0 or ENT.CanUseNitrous = 0.

If that variable is set to 0, then optionally remove the nitrous bar for that specific vehicle.
AludriX  [author] 3 Sep @ 4:30am 
@Animaritides You can already change attributes per vehicle using the Nitrous Editor STool

If you are a Glide vehicle dev and you'd like to add your own nitrous attributes to your vehicle, you can do that within the vehicle lua as well by setting entity variables:

ENT.NitrousPower
ENT.NitrousDepletionRate
ENT.NitrousRegenRate
ENT.NitrousRegenDelay -- how long it takes until nitrous starts regenerating
ENT.NitrousBurst
ENT.NitrousColor -- Color()

-- Custom sounds, provide path to them without sound/
ENT.NitrousStartSound
ENT.NitrousLoopingSound
ENT.NitrousEndSound
ENT.NitrousEmptySound
ENT.CriticalDamageSound
Animaritides 1 Sep @ 8:46am 
Would be great to have an option to configure the ability for certain vehicles to use nitrous.
Ifrit 28 Aug @ 10:30am 
what vehicle is in the thumbnail? been looking for it for about a week

no luck lol
AludriX  [author] 18 Aug @ 9:12pm 
sure thing cuties