2.0:XSRB2/Console
The following is a list of all new or modified console commands and variables in XSRB2:
Commands
add <variable> <amount/variable> [-silent]
Adds the specified amount – or the contents of a variable – to a specified variable. Intended to be used for scripts. The -silent
parameter disables the "variable changed to x" console message.
notarget
Turns "SEP Field" mode on or off; regular enemies will ignore the player unless attacked.
toggle <variable> [-silent]
Deprecated by add
, but kept around for backwards compatibility with SRB2 scripts. The added -silent
parameter disables the "variable changed to x" console message.
tunes <slot> <speed> [-suspend]
Identical to tunes
in regular SRB2, but with an additional -suspend
parameter, which suspends the music change until the currently playing music has ended. This feature only works with the FMOD library and digital music (e.g., MP3 or Ogg). This feature is experimental and may not always work.
Variables
allowcolors <on/off>
Sets whether colored text is allowed in chat or not. Default is off.
drawchains <on/off>
Toggles the enemy chain counter, which displays how many enemies the player has jumped on in a row.
fpsmeter <on/off>
Turns XSRB2's improved FPS meter on or off. Replaces vid_ticrate
.
homremoval <off/on/development>
"On" is identical to regular SRB2. "Development" causes all instances of the hall of mirrors glitch to flash bright red to make them easier to spot.
jewelshards <amount>
- Requirements: Server or admins only
Sets the maximum number of Jewel Shards that will spawn during a Shards game. Default is 10; maximum is 99. Can also be set under Server Options.
sitcommands <on/off>
Toggles an easter egg that references a running gag from the manga series Inuyasha. If sitcommands
is enabled and a player sends "osuwari" as a chat message, any player named "Inuyasha" will be damaged. The damage even affects Super players, who will lose their Super status and spill their collected emeralds.
spikebug <on/off>
- Requirements: Single Player only
If enabled, falling onto spikes while temporarily invincible after being hit will still inflict damage. This pays homage to the infamous Sonic 1 bug.
timermode <countdown/ascending>
Adjusts how the TIME section of the HUD acts in netgames. "Ascending" is regular SRB2 behavior. "Countdown" will make the timer run backwards towards 0 when there is a time limit in the round.
tv_1up <integer>
- Requirements: Server or admins only
Replaces 1up
. Sets the chance of Extra Life Monitors spawning from Random Monitors. 0 is off, 1 is low, 2 is medium (default) and 3 is high.
tv_bombshield <integer>
- Requirements: Server or admins only
Replaces bombshield
. Sets the chance of Armageddon Shields spawning from Random Monitors. 0 is off, 1 is low, 2 is medium (default) and 3 is high.
tv_combiring <integer>
- Requirements: Server or admins only
Sets the chance of Combi-rings spawning from Random Monitors. 0 is off, 1 is low, 2 is medium (default) and 3 is high.
tv_eggman <integer>
- Requirements: Server or admins only
Replaces eggmantv
. Sets the chance of Eggman Monitors spawning from Random Monitors. 0 is off, 1 is low, 2 is medium (default) and 3 is high.
tv_forceshield <integer>
- Requirements: Server or admins only
Replaces forceshield
. Sets the chance of Force Shields spawning from Random Monitors. 0 is off, 1 is low, 2 is medium (default) and 3 is high.
tv_invicibility <integer>
- Requirements: Server or admins only
Replaces invicibility
. Sets the chance of Invincibility spawning from Random Monitors. 0 is off, 1 is low, 2 is medium (default) and 3 is high.
tv_jumpshield <integer>
- Requirements: Server or admins only
Replaces jumpshield
. Sets the chance of Whirlwind Shields spawning from Random Monitors. 0 is off, 1 is low, 2 is medium (default) and 3 is high.
tv_ringshield <integer>
- Requirements: Server or admins only
Replaces ringshield
. Sets the chance of Attraction Shields spawning from Random Monitors. 0 is off, 1 is low, 2 is medium (default) and 3 is high.
tv_superring <integer>
- Requirements: Server or admins only
Replaces superring
. Sets the chance of Super Rings spawning from Random Monitors. 0 is off, 1 is low, 2 is medium (default) and 3 is high.
tv_supersneakers <integer>
- Requirements: Server or admins only
Replaces supersneakers
. Sets the chance of Super Sneakers spawning from Random Monitors. 0 is off, 1 is low, 2 is medium (default) and 3 is high.
tv_teleporters <integer>
- Requirements: Server or admins only
Replaces teleporters
. Sets the chance of Teleporters spawning from Random Monitors. 0 is off, 1 is low, 2 is medium (default) and 3 is high.
tv_recycler <integer>
- Requirements: Server or admins only
Replaces recycler
. Sets the chance of Recyclers spawning from Random Monitors. 0 is off, 1 is low, 2 is medium (default) and 3 is high.
tv_watershield <integer>
- Requirements: Server or admins only
Replaces watershield
. Sets the chance of Elemental Shields spawning from Random Monitors. 0 is off, 1 is low, 2 is medium (default) and 3 is high.