- What permissions do you give others to modify and/or maintain your submission?
- Modify: ASK ME - Maintain: YES - 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. I do, however, give permission for my entire submission to be maintained by others.
This is a script I made for when I'm AFK while streaming. It randomly spectates other players on a timer that can be set by the player. I figured I'd submit it in case it'd be useful to anyone else who streams the game.
Major thanks to the SRB2 Discord for helping me figure out what variables to use and helping with debugging.
Console Commands:
autospec_on [true/false] - Turns auto-spectate on or off for the user.
autospec_timer [5-30] - Sets the timer for switching views. Timer is based on the game's TICRATE.
afktoggle - A shorter version of autospec_on that simply toggles the auto-mode on and off.
autospec_timer_level_completed [2] : same but only for players who has completed the level
autospec_switch_timer [10] : seconds before switching to another player
autospec_afk_timer [5] : seconds before a player is considered afk for the addon
autospec_activate : start spectating a random player immediately.
autospec_toggle : enable/disable autospec and start spectating a random player immediately if switching from disable to enable.
autospec [On]/Off : enable/disable autospec without immediately spectating a random player.