Nitrous Oxide Injection
Controls nitrous oxide (NOS/N2O) injection systems that provide temporary power boosts by enriching the combustion mixture with additional oxygen. Manages bottle pressure, solenoid activation, fuel enrichment, and injection timing.
Controls nitrous oxide (NOS/N2O) injection systems that provide temporary power boosts by enriching the combustion mixture with additional oxygen. Manages bottle pressure, solenoid activation, fuel enrichment, and injection timing.
Public API
| Function | Description |
|---|---|
toggleActive() | Toggles the system arming status. If arming, it automatically triggers a short line purge. |
setOverride(active) | Controls the manual override state. |
updateSimpleControlButtons() | Refreshes the powertrain control button with current arming and activation colors. |
Hooks
| Hook | Description |
|---|---|
init(jbeamData) | Connects to the engine's N2O hardware and registers the radial menu and simple control buttons. |
updateGFX(dt) | Periodically synchronizes the UI state (button colors and tank levels) with the underlying powertrain hardware. |
serialize() | Handles state persistence for the system arming status. |
module.reset(jbeamData) | Resets the controller to its initial state. |
Usage Example
-- Nitrous is typically activated via input binding
-- The controller manages bottle pressure and enrichment automaticallySee Also
- JATO — Rocket thrust augmentation
- Anti-Lag — Turbo anti-lag system
- Two Step Launch — Launch control
Logger Template
A template controller for data logging and telemetry recording. Demonstrates how to capture vehicle state data at regular intervals and output it for analysis. Copy this as a starting point for custom data loggers.
Player Controller
The main controller for the walking/unicycle character mode. Manages movement physics using PID-based stabilization on a ball, handles jumping, crouching, and camera-relative directional input. Provides compatibility variables for dashboard UI elements.