Skip to content

Commit 9b5173c

Browse files
committed
ControllableBoundAttack
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent b4f9b8c commit 9b5173c

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

MarathonRecomp/patches/player_patches.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,16 @@ bool ControllableTeleportDash()
165165
{
166166
return Config::ControllableTeleportDash;
167167
}
168+
169+
bool ControllableBoundAttack()
170+
{
171+
return Config::ControllableBoundAttack;
172+
}
173+
174+
bool ControllableBoundAttack2(PPCCRRegister& cmp)
175+
{
176+
if (Config::ControllableBoundAttack)
177+
return !cmp.eq;
178+
179+
return cmp.eq;
180+
}

MarathonRecomp/user/config_def.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,6 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, PlayerDebugMode, false);
8989
CONFIG_DEFINE_HIDDEN("Codes", bool, MidairControlForMachSpeed, false);
9090
CONFIG_DEFINE_HIDDEN("Codes", bool, MidairControlForSnowboards, false);
9191
CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableTeleportDash, false);
92+
CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableBoundAttack, false);
9293

9394
CONFIG_DEFINE("Update", time_t, LastChecked, 0);

MarathonRecompLib/config/Marathon.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,3 +262,20 @@ jump_address_on_true = 0x82512C9C
262262
name = "ControllableTeleportDash"
263263
address = 0x8221C49C
264264
jump_address_on_true = 0x8221C4A0
265+
266+
[[midasm_hook]]
267+
name = "ControllableBoundAttack"
268+
address = 0x82217EE0
269+
jump_address_on_true = 0x82217EE4
270+
271+
[[midasm_hook]]
272+
name = "ControllableBoundAttack"
273+
address = 0x82217F1C
274+
jump_address_on_true = 0x82217F20
275+
276+
[[midasm_hook]]
277+
name = "ControllableBoundAttack2"
278+
address = 0x82217DC8
279+
registers = ["cr6"]
280+
jump_address_on_true = 0x82217DD8
281+
jump_address_on_false = 0x82217DCC

0 commit comments

Comments
 (0)