SRB2 Message Board  

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

Reply
 
Thread Tools
Permanent weapons Details »»
Permanent weapons
Version: 1.1, by Rapidgame7 (pressure pressure pressure) Rapidgame7 is offline
Developer Last Online: May 2017

Category: Version: SRB2 Rating: (1 votes - 3.40 average)
Released: 01-31-2015 Last Update: Never Installs: 2
Scripts Re-Useable Content

Have you wanted to use ring weapons in singleplayer/coop?
Have you wanted to never run out of rings while using these weapons?
Do you want to never lose them?
Misc question: Possibly you want to create mayhem on match forcing everyone to make a mess spamming grenades everywhere in a confined space like GFZ3?
Then this does the trick!
This modification lets the admin use a command to set permanent weapons.

What are permanent weapons and what they do?
Well, permanent weapons are self-descriptive:
You always have them.
You cannot lose them by being hit.
You cannot run out of ammo!
You can use this in coop/singleplayer too!
And even if you die, when you respawn you have these again!
And the best part of it: These doesn't use your rings! So basically you can spam grenades without having fear of dying! (unless you get hit)
And with only 1 ring you are able to use any gun!


Using the addon
The command that does this is "permguns".

When used alone, it gives a quick explanation for the command, but it isn't enough useful information. There's the explanation:


As you can see, the command takes six arguments: Whether if you want the automatic, bounce, scatter, grenade, bomb or rail rings.
If you want to have infinite weapon rings for a certain gun, you would type "1" as the argument for that weapon, and if you don't want it, you type "0". Numbers without quotes!
New from 1.1: Now you can also use "2" as the argument to be able to set permanent guns, that DO use rings.

If you, for example, wanted to have infinite automatic and rail rings, you would use
permguns 1 0 0 0 0 1
and voila: The other guns won't be permanent but the automatic and rail rings!

However, as normal, if you want to use a weapon, you MUST have at least 1 ring.

New from 1.1:
Imagine that for some reason you want to make all weapons permanent but you don't want people spamming the grenades, but you want to enable grenades. All you have to do is use
permguns 1 1 1 2 1 1
Now, people can use all guns, but if you try to use the grenade you will lose a ring, as usual.

Remember, if a gun isn't permanent, it is rendered unobtainable: If only automatic rings are permanent, don't bother grabbing the other weapon rings (infinity rings, however, can be obtained) because it will be removed from your hotbar as soon as it is grabbed.

The guns can be toggled in singleplayer, co-op, match, tag, you name it - as long as ringslinger is on.

ToDo
  • Make something to let people grab non-permanent weapons.
    (Quick note: I can't. Read the comments in the file)
  • A way to use weapon names in command

Accepting suggestions!

Known bugs
None yet! Woo!
(However, if you find one, tell me so I can fix it ASAP!)

Changelog
Spoiler: Changelog

1.0
Released!

1.01
Changed a flag to prevent non-admins change the permanent weapons.

1.1
Removed the "Permanent guns set" spam.
Added a new argument to set permanent guns that use rings.
Resynch errors happen less often (all variables are now synched correctly)
If an argument is not set (is nil) it is automatically set to 0.
Added more comments in the file.
Added more blank lines in the file.

Download Now

File Type: zip permguns.zip (1.6 KB, 270 views)
File Type: zip permguns-1_1.zip (2.6 KB, 245 views)

Screenshots

Click image for larger version

Name:	srb20013.gif
Views:	472
Size:	4.43 MB
ID:	5998   Click image for larger version

Name:	srb20010.gif
Views:	321
Size:	7.71 MB
ID:	5999   Click image for larger version

Name:	srb20005.gif
Views:	230
Size:	360.5 KB
ID:	6000   Click image for larger version

Name:	srb20001.gif
Views:	223
Size:	4.78 MB
ID:	6001   Click image for larger version

Name:	srb20002.gif
Views:	223
Size:	4.91 MB
ID:	6002  

Show Your Support

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

Comments
Old 02-04-2015   #2
Sryder13
'That brit'
Judge
 
Sryder13's Avatar
Default

This all seems to work properly, even though permanent automatic would just be silly overpowered, but since it will effect everyone I guess that doesn't matter too much.
__________________
Quote:
<MonsterIestyn> try ctrl+f masturbation and get to the point
Sryder13 is offline   Reply With Quote
Old 02-04-2015   #3
AozoraJustin
AKA Superjustinbros
 
AozoraJustin's Avatar
Default

I can envision all the Crawlas dying to rail rings.
AozoraJustin is offline   Reply With Quote
Old 02-05-2015   #4
Xkower8181
btw do not touch the sonic
 
Xkower8181's Avatar
Default

Hmmm i will do a doom on green flower zone 1 with granade ring with this lua script >:)
__________________
Spoiler:
hi you just wasted some second of your live on this
enjoy
Xkower8181 is offline   Reply With Quote
Old 02-05-2015   #5
golteam
 
