PEAK
You are viewing a potentially older version of this package. View Latest Version
Install

Details

Date Uploaded
3 weeks ago
Downloads
394
Size
91KB
Dependency string
kiberzulies-GravityControl-2.0.0

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.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.