SRB2 Message Board  

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

Reply
 
Thread Tools
Alternate Shield Ability Input v2 Details »»
Alternate Shield Ability Input v2
Version: 1.1, by Dabir (Nitpicker) Dabir is offline
Developer Last Online: Jul 2020

Version: SRB2 Rating: (3 votes - 3.00 average)
Released: 05-06-2020 Last Update: Never Installs: 2
Scripts

What does this do?

It changes the input to activate shield abilities from spin in air to spin + jump in air.

That sounds harder, why would I want to do that?

All of the vanilla characters, except for Fang, have a feature they can use with mid-air spin input, and with the current control scheme having a shield messes with that.

For the characters that can roll, holding spin as they land makes them curl up as soon as they touch the ground. Having a shield robs these characters of the ability to do this.

For Amy, pressing spin during a jump performs Twinspin. Amy can still Twinspin when she has a shield, because it's also her double-jump, but her hammer being on one button on the ground and a different button in the air is inconsistent and unnecessarily confusing.

How does it work exactly?
Pressing spin during a jump no longer uses your shield ability. You use your shield ability by either pressing spin while holding jump, or pressing jump while holding spin.

For Amy, it works slightly differently because she's weird. Holding spin mid-air starts a short invisible countdown. If you press jump during this countdown, you use your shield ability, otherwise you use Twinspin.

If you want to know more, feel free to check out the code.

Hey, holding spin when I land after a thok doesn't make me curl up! This is a scam!
Nothing to do with me! It's the same way in vanilla SRB2.

Changelog:
V2
  • Complete rewrite, cause oh boy was I overcomplicating this.
  • Controls are basically the same as before, only this time it actually works.
  • Introduced a new bug where if you're holding spin as you touch the ground at a near-standstill with a shield, you immediately go into a spindash. I'm trying to figure out how to either make this a feature even without a shield or remove it, not having much luck with either.
  • Changed hammertime's default value back to 4.
V1.1
  • You can now use the console variable "hammertime" to adjust Amy's Twinspin/shield ability decision delay. It is measured in frames, has a minimum of 1 and a maximum of 35, and defaults to 5 (delay was previously 4).
  • Fixed a bug where characters could 'bank' a shield ability use by pressing jump more than once while holding spin.
  • Did some tidying up and refactoring, including fixing a harmless warning message that would appear when you started the game.

Download Now

File Type: lua VL_ShieldControl-v1.1.lua (4.4 KB, 12 views)
File Type: lua VL_ShieldControl-v2.lua (1.7 KB, 47 views)

Screenshots

Click image for larger version

Name:	VL_ShieldControl-RollingFromAir.gif
Views:	147
Size:	4.93 MB
ID:	30789  

Show Your Support

  • This addon may not be copied, reproduced or published elsewhere without the author's permission.

Comments
Old 05-11-2020   #2
D00D64
Probably Responsible
Moderator
 
D00D64's Avatar
Default

Welcome to releases!
D00D64 is offline   Reply With Quote
Old 05-13-2020   #3
ClassicNC
Also known as Sonic Plus
 
ClassicNC's Avatar
Default

Gonna use this with the insta-sheild lua. Nice job!
__________________
i need a hug
ClassicNC is offline   Reply With Quote
Old 05-14-2020   #4
Dabir
Nitpicker
Default

I haven't looked at the insta-shield mod, so I can't guarantee that'll do what you're hoping it will, but I hope it does.
Dabir is offline   Reply With Quote
Old 06-04-2020   #5
Dabir
Nitpicker
Default

Version 1.1 is now here.
Changelog:
  • You can now use the console variable "hammertime" to adjust Amy's Twinspin/shield ability decision delay. It is measured in frames, has a minimum of 1 and a maximum of 35, and defaults to 5 (delay was previously 4).
  • Fixed a bug where characters could 'bank' a shield ability use by pressing jump more than once while holding spin.
  • Did some tidying up and refactoring, including fixing a harmless warning message that would appear when you started the game.
Dabir is offline   Reply With Quote
Old 06-04-2020   #6
Dabir
Nitpicker
Default

Uh, scratch that I guess. Version 2.
Changelog:
  • Complete rewrite, cause oh boy was I overcomplicating this.
  • Controls are basically the same as before, only this time it actually works.
  • Introduced a new bug where if you're holding spin as you touch the ground at a near-standstill with a shield, you immediately go into a spindash. I'm trying to figure out how to either make this a feature even without a shield or remove it, not having much luck with either.
  • Changed hammertime's default value back to 4.
Dabir 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 03:54 AM.


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