SRB2 Message Board  

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

Reply
 
Thread Tools
Revi v9 Details »»
Revi v9
Version: 9, by Katmint Katmint is offline
Developer Last Online: Jul 2020

Version: SRB2 Rating: (8 votes - 3.38 average)
Released: 01-06-2020 Last Update: 05-21-2020 Installs: 10
Characters Scripts Re-Useable Content

This is a script which overhauls character abilities, shields, and some of the physics. The list of changes can be found in the spoilers below.

Also includes these console variables:
twinspinspin - Swap Amy's aerial Twinspin input between spin and jump. Enabled by default.
supersound - Play the super music while transformed. Enabled by default.

Spoiler: Character ability changes
~Sonic~
-New ability Arc Jump: a double jump which extends airtime while jump is held
--Shield abilities can be combined with this ability
-Thok moved to Metal Sonic
-Increased shield scale to 1.05

~Tails~
-True holdfly implemented (not the multiability holdfly)
-Speed of flight reworked
--Tails quickly loses speed if flying faster than 20 fracunits while ascending
--Can accelerate up to normalspeed while not ascending
--Cannot accelerate while tired if speed is greater than 20 fracunits
-Fly timer reduced to 5 seconds, down from 8 seconds

~Knuckles~
-Speed capped at 20 fracunits while falling from a canceled glide
-Momentum is no longer halted during landing animation
-Can hold spin while landing during a glide to transfer momentum into a spin rather than skid to a stop
-Climbing is slightly faster

~Amy~
-Striking the ground with a Twinspin will cause a small rebound
--Rebound will not occur when landing on spikes or goop
-Hammering a horizontal spring will force Amy into a spin state
-Significantly reduced the ending lag of hammering while on the ground
-Twinspin refreshes after a short cooldown instead of upon striking an enemy
-Hammer frames provide invulnerabilty to enemies and projectiles (but not sector hazards)
-Act clear name shortened to Amy to prevent text overlap

~Fang~
-Reduced ending lag and momentum loss of shooting
-Can press spin at any speed on the ground to shoot the nearest valid target
-Initiating or ending Bounce will not cut momentum
-Enemies have defense against Fang's corks
--Stronger enemies can withstand more shots
-Bouncing with the Elemental Shield will spawn fire upon impact
-Reduced jump factor to 112 fracunits, down from 120
-I would have increased his shield scale but it takes an unreasonably large shield to cover him properly

~Metal Sonic~
-Hover replaced with Thok
--Thok uses dash frames
--Maintains speed when moving faster than actionspd
-Breaks spikes on contact
-Increased shield scale to 1.05
-No longer skids

~All~
-Jumping and spinning physics modified
-Minimum spindash speed increased to 25, up from 15
-Nospin characters can use their ability while in spring states
-Super characters charge spindash instantly
-New colors and descriptions for character select screen
Spoiler: Shield ability changes
-Attraction Blast homing attack can be chained as long as you don't miss
--Momentum from striking an enemy is reduced to make the ability more controllable

-Force Stop freezes your character in place while spin is held and will redirect stored momentum to the direction you're currently facing when spin is released

-Intentionally triggering Armageddon Shield's explosion will cause it to leave behind an Ash Shield
--Ash Shield has no ability but will damage the enemy that destroys it

-Elemental Stomp forces roll and provides invulnerability while stomping
--Cosmetic appearance of Elemental Shield adapts to the environment

-Flame Burst thrust speed is more consistent
--Can also damage enemies when used by nospin characters

-Bubble Bounce reduces momentum upon impact instead of canceling momentum on use
Spoiler: Super ability changes
Super Sonic
Passive - enhanced Arc Jump

Active - Comet Dash
A fast air dash which prevents you from losing height for a short time. Combine it with the Arc Jump for true air supremacy.



Super Tails
Passive - 50% more flight time

Active - Updraft
An initially weak whirlwind jump which becomes more powerful the faster you're falling. Pick up an electric shield while super to enhance this ability into a lightning jump that can chain into fly.



Super Knuckles
Passive - Fast climbing

