How the gas meter works

Hold vs Tap

Holding Gas drains normalGasCost 12 gas per second (ConsumeGas(NormalGasCost × dt)). With a maximum capacity of 100 gas (maxGas), a full meter lasts ~8.3 s of continuous holding.

A key press shorter than 0.1 s (normalGasTapThresholdSeconds) counts as a tap: an immediate impulse of 30 force (normalGasTapBurstForce) costing a flat 10 gas (normalGasTapCost).

Regeneration & Delay

Every gas use resets a regeneration timer. Gas refill starts after a 0.75 s delay (gasRegenDelay) following the last gas action, then regenerates at 18 gas per second (gasRegenPerSec).

Depletion Lockout

If the gas meter drops to 0 (≤ 0.01), the player is marked depleted and locked out of using gas. The meter cannot be used again until it regenerates to gasRecoverPercent: 0.35 of max (35 gas).

Reaching this threshold takes the initial 0.75 s delay plus 35 / 18 s ≈ 2.7 s total lockout time.

Thrust Ramp & Fade

Continuous thrust does not apply full power instantaneously. Force ramps from 100 (minGasForce) to 900 (normalGasForce) over 1.5 s (gasRampSeconds).

When releasing the button, thrust decays over 0.5 s (gasReleaseSeconds).

Airborne Propulsion

With noGasWhenAirborne = 0, gas propulsion functions in mid-air. Players can fart-thrust to steer or extend distance after hitting jump pads, ramp jumps, or launch obstacles.

Gas Meter Configuration

Configuration parameters for the player gas meter (PirateGasConfig).

default_gas_config
PropertyField NameValueUnitDescription
Max GasmaxGas100—Maximum gas meter capacity per player
Gas Regen RategasRegenPerSec18/secPassive recharge rate per second after delay
Gas Regen DelaygasRegenDelay0.75SecondsDelay after last gas use before regeneration starts
Gas Recover ThresholdgasRecoverPercent0.35 of max (35 gas)—Threshold required to exit depletion lockout (0.35 × 100 = 35 gas)

Raft Boat Physics Configuration

Rigid body forces, acceleration curves, and floating parameters (BoatPhysicsConfig).

default_boat_physic_configs
PropertyField NameValueUnitDescription
Normal Gas ForcenormalGasForce900—Full continuous fart thrust force applied to raft
Normal Gas CostnormalGasCost12/secGas drained per second while holding thrust (~8.3 s full meter)
Tap ThresholdnormalGasTapThresholdSeconds0.1SecondsMaximum button press duration counted as a tap
Tap Burst ForcenormalGasTapBurstForce30—Impulse force applied on a tap
Tap Burst CostnormalGasTapCost10—Flat gas cost deducted per tap burst
Min Gas ForceminGasForce100—Starting thrust force at onset of ramp
Gas Ramp TimegasRampSeconds1.5SecondsTime to ramp up from minGasForce (100) to normalGasForce (900)
Gas Release TimegasReleaseSeconds0.5SecondsTime for thrust force to fade out after button release
No Gas When AirbornenoGasWhenAirborne0—Set to 0 in game code: gas also works in the air
Slow MultiplierslowMultiplier0.45—Movement speed factor when affected by slow debuff
Item Box Boost ForceitemBoxBoostForce2600—Instant impulse from speed boost item box pickup
Ground Contact DistancegroundContactDistance1.5—raft floating tuning
Water Ride HeightwaterRideHeight0.45—raft floating tuning
Water SpringwaterSpring42—raft floating tuning
Water DampingwaterDamping7.5—raft floating tuning

Guides with Gas Mechanics

Guides, walkthroughs, and strategies covering this mechanic.