Garry's Mod

Garry's Mod

Custom Air Drag
49 kommentarer
Name  [ophavsmand] 22. mar. kl. 18:07 
@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 22. mar. kl. 17:59 
When I'm following an car, why does the air draft affects me and him?
Name  [ophavsmand] 24. dec. 2024 kl. 19:18 
@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 24. dec. 2024 kl. 17:53 
is there a way to reset props to their normal drag values?
bigulator 4. sep. 2024 kl. 15:15 
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  [ophavsmand] 4. sep. 2024 kl. 11:54 
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 3. sep. 2024 kl. 11:29 
Things with -5 drag go so fast they vanish sometimes. Is there any way to fix that?
bigulator 3. sep. 2024 kl. 11:14 
I've been looking for this exact addon for days. Only because I wanted to give props -5 air friction lol
aristlego 13. dec. 2022 kl. 10:23 
do not put air drag at -1.00 , big mistake
ArcticValor 22. feb. 2022 kl. 6:25 
the heck Megumin? what are you doing jeezus.
mac dre 7. feb. 2022 kl. 17:35 
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 28. mar. 2021 kl. 6:55 
This addon does not have furry character models in it
Name  [ophavsmand] 28. jan. 2021 kl. 11:12 
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 28. jan. 2021 kl. 7:50 
is there any way to enable slipstream?
Grooblious Boozler 8. aug. 2020 kl. 21:30 
I think this addon has some furry character models in it...
DerHobbyRoller 1. mar. 2020 kl. 4:55 
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 11. feb. 2020 kl. 13:34 
The addon its self works, removes air drag and all. May just be having issues with something else, will double check.
Name  [ophavsmand] 11. feb. 2020 kl. 11:07 
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 8. feb. 2020 kl. 20:07 
also the E2 function doesn't seem to work. Damn
Taco Salad 8. feb. 2020 kl. 20:03 
Love using this, but it doesn't save when using ADV dupe 2
Name  [ophavsmand] 16. okt. 2019 kl. 11:21 
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 13. okt. 2017 kl. 11:43 
Looks like the "Vermilion Server Management 2" is breaking this tool.
Kerouha 13. okt. 2017 kl. 9:55 
+ 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 2. feb. 2017 kl. 1:35 
if you like building Pro racing acf cars then use this for more grip and speed :)
El TomX 14. jan. 2017 kl. 15:22 
No sorry it was the rust racer addon :P
Name  [ophavsmand] 14. jan. 2017 kl. 14:58 
Are you sure this addon is causing that?
El TomX 14. jan. 2017 kl. 13:55 
When i try to load a play my game freeze with the loading screen
El TomX 14. jan. 2017 kl. 13:54 
I have an issue
tricky 22. juli 2016 kl. 22:50 
Good stuff. Made my 170km/h car go faster than 300km/h!
AlexsTheCat(Spanko UwU) 9. mar. 2016 kl. 9:01 
OMG ITS ME ON THE PCUTRE :3 <3 <3 ,3 <3 ,3 ,3 <3 ~!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
necromage 28. jan. 2016 kl. 6:56 
WHY HAVE I NEVER FOUND THIS BEFORE!!!!?!?!?!?!!?
Name  [ophavsmand] 8. juni 2015 kl. 8:20 
Yep, that's how it works :D
Negative air drag is basically a speed up.
Kibōchen 7. juni 2015 kl. 20:45 
What happens if I set speed dampening to -1 on my car...

(a few seconds later)

OH SHIT!
Name  [ophavsmand] 6. dec. 2014 kl. 18:09 
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 .
fleshy hinge 6. dec. 2014 kl. 17:06 
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  [ophavsmand] 20. okt. 2014 kl. 14:45 
It has been fixed, thanks for feedback.
fleshy hinge 18. okt. 2014 kl. 17:21 
I've found out that this doesn't seem to save with Adv Dupe 2.
cynaraos 13. okt. 2014 kl. 8:48 
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 21. sep. 2014 kl. 8:32 
nah
it made it really slow
Name  [ophavsmand] 21. sep. 2014 kl. 6:04 
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 21. sep. 2014 kl. 4:44 
scars?
jasnygwint69 20. sep. 2014 kl. 5:07 
Its not meant to be used with HL2 script based vehicles
chomilk 19. sep. 2014 kl. 7:16 
made my lonewolfie's cars slower :L
Luke Laferrari 29. maj 2014 kl. 10:44 
Man that picture is so awesome even when the car in it is one of my most hated cars existence. 100/0.0000000000001
Name  [ophavsmand] 8. maj 2014 kl. 0:17 
This is very simple tool, there's no tutorial needed.
Det. Joseph 7. maj 2014 kl. 1:23 
is there tutorial?
Techmarine 3. maj 2014 kl. 6:17 
That shit might be useful. Name, thank your master for making you work faster :D.
D 1. maj 2014 kl. 2:05 
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 30. apr. 2014 kl. 15:18 
Shittiest mod I have ever downloaded, 10/10