Active - Meteor Drop
An Elemental-style stomp except it doesn't cancel your momentum. Devastates nearby enemies upon impact. Pick up an Elemental Shield while super to additionally leave behind a fire ring.



Super Amy
Passive - Drain Hammer
Amy loses rings twice as quickly as other characters while super, but striking an enemy with her hammer will award her a pack of rings. Hearts spawned by the hammer while super will hunt down enemies to drain from.



Active - Spiral Jump
A double jump which reaches incredible heights but cancels your momentum on use.



Super Fang
Passive - Warp Corks
Automatically teleport to any enemy you shoot and gain a speed boost.



Active - Teleport
Teleports a short distance forwards. Can pass through solid objects, but not walls.



Super Metal Sonic
Passive - Infinite air

Active - Hover
Metal Sonic's vanilla ability.

Download Now

File Type: pk3 VL_Revi-v9a.pk3 (64.1 KB, 254 views)

Screenshots

Click image for larger version

Name:	ezgif-4-1bf115f9928d.gif
Views:	1049
Size:	3.49 MB
ID:	25105   Click image for larger version

Name:	ezgif-2-2722e950bb4e.gif
Views:	816
Size:	5.33 MB
ID:	25106   Click image for larger version

Name:	srb20010.gif
Views:	682
Size:	6.53 MB
ID:	25107   Click image for larger version

Name:	srb20019.gif
Views:	536
Size:	5.13 MB
ID:	25110   Click image for larger version

Name:	srb20004.gif
Views:	235
Size:	4.73 MB
ID:	26924  

Click image for larger version

Name:	srb20007.gif
Views:	753
Size:	2.46 MB
ID:	29556   Click image for larger version

Name:	srb20014.gif
Views:	122
Size:	7.87 MB
ID:	30069   Click image for larger version

Name:	srb20000.gif
Views:	118
Size:	6.69 MB
ID:	30469   Click image for larger version

Name:	revi.gif
Views:	114
Size:	7.62 MB
ID:	30507   Click image for larger version

Name:	dust.gif
Views:	64
Size:	4.47 MB
ID:	31616  

Show Your Support

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

Comments
Old 01-21-2020   #22
Rumia1
Backseat Developer
 
Rumia1's Avatar
Default

Ok I was going to shrug off the lag mentioned earlier as maybe my pc isn't powerful enough either, but when you compare having just this script loaded:
https://imgur.com/a/bgSMgRK
to having all these other lua-based mods loaded:
https://imgur.com/a/UtpoPUT
You have to wonder what's causing the lag to happen with this one. Perhaps you have a MobjThinker hook that runs for all objects?

While yes, there is still lag in the second set of gifs, ACZ is nearly unplayable due to how low the framerate drops when this mod is loaded compared to loading all the others.
__________________
Quote:
Originally Posted by Cirno
Egguman-senpai...

Last edited by Rumia1; 01-21-2020 at 03:43 AM.
Rumia1 is offline   Reply With Quote
Old 01-21-2020   #23
Katmint
 
Katmint's Avatar
Default

Quote:
Originally Posted by Rumia1 View Post
Perhaps you have a MobjThinker hook that runs for all objects?
No. The largest section of the lua is a MobjThinker hook specifically for MT_PLAYER, which is being changed into a PlayerThink hook for v2 once 2.2.1 is out. I can't reproduce any framerate drops on my end either way though.

Last edited by Katmint; 02-19-2020 at 02:59 AM.
Katmint is offline   Reply With Quote
Old 01-21-2020   #24
carlrev
The living revolution
 
carlrev's Avatar
Default

I recently cleaned my PC and I can't tell if my frame rate slightly increased by the game or by my PC. Either way, I will admit that the frame rate for CEZ2 on my end went from 8 FPS to 16-19 FPS. Tell me: what does this build do exactly?

---------- Post added at 02:43 PM ---------- Previous post was at 01:49 PM ----------

