Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3.11.0 Added option for R2 to remove death+respawn animations
- Loading branch information
1 parent
e2ad8e8
commit dd28ce3
Showing
4 changed files
with
31 additions
and
1 deletion.
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
28 changes: 28 additions & 0 deletions
28
OpenSpaceToolbox/GameManager/Games/Rayman2/Rayman2RespawnAnimRemover.cs
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,28 @@ | ||
using System; | ||
using System.Threading; | ||
|
||
namespace OpenSpaceToolbox | ||
{ | ||
public class Rayman2RespawnAnimRemover : OpenspaceExtraAction { | ||
|
||
public Rayman2RespawnAnimRemover(Rayman2GameManager gameManager) : base(gameManager) | ||
{ | ||
Name = ShortName = $"⚠ Remove death+respawn animations"; | ||
|
||
Tooltip = "⚠ Warning: these actions require a game restart to undo!"; | ||
} | ||
|
||
public override void Action() | ||
{ | ||
int processHandle = GameManager.GetProcessHandle(); | ||
if (processHandle < 0) | ||
return; | ||
|
||
int[] pathDeathAnimNumFrames = new int[] { 0x44, 0x8, 0x0, 0xC, 0x4, 0x20, 0x80 }; | ||
int[] pathSpawnAnimNumFrames = new int[] { 0x3C, 0x0, 0x58, 0x4, 0x38, 0x0, 0x184}; | ||
|
||
GameManager.WriteBytes(new byte[1] { 1 }, 0x500560, pathDeathAnimNumFrames); | ||
GameManager.WriteBytes(new byte[1] { 1 }, 0x500560, pathSpawnAnimNumFrames); | ||
} | ||
} | ||
} |
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