Garry's Mod

Garry's Mod

34 ratings
Smart Suspension
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
File Size
Posted
Updated
33.832 KB
28 Dec, 2024 @ 12:09pm
25 Jul @ 1:21pm
17 Change Notes ( view )

Subscribe to download
Smart Suspension

Description
Should now work better in multiplayer!
Some other bugs have been patched recently. Check the change notes.

This tool simplifies the long process of creating suspensions for your vehicles (using only vanilla constraints).
This is in no way a visual tool: it is meant to mimic a suspension's function, not its appearance.

What it does
This tool lets you create suspensions with many options:
  • Elastics for the suspension's rigidity
  • Rope sliders for the suspension's freedom of movement
  • One rope to limit how far the suspension can go
  • Advanced ballsocket for the rotation of the wheel. These work without you needing to align your props with the world's axises.
You can toggle those on or off before creating the suspension.
Since you can choose what stuff to disable, you can also use this tool to create rope sliders and more.


How to use it
  1. Select the Smart Suspension tool in your Spawn Menu.
  2. Click on the entity you want to attach the wheels of your vehicle to: this is your vehicle base.
  3. Give the suspension its vertical direction and its up and down senses. To do that, click on any surface (e.g. the top of your vehicle base).

  4. Click on the wheel (any object) that you want to attach.
  5. Give the wheel its rotation/spin axis. To do that, click on another surface (e.g. the side of your vehicle, or side of your wheel).
  6. The suspension should now be created. You're back to step 4.


Common problems
  1. Weird behavior after duping. This is probably because you use the base GMod's duplicator. To fix that you can either:

    • Learn to use Advanced Duplicator 2
    • Try to use Better Dupe (not tested)
    • Or don't use the advanced ballsocket option, since it's often what's broken by the duplicator.


  2. Your vehicle shakes violently after creating a suspension, to fix that, you can either:

    • Use the Re-Elastic Tool to quickly weaken all the elastics.
    • Delete and remake the suspension with weaker elastics.
    • Keep the suspension, increase the weight of your wheels/vehicle using the Improved Weight tool (non-vanilla).


  3. Your wheels clip through the ground at high speed. This is due to their shape: they are not perfect cylinders. To fix that, you can:

    • Use the Make Spherical tool (non-vanilla) on your wheels.
    • Test your vehicle with other wheels.


Notes
  • ConVar names for this tool start with 'basic_suspension_'


Please tell me about any bugs or problems you've encountered!
Popular Discussions View All (2)
1
6 Jul @ 1:20am
Suggestions
Alex
0
13 May @ 11:01pm
Bug Reports
Alex
5 Comments
tc2142 25 Jul @ 12:31pm 
Ohh, it's the ropes being rigid which does it, I see! I had thought the rope distance having to increase and decrease slightly as the prop moves up and down would have been an issue, but I guess not somehow. I have also found having simply two ropes at 90 degrees works well enough if one is trying to keep the constraint count to a minimum, as long as the intended suspension travel is short, as the prop will then move on a diagonal curved path. Regardless of the configuration, this use of ropes seems really shockingly effective to me.
Alex  [author] 25 Jul @ 12:09pm 
They're just 4 very long ropes with rigid set to true. Each rope removes some freedom of movement and the 4 combined together only lets the entity move up and down (or whatever direction is perpendicular to the 4 ropes). You could probably make one using only 3 ropes.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3534507531
tc2142 23 Jul @ 8:27am 
I'll have to admit, in my over 37k+ hours in this game, I've never heard before of a "Rope Slider", or seen one.. Seems less unstable than a conventional slider, how does it work?
little andy 13 Mar @ 12:43pm 
thank you so much for this mod... at long last!!!
Psyden 7 Jan @ 10:53am 
Great addon, makes it easy and gives a quality result
Did not know about 4 rope sliders