OK. So now I think there is no difference. Other than that this makes certain levels lag more. When enabling this the normal framerate for CEZ2 on my end is around 8-18 FPS. But when running the normal version and disabling it from my AMD Graphics Config, CEZ2 runs at 18-26 FPS (sometimes almost perfect framerate for a split-second).
__________________
Greetings from 2391!
carlrev is offline   Reply With Quote
Old 01-22-2020   #25
Zanda_Sama
Default

I think Amy should only bounce that high if you hold the button, because it's kinda weird when you go extremely high when you're not trying to. I get this helps with Amy speedruns, but still. You could nerf it if you think it needs to. I'm probably in the minority. As i'm the only one with a wrong mindset.
Zanda_Sama is offline   Reply With Quote
Old 01-23-2020   #26
Rumia1
Backseat Developer
 
Rumia1's Avatar
Default

I think I proved my point last time so I won't be doing the comparison against other mods this time and purely rely on the new exe. For a control test, here's the base exe's performance. and here's with the mod loaded.
__________________
Quote:
Originally Posted by Cirno
Egguman-senpai...
Rumia1 is offline   Reply With Quote
Old 01-23-2020   #27
Katmint
 
Katmint's Avatar
Default

The issue is you're already struggling to run the game at full FPS with nothing loaded, and as I stated earlier, this script is rather large. None of those who tested this prior to release had any issues with frame drops either.
You'll just have to hope the optimisations I've made for v2 improve the performance because there's not much I can really do to troubleshoot that.

Last edited by Katmint; 01-23-2020 at 10:43 PM.
Katmint is offline   Reply With Quote
Old 01-27-2020   #28
Goldenhog
Wandering Protagonist
 
Goldenhog's Avatar
Default

I have a request for v2. Would it be possible to separate the changes into different Lua lumps? It'd make it easier to tinker with this.
__________________
Quote:
Originally Posted by Asagi Asagiri
I need power over the people! The stupid, STUPID people!
Goldenhog is offline   Reply With Quote
Old 01-29-2020   #29
Zanda_Sama
Default

On the other hand... add console commands to have insta-shield be activated by pressing A in midair, or other random customizable options... why would you want it activated with A? Well, because you could. Just a suggestion
Console commands are awesome yo.
Also could you tweak the bubble shield from Sonic 3 to keep your momentum instead of deleting it when bouncing?
random suggestions to maybe implement
oh and also maybe buff fire shield move
Zanda_Sama is offline   Reply With Quote
Old 01-31-2020   #30
carlrev
The living revolution
 
carlrev's Avatar
Default

Nope. I swear, it's this lua. I've tried even bigger luas (up to 66 kB) and CEZ2 ran at 35 FPS as normally. It seems that removing the Insta-Shield puts it to normally.
__________________
Greetings from 2391!

Last edited by carlrev; 02-02-2020 at 07:28 AM.
carlrev is offline   Reply With Quote
Old 02-12-2020   #31
Goldenhog
Wandering Protagonist
 
Goldenhog's Avatar
Default

Bug: The instashield doesn't work properly after launching yourself off of the CEZ swings. The instashield sound plays but neither the instashield hitbox or its graphic show up.
__________________
Quote:
Originally Posted by Asagi Asagiri
I need power over the people! The stupid, STUPID people!
Goldenhog is offline   Reply With Quote
Old 02-13-2020   #32
Wosh
Idiot
 
Wosh's Avatar
Default

I love these revisions but I do think the different changes (shield changes, individual character ability tweaks etc.) should somehow be separated so that it would be possible to pick and choose which ones to have active. Like, the shield edits alone could just be its own mod without the character stuff.
Wosh is offline   Reply With Quote
Old 02-18-2020   #33
Katmint
 
Katmint's Avatar
Default

Version 2 is now available. Note that this update requires at least patch 2.2.1 to function. It will not work in 2.2.0.

~Changelog~

Nospin characters can use their ability while taking springs.

Twinspin refreshes after a 5/8 second cooldown instead of upon striking an enemy. This is technically a reversion since it's how 2.1 Rosy's twinspin worked, albeit with a slightly shorter cooldown this time.

