SRB2 Message Board  

Go Back   SRB2 Message Board > Archived > Outdated Releases (2.1.X) > Lua (2.1.X)

 
 
Thread Tools
Restrict Skins! (RestrictSkins.lua) Details »»
Restrict Skins! (RestrictSkins.lua)
Version: V1, by Snu (YEAAHHHHHHHHH) Snu is offline
Developer Last Online: Jul 2020

Category: Version: SRB2 Rating: (1 votes - 3.40 average)
Released: 09-03-2014 Last Update: Never Favourites: 0
Scripts Re-Useable Content

Hey, after a lot of fixing, I finally finished, RESTRICT Skins!

What does Restrict Skins do?!

Basically, it restricts skins from being used, and if you used the restricted skin on the certain gametype (Or any!) you may meet a terrible end...

On default the restricted skin is set to Knuckles, and it is restricted on Co-op and Race, but these can be changed!

This is perfect for servers! Also intended for servers. :)

How do I change it to my liking?!


Read this...
Spoiler: How to change...
1. If you dont want to restrict any gametype, delete ALL of line 3. If you do, read on...
These are the things you can use here.
GT_COOP == Co-op and Single Player
GT_COMPETITION == Competition and Classic Race
GT_MATCH == Match
GT_TEAMMATCH == Team Match
GT_TAG == Tag
GT_HIDEANDSEEK == Hide and Seek
GT_CTF == Capture the Flag

Add these, like so.

if (gametype == GT_COOP or gametype == GT_RACE or gametype == GT_MATCH)

2. Set what skin you want to restrict.

3. You change the character it says you was slaughtered for using, or completely change it!

4(Optional). You can change what it does to the player, but this is entirely optional.


Special Thanks to all the people that helped.

Enjoy!

Download Now

File Type: zip RestrictSkins.zip (463 Bytes, 298 views)

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 09-17-2014   #2
MellowJacket
The unreliable judge
Judge
 
MellowJacket's Avatar
Default

Ack, I'm really sorry that this has been shafted and has been sat in submissions for so long.

I finally got around to testing this, and it works fine with all of the vanilla skins and custom skins too. So I'd say this is good to go.
__________________
Meanwhile in Aerial Garden Zone
MellowJacket is offline  
Old 09-25-2014   #3
MrPixl
Ahem.
 
MrPixl's Avatar
Default

THANK YOU FOR MAKING THIS.
This REALLY changes things, making matches, races, and other things fair.
__________________
Check out my music wads:
http://tinyurl.com/bossmusicvx
SRB2 name: CyberSonic
MrPixl is offline  
Old 09-25-2014   #4
Terra
Needy child
 
Terra's Avatar
Default

So it's basically forceskin in lua form? Who needs that?
Terra is offline  
Old 09-25-2014   #5
Xkower8181
 
Xkower8181's Avatar
Default

Quote:
Originally Posted by Terra View Post
So it's basically forceskin in lua form? Who needs that?
Acctually this was made to restrict speciwik character ex.You don't want to make player to play as Knuckles but this lua allows you to play as Sonic or Tails while Knuckles is restricted.That's why that lua was made in first place!
__________________
As you can see this signature sucks.
-- Xkower8181
Xkower8181 is offline  
Old 09-25-2014   #6
Sapheros
Permanently Banned
Default

Basically, its reverse skin restriction. Instead of being stuck with Knux and not playing as Sonic and tails, now you can play as sonic and tails, and knux players won't be on field. Its nifty in-case you are trying to show off a wad character that sonic can be better than.
Sapheros is offline  
Old 09-26-2014   #7
MudkipYeah!
Vastly Short Attention Span
 
MudkipYeah!'s Avatar
Default

Normally, I couldnt ever see much use for this, but i'd imagine others would enjoy this more snow.
__________________
8/8 "R8 it 8 out of 8 m8 its gr8r than gr8!" -IGN
MudkipYeah! is offline  
 

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 05:12 AM.


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