DisplayGunStats
Shows live gun stats in the Gear Details menu and as an in-game HUD overlay.
| Date uploaded | 3 weeks ago |
| Version | 1.4.2 |
| Download link | Sparroh-DisplayGunStats-1.4.2.zip |
| Downloads | 111 |
| Dependency string | Sparroh-DisplayGunStats-1.4.2 |
This mod requires the following mods to function
BepInEx-BepInExPack_Mycopunk
BepInEx pack for Mycopunk. Preconfigured and ready to use.
Preferred version: 5.4.2403Sparroh-SparrohUILib
Shared UI library for Sparroh Mycopunk mods. Provides themed widgets, HUD builders, windows, and resolution-aware layout.
Preferred version: 1.2.2README
DisplayGunStats
A BepInEx mod for Mycopunk that shows live gun stats both while editing weapons in the Gear Details menu and as an in-game HUD overlay.
Features
Gear Details Stats Window
- Adds a Gun Stats button to the gear action bar while viewing a weapon
- Opens a draggable, non-modal stats preview window (via SparrohUILib)
- Displays weapon stats including:
- Bullet damage, bullets per shot, and bullet status effects
- Fire rate, burst size, and burst interval
- Magazine size, reserve ammo, and reload/charge duration
- Explosion size, range, recoil, and spread
- Fire mode
- Bullet speed, force, range, and gravity
- Live updates as you equip or change upgrades on the weapon grid
- Preview applies equipped modules on an isolated weapon clone (does not mutate the menu prefab or live gun)
In-Game HUD Overlay
- Shows current equipped gun stats on the HUD
- Tracks last-shot bullet damage from fired shots (optional)
- Configurable screen anchor position
- Configurable rich-text colors per stat category
- Optional drag repositioning via SparrohUILib + ModSettingsMenu (F9)
- Optional predictive
ModifyBulletDatafor conditional damage (off by default for safety) - Updates live while playing
Getting Started
Dependencies
- Mycopunk (base game)
- BepInEx — Version 5.4.2403 or compatible
- SparrohUILib — Version 1.2.0 or compatible
Installing
Via Thunderstore (Recommended):
- Download and install via Thunderstore Mod Manager
- The mod will be automatically installed to the correct directory
Manual Installation:
- Install BepInEx and SparrohUILib
- Place
DisplayGunStats.dllin your<Mycopunk Directory>/BepInEx/plugins/folder
Building
dotnet build --configuration Release
Configuration
Access mod settings through the BepInEx configuration file at:
<Mycopunk Directory>/BepInEx/config/sparroh.displaygunstats.cfg
General
| Option | Default | Description |
|---|---|---|
| Enable Menu Window | true |
Show the Gun Stats action-bar button and stats window when editing weapons in Gear Details |
| Enable Gun HUD | true |
Show the gun stats HUD overlay while playing |
| Show Last Shot | true |
On the HUD, show last-shot bullet damage next to effective (sheet/predicted) damage |
| Predictive Bullet Data | false |
Run ModifyBulletData for live conditional damage prediction. Default off uses sheet GunData + last-shot only (safer vs self-damage from chance upgrades). When on, best-effort damage guards run during prediction |
HUD Positioning
| Option | Default | Description |
|---|---|---|
| Display X | 0.031 |
X anchor position for the HUD (0–1) |
| Display Y | 0.936 |
Y anchor position for the HUD (0–1) |
Colors
| Option | Default | Description |
|---|---|---|
| Damage Color | Rose | Color for bullet damage |
| Fire Rate Color | Macaroon | Color for fire rate, burst, bullets per shot, and fire mode |
| Ammo Color | Sky | Color for magazine, reserve ammo, reload, and charge |
| Explosion Color | Orchid | Color for explosion size |
| Range Color | Shamrock | Color for range, recoil, and spread |
| Default Color | Text primary | Fallback color for other stats |
Colors accept hex RRGGBB or #RRGGBB.
Config changes are hot-reloaded while the game is running.
Usage
Gear Details
- Open a weapon in the Gear Details menu
- Click Gun Stats on the gear action bar to open the preview window
- Click Hide Stats (or close the window) to hide it; the bar button remains available to reopen
- Drag the window by its title bar to reposition it
- Stats update live as you change equipped upgrades
HUD
- Equip a gun in-game
- Stats appear on the HUD at the configured anchor (if enabled)
- Adjust position via the HUD Positioning config options, or drag in-game if ModSettingsMenu is installed (F9)
Authors
- Sparroh
License
This project is licensed under the MIT License — see the LICENSE file for details.
CHANGELOG
Changelog
1.4.2
- Refactored into focused files:
ConfigManager,GunStatsPatches,PredictDamageGuards,GunStatPreview,GunStatColors - Replaced local
HudRepositionClientwith SparrohUILibHudAnchors+HudHandle.EnableReposition - Config binds and hot-reload centralized in
ConfigManager(AimAnyTime/Altimeter pattern) - Requires SparrohUILib 1.2.0+
1.4.1
- Fixed Gear Details preview permanently stacking upgrade stats when opening the weapon config menu
- Preview applies equipped modules on an isolated weapon clone (never mutates the shared menu prefab or live gun)
- Fixed Gun Stats action-bar button never appearing when menu stats start enabled (idempotent Register; bar decoupled from stats window)
- Stats panel is lazy-created and non-modal (no full-screen backdrop blocking the gear bar)
- Closing the stats panel keeps the bar button so it can be reopened
- HUD bullet damage defaults to sheet GunData + last-shot only (no idle
ModifyBulletData) so Home Cooking / DmgChance cannot self-damage from the HUD - Optional config
Predictive Bullet Data(default off) re-enables live conditionalModifyBulletDataprediction; toggle is honored directly and refreshed on config hot-reload (damage guards are best-effort) - Default for
Enable Menu Windowis now on
1.4.0
- Renamed mod from GunData to DisplayGunStats (
sparroh.displaygunstats) - Config file path is now
sparroh.displaygunstats.cfg(previous settings will not carry over automatically) - Thunderstore package and assembly name updated to DisplayGunStats
- Fixed gun stat accuracy across the upgrade/fire pipeline
- Shared
GunStatSnapshotcaptures GunData after priority-sorted Apply, effective fire rate/reload, and post-ModifyBulletDatabullet stats - Gear Details preview resets to prefab baseline before applying equipped modules (correct stacking/order)
- HUD uses live
FireInterval/GetReloadDurationinstead of raw GunData-only values - Last-shot damage now hooks
Gun.ModifyBulletDataon owner fire (works for guns that override fire paths without calling base) - Config option
Show Last Shotshows last-shot damage next to effective bullet damage on the HUD - Cleaned up duplicate/confusing ammo and damage lines
1.3.0
- Merged MenuGunData and HUDGunData into a single mod (
sparroh.gundata) - Gear Details stats preview window
- In-game gun stats HUD overlay with configurable anchors
- Shared config hot-reload for both features
- Fixed double Harmony patch/unpatch from the HUD plugin
1.2.0
- Initial standalone release split from EnhancedUpgradeMenu
- Live gun stats preview window in Gear Details
- Configurable enable/disable toggle
- Show/hide button for the stats window
1.1.0
- Complete rebuild with enhanced gun statistics display
- Real-time HUD positioned near reticle showing current weapon stats
- Detailed weapon information including damage, fire rate, ammo capacity, recoil, spread, and more
- Color-coded stat displays for better readability
- F9 key toggle to enable/disable the display
- Auto-detection of currently active weapon
- Compatibility with DamageMeter and Speedometer HUD mods
- 0.5 second update interval for real-time stat tracking
- Burst fire, reload, and charge duration tracking
- Impact/explosion size display for explosives
1.0.0
- Add MinVer
- Add thunderstore.toml for tcli
- Add LICENSE and CHANGELOG.md