Instashield is now bound to Sonic's skin instead of to thok. This should increase compatibility with other mods.

Rebound cuts momentum upon impact. This prevents the ability from being a strictly better version of the ground attack.

Bubble Bounce reduces momentum upon impact instead of canceling it on use.

Spoiler: bug fixes
✓ Instashield not working after launching from a CEZ chain
✓ Knuckles occasionally getting speed capped after gliding into a spring
✓ Elemental Stomp not canceling when bounced upwards (This is vanilla behavior but it's stupid)
✓ Ash Shield damage checks

Last edited by Katmint; 05-10-2020 at 12:25 AM.
Katmint is offline   Reply With Quote
Old 02-18-2020   #34
Zanda_Sama
Default

I actually had a similar idea to the "Hammer Flip" (which i assume "rebound" is based off of), as in if you press A after hitting the ground with the hammer, you could leap forward (instead of upward) and gain momentum.
That and hammering a spring forcing Amy to be in ball form would be good, as springs are a lot of times placed in front of slopes, so Amy can use them... that or you can just use Cobalt's Momentum Mod... or Rumai's classic if that works, then again that removes thok so i never use it casually, since thok is a casual dream.
Same reason I don't use the peelout, Alt Sonic has something like the peelout, but doesnt have the peelout run animation, and you can only move after the stars glow around you as opposed to whenever you want, like a spindash (or amy's peelout in advance 2).
I kinda exploded about ideas for Amy in the suggestions forum. I mainly kinda liked the idea of Amy having a crouch for custom1, i suppose thats already out the window for the actual game, but as a mod maybe. Anyway a Hammer Jump thats activated by crouching and pressing spin would be balanced, as it wouldn't be as mobile as Fang's bounce. Amy having a "sorta roll" by using the Big Step [Amy does a hop] (crouch + jump) and then pressing spin during that would make Amy fall on her face and have a semi-roll thing... i mean it pulls from her first playable appearance in a 2D game.

I'm not asking for this in here, as that'd be a SUPER big change, but maybe the spin when hammering a spring may be good enough, as that allows Amy to use a lot more slopes than she previously could in vanilla srb2. Also makes it so some mods that want to use slopes can have a spring there, Or a mod that ALREADY has a spring before a slope, will make the level more doable with Amy.
I like the idea of a nerfed hammer jump, to where its more situational, instead of Amy having super good mobility, and skipping most jumps with it. She can move after performing the move, but she has to come to a complete stop, making it less like Fang's gameplay. And just more balanced in general. Maybe it'd be as good as Amy with the Whirlwind jump, I don't want you to give the player too much height.
[Random Amy Ideas]

Last edited by Zanda_Sama; 02-18-2020 at 11:22 PM.
Zanda_Sama is offline   Reply With Quote
Old 02-19-2020   #35
Katmint
 
Katmint's Avatar
Default

I made a quick fix to v2 resolving a few issues with Metal Sonic.

While I'm here, have some prerelease trivia: The new Force Stop's initial draft in was an ability that knocked away nearby enemies and reflected projectiles. It looked neat, but wasn't very useful in practice.


An experiment with giving Amy a vault ability after impacting the ground with a twinspin. It didn't really suit her gameplay so I wound up removing it.


Also, the Elemental Shield is supposed to have a lava form in addition to its underwater form, but as anyone who has gone surfing in RVZ1 can attest to, SRB2 is not very good at detecting when you're touching lava.
Attached Thumbnails
Click image for larger version

Name:	srb20022.gif
Views:	513
Size:	2.29 MB
ID:	26881   Click image for larger version

Name:	srb20006.gif
Views:	519
Size:	2.03 MB
ID:	26882  

Last edited by Katmint; 02-19-2020 at 09:39 AM.
Katmint is offline   Reply With Quote
Old 02-19-2020   #36
Zanda_Sama
Default

