Omniscye-ZeroGMode icon

ZeroGMode

Adds a toggleable zero gravity mode to R.E.P.O., allowing players to float naturally with physics disabled. Works in singleplayer and multiplayer, only affecting players with the mod installed.

Last updated 3 weeks ago
Total downloads 683
Total rating 1 
Categories Mods Misc Client-side
Dependency string Omniscye-ZeroGMode-1.1.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
Zehs-REPOLib-2.1.0 icon
Zehs-REPOLib

Library for adding content to R.E.P.O.

Preferred version: 2.1.0

README

Zero-G Mode

Zero-G Mode is a player mobility mod for R.E.P.O. that lets players toggle zero gravity mode, allowing them to float freely in the air with natural physics. It works in both singleplayer and multiplayer, and only players with the mod installed will experience zero gravity effects.

What It Does

  • Allows players to toggle zero gravity mode with the Insert key
  • Disables gravity and drag on the player’s Rigidbody to enable floating
  • Preserves upward velocity to allow true floating and jumping without being pulled down
  • Limits zero-G usage with configurable duration and number of uses
  • Displays an on-screen UI showing remaining time and uses (5)
  • Automatically restores normal gravity and physics when zero-G mode ends
  • Fully compatible with multiplayer using Photon PUN (only affects local player)

How It Works

  • Uses Harmony to patch PlayerController lifecycle and physics update methods
  • Intercepts gravity application and disables Unity gravity during zero-G
  • Smoothly clamps downward velocity to zero while allowing upward movement
  • Tracks per-player zero-G state and timers in a dictionary
  • Injects an in-game UI overlay showing zero-G status and remaining uses
  • Syncs usage restrictions locally and only applies effects on the local player

Compatibility

  • Works seamlessly in singleplayer and multiplayer environments
  • Compatible with other mods and does not interfere with core gameplay
  • Only affects players who have the mod installed and enabled

Technical

  • Written in C# using HarmonyLib for runtime patching
  • Utilizes Rigidbody properties like useGravity and drag to control physics
  • Hooks into PlayerController.Start, Update, and FixedUpdate for state management
  • Provides customizable zero-G duration and usage limits
  • Includes debug logging for easier troubleshooting and development

Credits

Created by Omniscye