Garry's Mod

Garry's Mod

Custom Air Drag
49 Comments
Name  [author] Mar 22 @ 6:07pm 
@havik I doubt that Source engine takes other entities into account when calculating air drag. I'd assume it's either placebo or maybe a different addon doing that. This addon only changes variables that Source uses to calculate the drag. It doesn't change the equations in any other way.
Dixon Mar 22 @ 5:59pm 
When I'm following an car, why does the air draft affects me and him?
Name  [author] Dec 24, 2024 @ 7:18pm 
@z̕͢oin̵k
Unfortunately Garry's Mod API doesn't provide a way to get information about the default drag properties of an entity, at most you can read the current state or change it.
I could technically store the initial values when the tool is first used on the prop, before applying the properties, but not sure if it's worth it.
If you have access to E2 or Starfall, you could probably whip out something that fits your needs quite quickly.
z̕͢oin̵k Dec 24, 2024 @ 5:53pm 
is there a way to reset props to their normal drag values?
bigulator Sep 4, 2024 @ 3:15pm 
They don't have to escape the map to disappear though, props can vanish when they spin too fast. Ik buggy props aren't the point of this addon but I only made them for funny physics interactions. I would've fixed this or made something like this for myself but idk how to code lua currently.
Name  [author] Sep 4, 2024 @ 11:54am 
They probably just gain so much velocity that they fly outside of the map boundaries and get deleted by the engine.
You could probably hack around this in a few ways, but it's definitely outside of the scope for this addon. Just don't let your props fly around loose with negative drag :P
bigulator Sep 3, 2024 @ 11:29am 
Things with -5 drag go so fast they vanish sometimes. Is there any way to fix that?
bigulator Sep 3, 2024 @ 11:14am 
I've been looking for this exact addon for days. Only because I wanted to give props -5 air friction lol
aristlego Dec 13, 2022 @ 10:23am 
do not put air drag at -1.00 , big mistake
ArcticValor Feb 22, 2022 @ 6:25am 
the heck Megumin? what are you doing jeezus.
Osamabeendabbin Feb 7, 2022 @ 5:35pm 
thanks for making this I've been trying to build a monster truck map and it just wont do flips through the air it flips then slows down in both velocity and rotation even for solid steel. if I dont repost it worked great to my liking.
Niterux Mar 28, 2021 @ 6:55am 
This addon does not have furry character models in it
Name  [author] Jan 28, 2021 @ 11:12am 
No, I don't think Source engine even has the capability of doing this.
Even if, none of it is exposed to GMod's API.
FRZ Jan 28, 2021 @ 7:50am 
is there any way to enable slipstream?
Grooblious Boozler Aug 8, 2020 @ 9:30pm 
I think this addon has some furry character models in it...
DerHobbyRoller Mar 1, 2020 @ 4:55am 
Totally best addon on the workshop I couldnt find a better one. If you see this comment then please please get this. First I thought I didnt need air drag for cars but after i got it i couldnt think without it.
Taco Salad Feb 11, 2020 @ 1:34pm 
The addon its self works, removes air drag and all. May just be having issues with something else, will double check.
Name  [author] Feb 11, 2020 @ 11:07am 
Works for me without any issues.
Copied entities save their velocity and rotation drag.
E2 Function works too:
entity():isWeldedTo():setCustomAirDrag(1, -1, 100)

Do you see any errors when using it?
Do you see following addon load messages in your console?
Custom Air Drag loaded properly (clientside)
Custom Air Drag loaded properly (serverside)

To check:
1. Type clear into your console
2. Launch singleplayer
3. After you spawn, copy everything from your console
4. Use external program like Notepad and search for Custom Air Drag
5. If you don't see both of those messages, search for customairdrag.lua and send me the full error messages

Thanks!
Taco Salad Feb 8, 2020 @ 8:07pm 
also the E2 function doesn't seem to work. Damn
Taco Salad Feb 8, 2020 @ 8:03pm 
Love using this, but it doesn't save when using ADV dupe 2
Name  [author] Oct 16, 2019 @ 11:21am 
I've checked out the Vermilion Server Management 2, it's comment section is full of bugs and people complaining it's breaking important stuff like Prop Protection, PAC3, resets UTime.
And for an addon of it's scope it hasn't been updated in a long time, thus I'm not gonna get into what's really happening there.
Kerouha Oct 13, 2017 @ 11:43am 
Looks like the "Vermilion Server Management 2" is breaking this tool.
Kerouha Oct 13, 2017 @ 9:55am 
+ Does the intended thing
– Had to disable all addons to make it work

