EeveeEuphoria
a possum irl
Welcome to...
The Rock Shield from Sonic: Time Twisted!
What does this mod do?
This mod (in it's base form) replaces the Whirlwind Shield with the Rock Shield! The rock shield gives the player two rocks to hurl at enemies! After usage, there's a short cooldown timer (represented by the rock respawning) until the player can use the shield ability again. It also has a passive ability to prevent taking spike damage!
When the player loses their shield, the rocks fall off the player, and are still a threat to anyone who dare touches the rocks!
For modmakers...
Check the lua file in the PK3, you can modify the doomednum so that you can place this in your map! In the lua script, scroll down a little bit and you will find comments that say "REPLACE ME", so simply change them to an unused number. If either of them are modified past -1, the script will no longer replace Whirlwind shields.
Changelog
NOTICE TO OPENGL USERS
Since 2.2.7, 3D models have been introduced to the game! However, without fixing it, this mod won't work properly with that. A new zip has been provided that should alleviate this! Download the zip and extract it to where-ever the "srb2win.exe" file is.
Then, edit models.dat in something like Notepad and append this code to the end of it:
Do note this will not make the rocks into 3D models, since I lack the skill to do such a thing.
Special Thanks
Thanks to Flame and Faye on the SRB2 Discord for helping out with most of the math stuff, wouldn't have figured out the orbiting pattern without ya.
Thanks to the Sonic: Time Twisted dev team for not only the original idea for the rock shield, but also for the sprites used in this (the rocks, fragments, and part of the shield sprite are ripped from Sonic: Time Twisted)
The Rock Shield from Sonic: Time Twisted!
What does this mod do?
This mod (in it's base form) replaces the Whirlwind Shield with the Rock Shield! The rock shield gives the player two rocks to hurl at enemies! After usage, there's a short cooldown timer (represented by the rock respawning) until the player can use the shield ability again. It also has a passive ability to prevent taking spike damage!
When the player loses their shield, the rocks fall off the player, and are still a threat to anyone who dare touches the rocks!
For modmakers...
Check the lua file in the PK3, you can modify the doomednum so that you can place this in your map! In the lua script, scroll down a little bit and you will find comments that say "REPLACE ME", so simply change them to an unused number. If either of them are modified past -1, the script will no longer replace Whirlwind shields.
Changelog
v1.1
v0.9.2
- Added new HUD element, to make it sit in line with the other power-ups. Thanks to Faye for the help on this!
- Added information for Zone Builder to work with.
- Added new animation for when rocks are respawning, very similar to how Sonic: Time Twisted does it.
- Removed the variables used to replace the doomednum info, for it does not work with Zone Builder. You must now change it manually in order to place it.
- When finishing a level (without MMT enabled!), the rocks will fall onto the ground at the end of the level.
- Fixed rock shield being able to be used while in PF_THOKKED state.
- Fixed the shield not working in reverse gravity.
v0.9.2
- Whoops, didn't replace the whirlwind goldbox variant. Now that's been fixed! Last hotfix before v1.0 I hope!
- Fixed validation check bugs in relation to .RSMod
NOTICE TO OPENGL USERS
Since 2.2.7, 3D models have been introduced to the game! However, without fixing it, this mod won't work properly with that. A new zip has been provided that should alleviate this! Download the zip and extract it to where-ever the "srb2win.exe" file is.
Then, edit models.dat in something like Notepad and append this code to the end of it:
Code:
TVRS OBJE/TVRS.md3 1.5 0.0
Do note this will not make the rocks into 3D models, since I lack the skill to do such a thing.
Special Thanks
Thanks to Flame and Faye on the SRB2 Discord for helping out with most of the math stuff, wouldn't have figured out the orbiting pattern without ya.
Thanks to the Sonic: Time Twisted dev team for not only the original idea for the rock shield, but also for the sprites used in this (the rocks, fragments, and part of the shield sprite are ripped from Sonic: Time Twisted)
Attachments
Last edited: