-
Notifications
You must be signed in to change notification settings - Fork 225
Cars – Setup controllers
Setup controllers allow to hide a certain setup item and instead control it live with a dynamic controller. With new inputs it means you can now tie certain setup items to extra buttons, things like headlights state or even values set live by physics script written in Lua.
To configure a setup item for this purpose, simply add “EXT_CONTROLLER” value like so:
[ROD_LENGTH_LR]
TAB=SUSPENSIONS
SHOW_CLICKS=2
…
HELP=HELP_LR_RODLENGTH
EXT_CONTROLLER=ctrl_setup_rod_length.ini
And prepare a new controller as usual (same as used by AC physics):
[CONTROLLER_0]
COMBINATOR=ADD
INPUT=BRAKE
LUT=(| 0=400 | 1=4000 |)
FILTER=0
UP_LIMIT=1000000
DOWN_LIMIT=0
(In this particular example I tied suspension height to brake button so car would jump when brakes are pressed like so.)
Note: currently the system doesn’t work with new setup items added by CSP, fix is coming with 0.1.80.
Pro tip: if you’re tying things to extra A/B/C/D/E/F switches, you can get them to work in toggle or hold-to-activate mode, or block them from changing in some conditions (for example, if car is moving). Something like this could be used to recreate top speed switch of a Bugatti, for example.
If you have any questions or suggestions, please feel free to add a new issue.
- Enabling Extended Physics
- Aerodynamics
- Body Flex
- Custom Suspension Joints
- Driver Weight Shift for Karts
- Extra Turbo Options
- More Clutch Damage
- New Inputs for Dynamic Controllers
- Physics Scripts
- Setup Items Driven By Controllers
- Suspension
- Cosmic Suspension
- Tyre Types
- Enabling Extended Physics
- General Options
- Custom Raycasting
- Collision Parameters
- Dynamic Physics Objects
- Geometric colliders
- Surface Tweaks
- Extra FX Flags
- Extra FX Emissive
- Mesh Adjustments
- Model Replacements
- Shader Replacements
- Scene Queries
- UV2
- General Options
- Analog Instruments
- Animations
- Digital Instruments
- Emissive Objects
- Extra Switches
- Inputs
- LED panels
- Multichannel Emissives
- Vintage Tachometers
- Audio
- Brake Disc FX
- Deforming Bonnets
- Driver Model
- Exhaust Smoke
- Exhaust Flames
- Extra Lights
- Fake Shadows FX
- Local Cubemaps
- Mesh Splitting
- Miscellaneous Options
- Neck FX
- Node Adjustments
- Smart Mirror
- Sparks
- Tyres FX
- Visually Adjustable Wings
- Wheels
- Wobbly Bits
- Wobbly Wipers