1/0 what the hell

By the way, what does "enable air drag" do?
ChyonE Feb 2, 2017 @ 1:35am 
if you like building Pro racing acf cars then use this for more grip and speed :)
El TomX Jan 14, 2017 @ 3:22pm 
No sorry it was the rust racer addon :P
Name  [author] Jan 14, 2017 @ 2:58pm 
Are you sure this addon is causing that?
El TomX Jan 14, 2017 @ 1:55pm 
When i try to load a play my game freeze with the loading screen
El TomX Jan 14, 2017 @ 1:54pm 
I have an issue
tricky Jul 22, 2016 @ 10:50pm 
Good stuff. Made my 170km/h car go faster than 300km/h!
AlexsTheCat Mar 9, 2016 @ 9:01am 
OMG ITS ME ON THE PCUTRE :3 <3 <3 ,3 <3 ,3 ,3 <3 ~!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
necromage Jan 28, 2016 @ 6:56am 
WHY HAVE I NEVER FOUND THIS BEFORE!!!!?!?!?!?!!?
Name  [author] Jun 8, 2015 @ 8:20am 
Yep, that's how it works :D
Negative air drag is basically a speed up.
Kibōchen Jun 7, 2015 @ 8:45pm 
What happens if I set speed dampening to -1 on my car...

(a few seconds later)

OH SHIT!
Name  [author] Dec 6, 2014 @ 6:09pm 
The issue was caused by Expression 2 extension was disabled, it still does highlight the text though. I Committed new version in which extension is enabled by default, if this still doesn't work ask owner's server to run these two commands:
wire_expression2_extension_enable customairdrag
wire_expression2_reload
This will enable it, otherwise if you don't like this to be used by players, then run these 2 commands, but instead enable , type disable .
nearly chivalrous Dec 6, 2014 @ 5:06pm 
Another issue, the E2 function doesn't seem to work, it isn't modifying drag.

Code used:

@name test
@inputs Prop:entity


Prop:setCustomAirDrag(0,0,0)

Prop is 1kg and when it falls it still has drag
Name  [author] Oct 20, 2014 @ 2:45pm 
It has been fixed, thanks for feedback.
nearly chivalrous Oct 18, 2014 @ 5:21pm 
I've found out that this doesn't seem to save with Adv Dupe 2.
cynaraos Oct 13, 2014 @ 8:48am 
I can approve of this tool, as it makes my crappy vehicle go 2x faster

it really does

before = 110 km/h max
after = 220+ km/h max


video proof can be given
chomilk Sep 21, 2014 @ 8:32am 
nah
it made it really slow
Name  [author] Sep 21, 2014 @ 6:04am 
It's created for players-built cars but you can try to use it on SCars, maybe it will affect it in some way.
chomilk Sep 21, 2014 @ 4:44am 
scars?
jasnygwint69 Sep 20, 2014 @ 5:07am 
Its not meant to be used with HL2 script based vehicles
chomilk Sep 19, 2014 @ 7:16am 
made my lonewolfie's cars slower :L
Luke Laferrari May 29, 2014 @ 10:44am 
Man that picture is so awesome even when the car in it is one of my most hated cars existence. 100/0.0000000000001
Name  [author] May 8, 2014 @ 12:17am 
This is very simple tool, there's no tutorial needed.
Det. Joseph May 7, 2014 @ 1:23am 
is there tutorial?
Techmarine May 3, 2014 @ 6:17am 
That shit might be useful. Name, thank your master for making you work faster :D.
D May 1, 2014 @ 2:05am 
Nice shit, I'll use it.
(Name is paying for good comments, He's playing in bed with kuben,then kuben is giving me money).
Tek Apr 30, 2014 @ 3:18pm 
Shittiest mod I have ever downloaded, 10/10