SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Releases > Lua

Reply
 
Thread Tools
Tag Coop (tagcoop.lua) Details »»
Tag Coop (tagcoop.lua)
Version: 1.0, by Ikkarou Tatsuru (派手) Ikkarou Tatsuru is offline
Developer Last Online: Aug 2018

Category: Version: SRB2 Rating:
Released: 06-12-2018 Last Update: Never Installs: 1
Scripts Re-Useable Content

Cheers!
I wanted to try my hand at a Lua script for the first time, so I came up with this simple idea and got to work. Even with my little knowledge of the language and rusty coding skills, here it is!

Largely based on FuriousFox's Classic Coop Script (obviously, with his permission), this script makes one player be assigned as the leader, and the rest of the players are their sidekicks, in the same Sonic & Tails fashion as the classic games. The leader player is the only vulnerable player and the only one who can actually proceed in the level: they can activate Star Posts, pop monitors to take their items, take Emerald tokens or Emeralds, lose rings and lives, and finish the level, while the sidekicks are invincible, but are teleported back if they go too far, and have to give any rings or score they obtain to the leader.

This script adds a twist to the main gimmick: it changes the main player at customizable intervals.
Do you have that annoying player in your Coop server who's always last and never manages to finish a level in able time, but rejoins and tries to do it all over again? Do you ever wish the players in your server were a little more cooperative and helped each other, just to live up to the gametype's name?
Say no more! The rotation automatically and actively encourages every leader to do their very best in their role, when they're carrying every other player's lives on their backs.

Coop has never been so cooperative before!

Available commands:
Spoiler:
LEADER <node/name>: Assigns the leader directly.
LEASH <number>: Sets how far players can move away from the leader, in fracunits. Setting this to 0 turns the leash off. Default length is 8192.
LEADERTIME <number>: Sets how long the leaders keep their position in seconds. Setting this to 0 disables the rotation, making the script essentially the same as FuriousFox's version. Default is 30 seconds.
CHANGEWITHMAP <true/false>: Changes the leader at every map load.
CHANGEONDEATH <true/false>: Changes the leader if the current leader dies.
RANDOMIZE <true/false>: Instead of in a cycle, the leader is randomly selected.
PASS: If you're the leader, use this to pass the baton to the next player in the queue.
SKIPLEADER: If you're the admin, use this command to quickly skip the current leader.
SUICIDE: Essentially the same command as vanilla, but made thinking of the sidekicks. If you get stuck or want to teleport to the leader for whatever reason, use this.
TAGCOOPHELP: Shows the available commands.

Known issues:
Spoiler:
- This script isn't meant to be used in Single Player: it only works on Coop and splitscreen mode. Glitches in Single Player are expected, but not considered.
- If the previous leader is flying as Tails and a Sonic player takes his place, Sonic goes into his super sprites for a little while.
- Characters with abilities like Espio of flipping their own gravity when in contact with the ceiling can inadvertently make the next leader flip as well.
- This script might not work well with HUD graphics modifications.
- If the current leader leaves the game, the next leader is automatically assigned as the server administrator, regardless of who was the next leader previously.

Download Now

File Type: lua tagcoop.lua (22.5 KB, 109 views)

Screenshots

Click image for larger version

Name:	srb20037.png
Views:	258
Size:	119.6 KB
ID:	13070  

Supporters / CoAuthors

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Comments
Old 06-25-2018   #2
HellHawkX
Judge
 
HellHawkX's Avatar
Default

Welcome to Releases!
HellHawkX is offline   Reply With Quote
Old 06-25-2018   #3
GreenKnight9000
 
GreenKnight9000's Avatar
Default

FUCKING GENIUS!!!!

I can't wait to see this in action online!
__________________
Certified Emerald Hunter for online matches
-Known as ThomasTheHedgehog888 in matches-
GreenKnight9000 is offline   Reply With Quote
Old 06-28-2018   #4
Ezehot52
 
Ezehot52's Avatar
Default

Oh... my... god...THIS LOOKS GREAT!, it's like classic co-op, but much better! great job dude!
Ezehot52 is offline   Reply With Quote
Old 06-29-2018   #5
Petit The Hedge
A.K.A. Neon T.H.
 
Petit The Hedge's Avatar
Default

Very interesting idea indeed, this is going to be very fun online.
Surely will cause lots of shenanigans.
__________________
SONIX 3 & KNUCKLEX&KNUCKLEZ 3DBLAST 5 COLORS ADVENTURE2 UNLEASHEDSTORM GENERATIONS WORLDS CLASH 15
Petit The Hedge is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:02 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.