Garry's Mod

Garry's Mod

Glide // Circular Functions (Nitrous, Health Bar)
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
NextKurome76TheSoldier 17 Aug @ 5:08pm 
the critical damage warning doesnt fit well with old style vehicles, it could use an ConVar
bearishplane17 16 Aug @ 9:38am 
Need a option to turn off that AI voice when your vehicle's hp is low.

It doesn't really make sense in some circumstances.
ButtercupUtoniumGaming 8 Aug @ 5:57am 
Cool
Nate, some fluffy Lu 6 Aug @ 3:38pm 
Would love to get a fire trail boost, not unlike the P12 88 in Burnout Paradise
vyquad 6 Aug @ 8:24am 
Are there plans for different nitro modes? Like Mode A is default, Mode B is overheat (see motorstorm monument valley or pacific rift), Mode C is midnight club style with charge buildup, and Mode D is like speed racer the videogame where theres charge buildup but each charge if done in sequence is more powerful
pibab 6 Aug @ 6:29am 
need for speeeed
Gplay47 6 Aug @ 5:37am 
perfect
fede p 5 Aug @ 5:08pm 
Can I have the Nitrus today
IgnitedRadium 5 Aug @ 1:13am 
pretty neat so far, i assume y'all will eventually add configurable options for the Nitrous feature (stuff like meter capacity, depletion/recharge rate, cooldown time), curious to see what's in store in the future
G-G-G-GAMERSHOT 4 Aug @ 8:31pm 
SCars has finally been usurped
Vinnie Bounty Hunter 4 Aug @ 7:46pm 
and now Cameras Glide please
/PROTAILSPROWER/ 4 Aug @ 9:30am 
Glad N2O is a thing now. Thanks!
Sing 4 Aug @ 8:58am 
Finally, rubberbanding.
Majster 4 Aug @ 8:57am 
she fast on my furious till i 2
TalonSolid 4 Aug @ 8:42am 
Best thing ever
Klonoa 4 Aug @ 8:41am 
Finally some fast and furious in my gmod races that looks crazy even without it
gustito 4 Aug @ 8:41am 
Nice🤑