Garry's Mod

Garry's Mod

36 个评价
Smart Suspension
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑, 快乐
文件大小
发表于
更新日期
52.282 KB
2024 年 12 月 28 日 下午 12:09
8 月 21 日 上午 7:49
18 项改动说明 ( 查看 )

订阅以下载
Smart Suspension

描述
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 and known 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 vehicle gets stuck in a tilted position, this is most likely caused by the distance-limiting rope and can be fixed by:

    • Removing it using Constraint Remover.
    • Remaking the suspension without such a rope or with a high upper extension (check the Extension options in the menu).


  4. 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!
热门讨论 查看全部(2)
1
7 月 6 日 上午 1:20
Suggestions
Alex
0
5 月 13 日 下午 11:01
Bug Reports
Alex
5 条留言
tc2142 7 月 25 日 下午 12:31 
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  [作者] 7 月 25 日 下午 12:09 
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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3534507531
tc2142 7 月 23 日 上午 8:27 
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 3 月 13 日 下午 12:43 
thank you so much for this mod... at long last!!!
Psyden 1 月 7 日 上午 10:53 
Great addon, makes it easy and gives a quality result
Did not know about 4 rope sliders