Garry's Mod
434 ψήφοι
Custom Air Drag
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Realism
Μέγεθος αρχείου
Αναρτήθηκε
Ενημερώθηκε
9.869 KB
30 Απρ 2014, 9:46
27 Σεπ 2020, 15:50
10 σημειώσεις αλλαγών ( προβολή )

Συνδρομή για λήψη
Custom Air Drag

ΣΕ 1 ΣΥΛΛΟΓΗ ΑΠΟ Name
Proper Sandbox - Server
61 αντικείμενα
ΠΕΡΙΓΡΑΦΗ
Scripted tool to modify air drag and damping properties of entities.
Correctly adjusting velocity and rotation damping can improve speeds of custom built vehicles.


Features
       • Enable / disable prop's air drag
       • Changing prop's air drag properties
       • Area selection
       • E2 function - entity:setCustomAirDrag()

How to use
       • Left                        Select / unselect prop
       • Left + Shift             Area selection
       • Right                      Apply air drag properties
       • Reload                   Unselect all props
49 σχόλια
Name  [Δημιουργός] 22 Μαρ, 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 Μαρ, 17:59 
When I'm following an car, why does the air draft affects me and him?
Name  [Δημιουργός] 24 Δεκ 2024, 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 Δεκ 2024, 17:53 
is there a way to reset props to their normal drag values?
bigulator 4 Σεπ 2024, 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  [Δημιουργός] 4 Σεπ 2024, 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 Σεπ 2024, 11:29 
Things with -5 drag go so fast they vanish sometimes. Is there any way to fix that?
bigulator 3 Σεπ 2024, 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 Δεκ 2022, 10:23 
do not put air drag at -1.00 , big mistake
ArcticValor 22 Φεβ 2022, 6:25 
the heck Megumin? what are you doing jeezus.