You are viewing a potentially older version of this package. View all versions.
kiberzulies-GravityControl-2.0.0 icon

GravityControl

v2.0: reworked purple GUI, negative gravity support. Standalone gravity multiplier for PEAK - slider + presets (1x/0.75x/0.5x/0.25x/0x/-1x), toggle key configurable in the .cfg file.

Date uploaded 2 weeks ago
Version 2.0.0
Download link kiberzulies-GravityControl-2.0.0.zip
Downloads 33
Dependency string kiberzulies-GravityControl-2.0.0

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

README

Gravity Control

Standalone PEAK mod that lets you tune your local gravity, extracted and rebuilt from PeakAdminMenu's gravity multiplier feature.

v2.0 - "revolutionary" update

  • Reworked GUI: custom purple theme instead of the plain PeakAdminMenu-style look.
  • Negative gravity support (slider now goes down to -1x by default, with a quick -1x preset).
  • Toggle key is a proper BepInEx config entry (ToggleKey in the .cfg file, or via a config-manager mod) instead of being hardcoded - by design it's not a control inside the window itself.

Features

  • Press the toggle key (I by default) to open/close the Gravity Control window.
  • Slider from -1x to 1x gravity (range configurable via MinGravityMultiplier / MaxGravityMultiplier in the .cfg file).
  • Quick presets: 1x, 0.75x, 0.5x, 0.25x, 0x, -1x.
  • Automatically restores your original gravity values on death/respawn or when the mod is unloaded, so it never leaves your character in a broken state.

Config

On first launch, BepInEx generates BepInEx/config/tim.peak.gravitycontrol.cfg with:

  • ToggleKey - the key that opens/closes the window (default: I).
  • MinGravityMultiplier / MaxGravityMultiplier - slider bounds (default: -1 / 1).

How it works

Character.localCharacter (falling back to Player.localPlayer.character) exposes character.refs.movement, a CharacterMovement component with public jumpGravity and maxGravity fields. The plugin snapshots the original values once, then every frame sets jumpGravity = original * multiplier (and the same for maxGravity). This is purely client-side/local physics - no networking or Harmony patch required.

CHANGELOG

Changelog

2.1.0

  • Fixed custom GUI occasionally rendering with no background/buttons (only text), caused by runtime-created textures being destroyed by the engine. They're now protected and rebuilt automatically if this happens.
  • Toggle key is now a plain KeyCode config entry instead of a KeyboardShortcut, so it's simpler to edit in the .cfg file and displays correctly in config-manager mods.
  • Cursor unlock is now re-applied every frame while the window is open, fixing cases where the game's own camera script re-locked the cursor right after ours ran.

2.0.0

  • Reworked GUI with a custom purple theme (replacing the plain PeakAdminMenu-style look).
  • Added negative gravity support: slider range extended to -1x..1x by default, plus a -1x preset.
  • Slider range is now configurable (MinGravityMultiplier / MaxGravityMultiplier in the .cfg file).
  • Toggle key remains a BepInEx config entry (ToggleKey), intentionally kept out of the in-window GUI.

1.0.1

  • Version bump for re-upload, no code changes.

1.0.0

  • Initial release: gravity slider (0x-1x) with presets (1x/0.75x/0.5x/0.25x/0x), toggled with I.