golteam's Avatar
Default

Heh, Good. Now those Cheat Engine losers won't get in the way when I'm using the Lua script.

Last edited by golteam; 02-15-2015 at 10:18 AM.
golteam is offline   Reply With Quote
Old 02-05-2015   #6
YoshiSmb
Net-Play is fine for me!
 
YoshiSmb's Avatar
Default

This look interesting, Infinite Bomb/Rail Rings would make a interesting battle to see with my own eyes!

*hint hint* make a map with only Bomb and Rail rings for this lua!
__________________
I don't think i need a signature...

SRB2 alias: RaM The Fox
YoshiSmb is offline   Reply With Quote
Old 02-05-2015   #7
Rapidgame7
pressure pressure pressure
 
Rapidgame7's Avatar
Default

Quote:
Originally Posted by YoshiSmb View Post
*hint hint* make a map with only Bomb and Rail rings for this lua!
I'll see what I can do.
__________________
Quote:
<Steel Titanium> so many eggman laughs
<Rapidgame7> hehehe HEHE HEhEhe
<Rapidgame7> AAAAAUUUUGGGGH
Rapidgame7 is offline   Reply With Quote
Old 02-06-2015   #8
ThatAwesomeGuy173
 
ThatAwesomeGuy173's Avatar
Default

Some suggestions I have for this.
  • I think the command could use a little restructure, because the current one reminds me of 2.0's orderpizza. Instead of having "permguns 1 1 1 1 1 1" to get every weapon, it'd be nice to have something like "permguns all on", "permguns grenade on", etc.
  • To avoid the command printing out 7 lines of weapon ring activation, print this out when activating all weapon rings: [PG] All permanent weapon rings have been enabled.
I know nothing about Lua, so if this becomes too hard to implement, then I guess I'm gonna stick with "permguns 1 1 1 1 1 1". After all, I'm more than happy to finally have weapon rings in Co-op!
ThatAwesomeGuy173 is offline   Reply With Quote
Old 02-06-2015   #9
Rapidgame7
pressure pressure pressure
 
Rapidgame7's Avatar
Default

Quote:
Originally Posted by ThatAwesomeGuy173 View Post
  • I think the command could use a little restructure, because the current one reminds me of 2.0's orderpizza. Instead of having "permguns 1 1 1 1 1 1" to get every weapon, it'd be nice to have something like "permguns all on", "permguns grenade on", etc.
  • To avoid the command printing out 7 lines of weapon ring activation, print this out when activating all weapon rings: [PG] All permanent weapon rings have been enabled.
1) The command was made this way because it's easier and quicker. I could, however, make a way to be able to type the gun name and the availability of it.
2) I'll see what I can do about that.

These things aren't hard to implement (for the first I can reuse the arguments and check if these are pointing to a gun, making the third have a different use such as "on/off", and for the second is just matter of rewriting the entire thing).
__________________
Quote:
<Steel Titanium> so many eggman laughs
<Rapidgame7> hehehe HEHE HEhEhe
<Rapidgame7> AAAAAUUUUGGGGH

Last edited by Rapidgame7; 02-06-2015 at 02:23 AM. Reason: text lol
Rapidgame7 is offline   Reply With Quote
Old 02-22-2015   #10
Rapidgame7
pressure pressure pressure
 
Rapidgame7's Avatar
Default

Addon updated to 1.1.

Changes:
Removed the "Permanent guns set" spam.
Added a new argument to set permanent guns that use rings.
Resynch errors happen less often (all variables are now synched correctly)
If an argument is not set (is nil) it is automatically set to 0.
Added more comments in the file.
Added more blank lines in the file.
__________________
Quote:
<Steel Titanium> so many eggman laughs
<Rapidgame7> hehehe HEHE HEhEhe
<Rapidgame7> AAAAAUUUUGGGGH
Rapidgame7 is offline   Reply With Quote
Old 02-22-2015   #11
Shadon
Just kind of an asshole
 
Shadon's Avatar
Default

I'll put in my vote here for "things they should include in the next update". Seems like this really should have happened long ago. Oh well, great to see it now.
__________________
http://thingamabobberscomic.tumblr.com/
A dumb comic I do with my friend
Shadon is offline   Reply With Quote
Old 03-08-2015   #12
golteam
 
golteam's Avatar
Default

Will the infinity ring also be permanent too?
golteam is offline   Reply With Quote
Old 03-08-2015   #13
Rapidgame7
pressure pressure pressure
 
Rapidgame7's Avatar
Default

Quote:
Originally Posted by golteam View Post
Will the infinity ring also be permanent too?
I will add it to the ToDo.
__________________
Quote:
<Steel Titanium> so many eggman laughs
<Rapidgame7> hehehe HEHE HEhEhe
<Rapidgame7> AAAAAUUUUGGGGH
Rapidgame7 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 02:22 PM.


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