Nitrous Oxide Injection
Chemical boost system that injects nitrous oxide (N₂O) into the engine intake for temporary power increases. Models tank capacity, arming, and injection state.
Chemical boost system that injects nitrous oxide (N₂O) into the engine intake for temporary, significant power increases. Models tank capacity, arming logic, and injection state. Typically a sub-module of the Combustion Engine.
Public API
| Variable | Type | Description |
|---|---|---|
isExisting | boolean | Whether a nitrous system is installed on this engine. |
isArmed | boolean | Whether the system is armed (ready to inject when triggered). |
isActive | boolean | Whether nitrous is currently being injected. |
Hooks
| Hook | Description |
|---|---|
init | Initializes the N₂O system from JBeam data and links to the parent engine device. |
updateGFX | Updates injection state, tank level, and UI feedback each frame. |
Usage Example
-- Access via the engine device
local engine = powertrain.getDevice("mainEngine")
if engine.nitrousOxide and engine.nitrousOxide.isExisting then
-- Arm the system
engine.nitrousOxide.isArmed = true
endSee Also
- Combustion Engine — Parent engine device
- Supercharger — Mechanical forced induction
- Turbocharger — Exhaust-driven forced induction
- Booster — External force boost
Multi-Shaft
Powertrain device that connects multiple rotational shafts together. Distributes torque across several outputs, used for complex drivetrain layouts like multi-axle trucks.
Powertrain Base Device
Base class inherited by all powertrain components. Provides common methods for locking, disabling, and querying device state. Every powertrain device shares these properties.