Skip to content

PMArkive2/bhoptimer-savestate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 

Repository files navigation

bhoptimer-savestate

Allows the use of !savestate to save/load bhoptimer timer states between map changes and server restarts!

  • Players may have one savestate on each style per map
  • When a player saves a savestate, their timer state and replay frames are saved in the database and replay file folder respectively. Their timer is stopped (to prevent checkpoint-like usage), and they can continue to play on the server like normal.
  • It is currently (and probably always will be) limited to the Main track only. There aren't really any bonuses that would warrant this functionality, and it just opens up more possibilities for bloat files.

Note

If you run multiple servers from the same directory (ie. public and private servers), and they share a savestate db, you can load saves between them seamlessly!

Installation

  • Create an entry for "savegame" in /addons/sourcemod/configs/databases.cfg
  • Load the plugin to create the database structure automatically

ConVars

  • shavit_savestate_savereplayoverwr (0 / 1) - Whether or not to save replay frames if player's time is longer than the WR (useful with things like !myreplay)

Usage

  • !savestate - Opens a menu to save/load a savestate, or view all savestates. (Writes timer state to db, and replay frames to <replayfolder>/savedgames/<mapname>_<styleid>_<steamid>.replay) if a save exists for the player on the current map and style, a confirmation to overwrite the current save will appear.

Screenshots

  • Main menu
    Screenshot from 2025-06-27 12-20-10

  • It will let you know if you have a save on the current map on your first spawn (or first restart, post-saving)
    image

  • Load menu
    Screenshot from 2025-06-27 12-22-59

  • All saves menu
    Screenshot from 2025-06-27 12-23-20

  • Overwrite confirmation
    Screenshot from 2025-06-27 12-23-32

TODO

  • Add the ability to delete saved games without loading them

About

Allow the use of !savestate to save progress between map changes and server restarts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • SourcePawn 100.0%