Resource icon

Time Attack Pace Comparision v1.1

What permissions do you give others to modify and/or maintain your submission?
Modify: ASK ME - Maintain: IN MY ABSENCE - Others must ask me for permission before modifying my submission or use it in their own work, and I reserve the right to say no for any reason. However, if I can no longer be contacted, I give permission for my entire submission to be maintained by others.
I made sure my file(s) follow the Submissions Guidelines
  1. Yes
I named my file(s) correctly (see Filename Conventions)
  1. Yes
Time Attack Pace Comparision

This addon uses the MT_STARPOST mapthings to add custom starposts into the map during Time Attack mode. Hitting one of these fake starposts records the time you've taken to reach it, displaying your pace like in Sonic Generations!
srb20016.gif

To save the data the script determines the order of any hit starpost and writes the current leveltime to a file named according to the complete level name and the used skin. Additionally every attempt the script will copy the preexisting record file with a suffix to allow using them for video recording.

singleplayer_posts (default="No" if 2.2.11 or older "Yes" if newer)
Determines if the starposts in normal singleplayer trigger the script.

Global variables for addon creators to assist this script.

MODPACK_ID (default="main")
As SRB2 currently does not offer a way to determine the savedata name the game saves to, set this to the name of your custom gamedata to allow the script to sort time attack data into.

- Whenever this script updates every time attack replay using it will become invalid. This is a limitation of the addon and replay system as I cannot mark this script as not required. However running it with playdemo replay/<gamedata_replay_path>/<replay_file> -force works
- I cannot, in any way, guarantee that this script works in netgames or custom gamemodes.
- Levels with the same name will overwrite eachothers times.
- I'm not 100% certain this works with UDMF, but I haven't run into any issues yet.
- Watching replays will trigger this script as well. You can use this to get records from other people to compare.

srb20081.png
srb20082.png
Author
SilicDev
Downloads
253
Views
912
Extension type
lua
File size
8.1 KB
MD5 Hash
ae7abb0afc939c3b60fa96ddd94cd199
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from SilicDev

Share this resource

Latest updates

  1. ConsVar Update

    - Updated the script to use modeattacking instead of a custom function to check for record...
Back
Top