This Lua script makes it so all players except for the "main player" act like Player 2 from the old Sonic games. This means:
You cannot lose rings
You cannot lose lives
You cannot pop monitors
You cannot activate starposts
You cannot finish levels
Any rings you pick up go to the main player
Any score you gain will go to the main player
If you die or go too far away from the main player, you will teleport back to them
The main player still plays like a normal player, with lives and rings and everything. Basically, the main player is the "Player 1" of the group. Everyone's HUD will display the rings and lives for the main player.
This script includes 3 console commands to assist you with using it.
MAINPLAYER <name> - Sets the main player for the game. This is the player that will still act like normal. By default, this will be the host. If the main player leaves, the host will become the new main player.
LEASH <number> - Sets how far players can move away from the main player, in fracunits. Set to 0 to turn off the leash. Default is 8192.
SUICIDE - Kill yourself. Useful if you get stuck somewhere, like in a zoom tube. You will respawn at the main player.
Version 1.0
Initial Release
Version 1.1
MAINPLAYER command should now accept player numbers in addition to names.
Added CC_CHANGEONDEATH console variable. If set to true, the Main Player will change when the current Main Player dies.
Added CC_CHANGEONNEWMAP console variable. If set to true, the Main Player will change when a new map is loaded.
Added CC_SHOWMAINPLAYERNAME console variable. If set to true, the lives icon will show the Main Player's name instead of their skin's name.
Version 1.2
Fixed a problem where only the server could turn the leash off.
Fixed a problem where only the server could turn main player names on.
Fixed coins not giving the main player rings when picked up by other players.
Fixed the new main player respawning when the previous main player died.
Fixed respawning players not having the same scale as the main player.
Main player names are now on by default.
Made it so only main players can pick up special stage tokens, Chaos Emeralds, and Fire Flowers.
The lives icon should now display the main player's character's Super icon while they are in Super form.
Version 1.3
Fixed a warning that was popping up in 2.1.15
Fixed extra lives counter not being transferred when manually switching mainplayers
Improved the HUD for splitscreen
You cannot lose rings
You cannot lose lives
You cannot pop monitors
You cannot activate starposts
You cannot finish levels
Any rings you pick up go to the main player
Any score you gain will go to the main player
If you die or go too far away from the main player, you will teleport back to them
The main player still plays like a normal player, with lives and rings and everything. Basically, the main player is the "Player 1" of the group. Everyone's HUD will display the rings and lives for the main player.
This script includes 3 console commands to assist you with using it.
MAINPLAYER <name> - Sets the main player for the game. This is the player that will still act like normal. By default, this will be the host. If the main player leaves, the host will become the new main player.
LEASH <number> - Sets how far players can move away from the main player, in fracunits. Set to 0 to turn off the leash. Default is 8192.
SUICIDE - Kill yourself. Useful if you get stuck somewhere, like in a zoom tube. You will respawn at the main player.
Version 1.0
Initial Release
Version 1.1
MAINPLAYER command should now accept player numbers in addition to names.
Added CC_CHANGEONDEATH console variable. If set to true, the Main Player will change when the current Main Player dies.
Added CC_CHANGEONNEWMAP console variable. If set to true, the Main Player will change when a new map is loaded.
Added CC_SHOWMAINPLAYERNAME console variable. If set to true, the lives icon will show the Main Player's name instead of their skin's name.
Version 1.2
Fixed a problem where only the server could turn the leash off.
Fixed a problem where only the server could turn main player names on.
Fixed coins not giving the main player rings when picked up by other players.
Fixed the new main player respawning when the previous main player died.
Fixed respawning players not having the same scale as the main player.
Main player names are now on by default.
Made it so only main players can pick up special stage tokens, Chaos Emeralds, and Fire Flowers.
The lives icon should now display the main player's character's Super icon while they are in Super form.
Version 1.3
Fixed a warning that was popping up in 2.1.15
Fixed extra lives counter not being transferred when manually switching mainplayers
Improved the HUD for splitscreen
Attachments
Last edited: