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.
Author
Zwataketa
Downloads
301
Views
1,048
Extension type
lua
File size
4.4 KB
MD5 Hash
7d02b0e9282c73d4961c585fb3cc161b
First release
Last update

Share this resource

Latest updates

  1. QoL Update

    Courtesy of RAYTEK, who has asked me to upload this on their behalf to make it easy for people...
  2. Desynch Risk Fix

    So it was brought to my attention that the way I generated random numbers could potentially...

Latest reviews

Ok, this is so useful mod, Great Job!
Upvote 0
Back
Top