Skip to content

2.4. Configuration: Replay

shavit edited this page Aug 2, 2017 · 2 revisions

You can change some of the replay bot (ghost)'s behavior and its appearance.

Configuration

Path to configuration file: addons/sourcemod/configs/shavit-replay.cfg

To change the replay bot's appearance, open the configuration file.
Here's the default configuration file:

// Configuration file for replay bot styling.
//
// WARNING: DO NOT DELETE/ADD YOUR OWN KEYS!
// WARNING: IF YOU DISABLE THE CENTRAL REPLAY BOT - MAKE SURE BOT NAMES CONTAIN A VARIABLE OR YOU'LL END UP WITH A MESS!
//
// The replay bot clan/name styling will be loaded from this file.
// A central bot is the replay bot that can play all styles. It's enabled by default with "shavit_replay_centralbot".
//
// Keys:
// "clantag" - clan tag for replay bots (central or not) to use.
// "namestyle" - this is the name style replay bots will use. Including the central bot, as long as it's during playback.
// "centralname" - the central bot's idle name, AKA when nothing is playing.
// "centralstyle" - {style} value for the central bot (when idle).
// "centralstyletag" - {styletag} value for the central bot (when idle).
// "unloaded" - text to show for unloaded replay data. (will never show up for central bots.)
//
// Variables:
// {map} - current map.
// {style} - the style name.
// {styletag} - the style's tag. See "styletag" in "shavit-styles.cfg".
// {time} - formatted time for the WR currently being played.
// {player} - the name of the player that holds the record.
// {track} - track that the bot replays. Translated from the server's defined language.
//
"Replay"
{
	"clantag" "REPLAY"
	"namestyle" "{style} - {time}"
	"centralname" "!replay"
	"centralstyle" "!replay"
	"centralstyletag" "!replay"
	"unloaded" "{style} - N/A"
}

Unfortunately, I don't have lots to explain. It's very straightforward.

The replay bot can have extra configuration applied via cfg/sourcemod/plugin.shavit-replay.cfg. I'll explain most of the interesting stuff:

  • shavit_replay_centralbot - decides on if there's a central replay bot. A central bot is a single bot that can play all kinds of replays and is toggled with +USE or !replay. If disabled, each style for the main track will get its own replay bot that replays itself. Note: Support will not be given if this is set to 0.
  • shavit_replay_enabled - if set to 0, replay bots won't show up. I recommend leaving this as 1 and then disabling for exclusive game modes/maps.
  • shavit_replay_timelimit - this setting controls the maximum amount of time per recording to be saved. The default setting is 5400.0 - 1:30 hours! If your server has a slow playstyle (_strafe/400 velocity/scroll etc) I recommend increasing this value, as runs above 1:30 hours will occur often.