forked from hedge-dev/HMMCodes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hedge-dev:main' into main
- Loading branch information
Showing
9 changed files
with
143 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
Source/Sonic Origins/Gameplay/Sonic 1/Enable 7th Chaos Emerald.hmm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Code "Enable 7th Chaos Emerald" in "Gameplay/Sonic 1" by "MegAmi" does | ||
/* | ||
Enables the 7th Chaos Emerald in normal gameplay, allowing the player to use Super forms once all seven are collected. | ||
|
||
Notes; | ||
- The game does not check the emeralds setting when checking if the player should transform, so collecting all seven emeralds in a save file will allow the player to transform regardless of whether or not this code is enabled. | ||
*/ | ||
// | ||
#lib "RSDK" | ||
// | ||
{ | ||
// Check if this is Sonic 1 | ||
if (*(byte*)(RSDK.GetRSDKv4DataPtr() + 0xC8) == 0xFF) | ||
{ | ||
// Check if Super forms (options.superStates) are disabled | ||
if (*(byte*)(RSDK.GetRSDKv4DataPtr() + 0x38) != 0x01) | ||
{ | ||
*(byte*)(RSDK.GetRSDKv4DataPtr() + 0x38) = 0x01; | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...nic Origins/Gameplay/Sonic 1/Enable Elemental Shields and Insta Shield (experimental).hmm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Code "Enable Elemental Shields and Insta Shield (experimental)" in "Gameplay/Sonic 1" by "MegAmi" does | ||
/* | ||
Enables the Elemental Shields and Sonic's Insta Shield move. | ||
|
||
Known issues; | ||
- The elemental shield monitors will not appear upon initial stage load when starting the game from the main menu. This is fixed upon loading the stage again or loading a different one. | ||
- Progress in save files will not be saved. | ||
*/ | ||
// | ||
#lib "RSDK" | ||
// | ||
{ | ||
// Check if this is Sonic 1 | ||
if (*(byte*)(RSDK.GetRSDKv4DataPtr() + 0xC8) == 0xFF) | ||
{ | ||
// Check if elemental shields (second bit of options.shieldType) are disabled | ||
if ((*(byte*)(RSDK.GetRSDKv4DataPtr() + 0x34) & 2) == 0) | ||
{ | ||
*(byte*)(RSDK.GetRSDKv4DataPtr() + 0x34) |= 2; | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
Source/Sonic Origins/Gameplay/Sonic 1/Enable Sonic 2 Style Items (experimental).hmm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Code "Enable Sonic 2 Style Items (experimental)" in "Gameplay/Sonic 1" by "MegAmi" does | ||
/* | ||
Enables the Sonic 2 style Blue Shield and invincibility stars. | ||
|
||
Known issues; | ||
- The Sonic 1 style items will still appear upon initial stage load when starting the game from the main menu. This is fixed upon loading the stage again or loading a different one. | ||
- Progress in save files will not be saved. | ||
*/ | ||
// | ||
#lib "RSDK" | ||
// | ||
{ | ||
// Check if this is Sonic 1 | ||
if (*(byte*)(RSDK.GetRSDKv4DataPtr() + 0xC8) == 0xFF) | ||
{ | ||
// Check if S2 items (first bit of options.shieldType) are disabled | ||
if ((*(byte*)(RSDK.GetRSDKv4DataPtr() + 0x34) & 1) == 0) | ||
{ | ||
*(byte*)(RSDK.GetRSDKv4DataPtr() + 0x34) |= 1; | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...nic Origins/Gameplay/Sonic 2/Enable Elemental Shields and Insta Shield (experimental).hmm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Code "Enable Elemental Shields and Insta Shield (experimental)" in "Gameplay/Sonic 2" by "MegAmi" does | ||
/* | ||
Enables the Elemental Shields and Sonic's Insta Shield move. | ||
|
||
Known issues; | ||
- The elemental shield monitors will not appear upon initial stage load when starting the game from the main menu. This is fixed upon loading the stage again or loading a different one. | ||
- Progress in save files will not be saved. | ||
*/ | ||
// | ||
#lib "RSDK" | ||
// | ||
{ | ||
// Check if this is Sonic 2 | ||
if (*(byte*)(RSDK.GetRSDKv4DataPtr() + 0xC8) != 0xFF) | ||
{ | ||
// Check if elemental shields (first bit of options.shieldType) are disabled | ||
if ((*(byte*)(RSDK.GetRSDKv4DataPtr() + 0x30) & 1) == 0) | ||
{ | ||
*(byte*)(RSDK.GetRSDKv4DataPtr() + 0x30) |= 1; | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
Source/Sonic Origins/Gameplay/Sonic 2/Enable Random Monitors (experimental).hmm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Code "Enable Random Monitors (experimental)" in "Gameplay/Sonic 2" by "MegAmi" does | ||
/* | ||
Replaces all monitors in the stages with random monitors. | ||
|
||
Known issues; | ||
- The random monitors will not appear upon initial stage load when starting the game from the main menu. This is fixed upon loading the stage again or loading a different one. | ||
- Progress in save files will not be saved. | ||
*/ | ||
// | ||
#lib "RSDK" | ||
// | ||
{ | ||
// Check if this is Sonic 2 | ||
if (*(byte*)(RSDK.GetRSDKv4DataPtr() + 0xC8) != 0xFF) | ||
{ | ||
// Check if random monitors (second bit of options.shieldType) are disabled | ||
if ((*(byte*)(RSDK.GetRSDKv4DataPtr() + 0x30) & 2) == 0) | ||
{ | ||
*(byte*)(RSDK.GetRSDKv4DataPtr() + 0x30) |= 2; | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
Source/Sonic Origins/Gameplay/Sonic 2/Enable Super Tails.hmm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Code "Enable Super Tails" in "Gameplay/Sonic 2" by "MegAmi" does | ||
/* | ||
Allows Tails to transform into Super Tails, like the other characters. | ||
|
||
Notes; | ||
- Due to using the same palette colors as Tails, the Coins icon will flash along with Tails when in his Super form. | ||
*/ | ||
// | ||
#lib "RSDK" | ||
// | ||
{ | ||
// Check if this is Sonic 2 | ||
if (*(byte*)(RSDK.GetRSDKv4DataPtr() + 0xC8) != 0xFF) | ||
{ | ||
// Check if Super Tails (options.superTails) is disabled | ||
if (*(byte*)(RSDK.GetRSDKv4DataPtr() + 0x40) != 0x01) | ||
{ | ||
*(byte*)(RSDK.GetRSDKv4DataPtr() + 0x40) = 0x01; | ||
} | ||
} | ||
} |