Skip to content

v2.5.6

Compare
Choose a tag to compare
@kidfearless kidfearless released this 23 Jan 01:27
· 1438 commits to master since this release
c846763

v2.5.5a...v2.5.6

v2.5.6 update notes

This update contains changes that may alter your plugin configs. Be sure to backup your plugin configs beforehand.

This update contains changes to the shavit-zones translation files, as well as the zones config files. Update accordingly.

  • Added stage zone to shavit-zones. Accessible via sm_stages and sm_stage.
  • Moved convars into an auto-updating convar methodmap.
  • Moved cp_cache_t enum struct into shavit.inc for native usage.
  • Added dynamic timescales for styles like TAS.
  • Fixed Shavit_GetReplayBotCurrentFrame pointing to the wrong native callback.
  • Selecting an unfinished map from the !profile menu, will attempt to nominate it for the client.
  • Removed extra bracket. Thanks @SaengerItsWar
  • Permission flags inside shavit-styles.cfg no longer need a command override to work.
  • Chat messages from sm_tele are now suppressed.

Console Variables

  • shavit_misc_bhopsounds - Should bhop (landing and jumping) sounds be muted? 0 - Disabled 1 - Blocked while !hide is enabled 2 - Always blocked

API

  • Added natives:

    • Shavit_GetTotalCheckpoints - Gets the total number of CPs that a client has saved.

    • Shavit_GetCheckpoint - Gets CP data for a client at the specified index. See cp_cache_t.

    • Shavit_SetCheckpoint - Sets CP data for a client at specified index. See cp_cache_t.

    • Shavit_TeleportToCheckpoint - Teleports client to the checkpoint at the given index.

    • Shavit_ClearCheckpoints - Clears all saved checkpoints for the specified client.

    • Shavit_OpenCheckpointMenu - Opens checkpoint menu for a client.

    • Shavit_SetClientTimescale - Sets the clients dynamic timescale. -1.0 to use the timescale of the client's style.

      • Note: Values above 1.0 won't scale into the replay bot.
    • Shavit_GetClientTimescale - Gets the clients dynamic timescale, or -1.0 if unset.

  • New forward behavior:

    • Shavit_OnTeleport - now includes the checkpoint index that was teleported to.
    • Shavit_OnSave - now includes the index the checkpoint was saved to. As well as whether that checkpoint triggered an overflow and wiped a previous checkpoint.
    • Shavit_OnEnterZone - now passes the zone data for stage referencing.
    • Shavit_OnLeaveZone - now passes the zone data for stage referencing.
  • Added forwards:

    • Shavit_OnTrackChanged - Called when a player changes their bhop track.
    • Shavit_OnReplaysLoaded - Called when all replays files have been loaded.
    • Shavit_OnTimescaleChanged - Called when a clients dynamic timescale has been changed.