Yeah I expected the Vault ability to be slightly faster to execute, and go much less distance, just for gaining momentum. Hammer Flip but instead of up, you go forward or wherever you're facing, like a vault.
I also agree the force shield reflecting projectiles looks neat.
BTW the vault ability, i expected to be able to be executed by pressing jump in the middle of hammering the ground or a badnik or whatever. Basically just for making hammering enemies less slow... then again you reduced the hammer lag so idk if this is needed anymore.

I liked the idea of a hammer vault though, and I'm glad you experimented and came to your own conclusion. I just want to know if hammering a spring making amy in her spin frames is even possible with lua, i mean i know lua isn't very limited, but it'd probably be pretty difficult.

Last edited by Zanda_Sama; 02-23-2020 at 08:22 AM.
Zanda_Sama is offline   Reply With Quote
Old 02-19-2020   #37
Goldenhog
Wandering Protagonist
 
Goldenhog's Avatar
Default

You got rid of the Whirlwind Shield's little cosmetic updraft thing :(

The Flame Aura now resets when hitting an enemy during a dash. This isn't mentioned as a feature anywhere so I assume it's the code for the Attraction Shield's reusable homing seeping through. The Bubble Wrap is also kinda busted - the bounce animation no longer plays, it plows straight through enemies instead of bouncing off of them and the character can be seen in their standing/walking frames for a split second (if you mash fast enough, you can even get a spindash started, though it doesn't do anything).

I'm also curious about this code:
Spoiler:
Code:
if (inflictor) and (inflictor.valid) and (inflictor.player) and (inflictor.player.charflags & SF_NOJUMPDAMAGE) and (inflictor.player.pflags & PF_JUMPED) and not (inflictor.player.charflags & SF_STOMPDAMAGE)
	if not (inflictor.player.panim == PA_ABILITY) and not (inflictor.player.panim == PA_ROLL) and not inflictor.player.powers[pw_invulnerability] and not inflictor.player.powers[pw_super]
		if not inflictor.player.powers[pw_flashing]
			P_DamageMobj(inflictor, sonic, sonic)
		end
		return false
	end
end

Is that supposed to be for the Battle mod?
__________________
Quote:
Originally Posted by Asagi Asagiri
I need power over the people! The stupid, STUPID people!
Goldenhog is offline   Reply With Quote
Old 02-20-2020   #38
Katmint
 
Katmint's Avatar
Default

Version 3 is now available. This fixes several bugs and includes a few changes that were supposed to be in Version 2.

Quote:
Originally Posted by Goldenhog View Post
I'm also curious about this code:
That's code related to a scrapped feature which wasn't actually meant to be in there except I somehow saved a WIP version of v2 over the final version right before I released it and didn't notice. As you can imagine, there were quite a few things that didn't function correctly. The shields should be in working order now.

Also, I removed the whirlwind particles because they looked rather half-baked. I do think the shield needs a fancier effect but I've decided that's outside the scope of this script.
Katmint is offline   Reply With Quote
Old 02-20-2020   #39
V1ral
 
V1ral's Avatar
Default Possible Whirlwind flourish?

Quote:
Originally Posted by Katmint View Post
I do think the shield needs a fancier effect but I've decided that's outside the scope of this script.
Yeah, it would be nice to have at least some minor change for Whirlwind to not feel left out, even if only aesthetic. Maybe it could at least put the player into their spring-launched sprites? Perhaps force the character's direction (but not momentum) to spin while mid-double-jump as well, but I can see that part being an issue to some extent.
__________________
Knight needs caffeine badly
V1ral is offline   Reply With Quote
Old 02-22-2020   #40
Elyos03
 
Elyos03's Avatar
Default

How do I split the Insta-Shield part?
__________________
"We're friends now."
"But I want to kill Goku."
"Most of my friends did."
Spoiler:
DO NOT look into my oldest posts. They now make me cringe like and YouTuber watching its very first video.
Elyos03 is offline   Reply With Quote
Old 02-23-2020   #41
Katmint
 
Katmint's Avatar
Default

Version 4 is now available. This update contains more bug fixes. The vanilla float bug has also been fixed.

Last edited by Katmint; 05-10-2020 at 12:22 AM.
Katmint 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 01:57 AM.


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