Garry's Mod

Garry's Mod

124 ratings
[simfphys] Hydraulics System for Lowriders
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Vehicle
Addon Tags: Fun, Roleplay
File Size
Posted
556.787 KB
16 May, 2020 @ 8:06am
1 Change Note ( view )

Subscribe to download
[simfphys] Hydraulics System for Lowriders

Description
"You up for a bounce, homie?"
Read through the description for the control scheme!

This is an addon to the simfphys base that allows the driver to more precisely control parts of their suspensions to perform certain showoff tricks, just like with hydraulics suspensions.
This addon was mostly inspired by the mission Cesar Vialpando encountered in GTA San Andreas, but it also features ideas and content from Need For Speed Underground II, which also boasts a Hydraulics system.

This addon also includes a HUD element representing the status of the suspension system, and whether the hydraulics can be used or not. It also includes addictive hydraulic sounds from Need for Speed Underground II.

All of which is mainly customizable by using console variables for now:
sv/cl_simfphys_hydraulics_[...]
sv_simfphys_hydraulics_enabled // "Enable or disable hydraulics functionality from the driver's seat; 1 = enabled, 0 = disabled"; Likely requires a restart cl_simfphys_hydraulics_volume // "Sets the volume on sounds being played by using hydraulics" sv_simfphys_hydraulics_filter_by_category // "Enable or disable filtering hydraulics functionality based on simfphys vehicle category; 1 = enabled, 0 = disabled" // ON by default. Turn this off to enable hydraulics on more vehicles. sv_simfphys_hydraulics_filter_by_category_args // "Vehicle categories to filter towards hydraulics, whole names separated" sv_simfphys_hydraulics_filter_by_name // "Enable or disable filtering hydraulics functionality based on simfphys vehicle name; 1 = enabled, 0 = disabled" // OFF by default. Turn this on to filter hydraulics on fewer vehicles. sv_simfphys_hydraulics_filter_by_name_args // "Vehicle names to filter towards hydraulics, whole names separated" cl_simfphys_hydraulics_filter_show_hud_icon // "Show hydraulics icon on the Hud when hydraulics are not filtered to the vehicle; 1 = enabled, 0 = disabled" sv_simfphys_hydraulics_max // "Sets the maximum height the suspension can attain when controlled by hydraulics (1-0)" sv_simfphys_hydraulics_min // "Sets the minimum height the suspension can attain when controlled by hydraulics in negatives -(1-0)" sv_simfphys_hydraulics_SpringConstant_modifier_strength // "Sets the amount of modification being done to SpringConstant in order to achieve sideways bounce (1-0)" sv_simfphys_hydraulics_SpringDamping_modifier_strength // "Sets the amount of modification being done to SpringDamping in order to achieve sideways bounce (1-0)"
NOTE: The default filters limit hydraulics to the Lowrider package of GTA San Andreas also found on the workshop, but this can be tweaked to whichever categories and vehicle names you want. Not a strict requirement but it is recommended. The trucking equipment is not required either unless you like to bounce with Trailers.

NOTE: Most of the code inside is inherited from the simfphys base, and I can't say that I know Lua particularly well in comparison to the author of that base, so you will still need the original simfphys base for this addon to work.

I highly recommend tweaking sv_simfphys_hydraulics_max/min to an interval that is comfortable for the vehicles you are using. Otherwise you may end up trading bumper paint and sparks with the ground, depending on how shallow the wheels are.

---

Indeed, the hydraulics are applicable to almost every vehicle with tweakable suspension, which includes practically every vehicle I have ever subscribed to from simfphys, so you can expect quite a lot of vehicles to bounce right, if you are gentle with them.

Controls:
  • Bounce in all four directions using the directional arrows on your keyboard: ←, →, ↑, ↓
    (Each bounce occupies two wheels in each selected direction at a time)

  • Raise or lower ALL suspension by using the RIGHT SHIFT key and the RIGHT CTRL key respectively: R⇧, RCTRL
    (Press the same button twice to reset ALL hydraulics to the original state)

Upcoming features
Because the suspension system with simfphys is somewhat limiting for applying to Hydraulics, I plan to incorporate more tricks in the future, as I add to this mod with more features. I also anticipate to add a nozzle system for spraying Nitrous Oxide in different colors and patterns, which is also a prominent feature found in Need For Speed Underground II. Ontop of this, I may eventually consider making a Lowrider Meet Minigame, assuming that I can get the timings down to be most fair. No promises because that would be kind of awesome but also really complicated.
28 Comments
Dragun Slayur 13 Dec, 2022 @ 2:14am 
I always struggled with low fps spawning simfphys (70-80) but after disabling this mod it goes up to 250 thats weird
HexStrain 1 Nov, 2022 @ 10:20am 
Is is this going to reduce the performance of my DarkRP server?
☭Towarzysz ☭ 8 Oct, 2022 @ 3:17am 
i dont know why it doesnt work unnown command ):
goner_man 13 Sep, 2022 @ 5:35pm 
how do i put it on the car?
M 29 Aug, 2022 @ 6:03am 
Rated! Thumb up left :)
Could you help my dupe out too?
I am collecting on achievement. Thanks bro!
https://steamproxy.net/sharedfiles/filedetails/?id=2631257035
Dwatson00 19 Jul, 2022 @ 1:12pm 
i think i broke mys how do you fix it tho pls help me
:steamsad:
Dwatson00 6 Feb, 2022 @ 9:05am 
Wait i forgot which console commands that able to use this Hydraulics on the other simfphys cars like a 1958 chevy impala (that is actually a low-rider IRL)
moralesmar 5 Feb, 2022 @ 4:53pm 
ou yiea ma niga
Fixus 27 Oct, 2021 @ 10:55am 
Something creating errors
Злой Задрот 8 May, 2021 @ 5:45am 
How can I disable this filtering? I don’t know English and use a translator.