Retroquad 0.10.0 Released (Patreon)
Published:
2021-12-06 21:07:32
Imported:
2024-08
Content
The autosave feature is in, and can be configured through these cvars:
- autosave_lowhealthrange (default 25) - the health recovery will start being tracked from the lowest health below or equal than this.
- autosave_onhealthrecovery (default 50) - the game will be autosaved upon recovering this much from the lowest tracked health value.
- autosave_onget (default bitflags: keys & powerups) - the game will be autosaved upon getting any of these items.
- autosave_ondiscard (default bitflags: keys) - the game will be autosaved upon discarding any of these items.
There's no autoload yet, so you must manually press the F9 key (assigned for the quickload command, defined in default.ini) to load the savegame created by the autosave feature.
The only features of the autosave feature still not implemented are these:
- Optionally, don't autosave when health is too low (actually, I don't know if this is necessary).
- Optional autosave & autoload when shutting down and booting up the game.
- When using the "restart" command, try to load an autosave first instead if the autosave file is from the same map in the same gaming session.
- Leave the restart command behavior unmodified when called from the console (so the autoload can only override it when called by the QuakeC code).
- Optionally supress the autosave & autoload messages when autoload is implemented.
- Optionally, open a menu to let the player choose the restart method (full level restart, autosave, manual savestate).
The main reasons for me to implement this autosave feature is to make it easier to record gameplay videos (since I often forget to save the game and end up having to replay from the beginning of the map), and to make it easier to recover from crashes.