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
Maintrack only. There aren't really any bonuses that would warrant this functionality, and it just opens up more possibilities for bloat files.
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!
- Create an entry for "savegame" in
/addons/sourcemod/configs/databases.cfg - Load the plugin to create the database structure automatically
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)
- !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.
-
It will let you know if you have a save on the current map on your first spawn (or first restart, post-saving)

- Add the ability to delete saved games without loading them



