Skip to content

Fix hydraulics not working on monster trucks - #5159

Open
TheCrazy17 wants to merge 1 commit into
multitheftauto:masterfrom
TheCrazy17:fix/monster-truck-hydraulics-clean
Open

Fix hydraulics not working on monster trucks#5159
TheCrazy17 wants to merge 1 commit into
multitheftauto:masterfrom
TheCrazy17:fix/monster-truck-hydraulics-clean

Conversation

@TheCrazy17

Copy link
Copy Markdown
Contributor

Summary

Monster trucks now get working hydraulics. The horn raises and lowers the truck, the hydraulic jump button hops every wheel at once, and the right stick tilts it, the same control scheme lowriders already have.

Motivation

Fixes #1743. CAutomobile::HydraulicControl treated monster trucks as ordinary cars and fought CMonsterTruck's own suspension model over the same fields every frame, which is what broke their suspension when the upgrade was installed.

Test plan

Install the hydraulics upgrade on a monster truck and confirm it behaves just like a lowrider: the horn raises and lowers it, the jump button hops it, and the stick tilts it while raised, with no suspension breaking.

Checklist

  • Your code should follow the coding guidelines.
  • Smaller pull requests are easier to review. If your pull request is beefy, your pull request should be reviewable commit by commit.

CAutomobile::HydraulicControl treated monster trucks as ordinary cars and fought CMonsterTruck's own suspension model over the same fields every frame, so this recreates the same hydraulics control scheme aimed at CMonsterTruck's own suspension travel instead, which the truck raises and lowers by sliding that whole travel window relative to the chassis rather than by moving the wheel position directly.
@TheCrazy17 TheCrazy17 closed this Aug 7, 2026
@TheCrazy17
TheCrazy17 deleted the fix/monster-truck-hydraulics-clean branch August 7, 2026 22:30
@TheCrazy17
TheCrazy17 restored the fix/monster-truck-hydraulics-clean branch August 7, 2026 22:30
@TheCrazy17 TheCrazy17 reopened this Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Monster trucks cannot add hydraulics

1 participant