mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-03-14 02:16:10 +00:00
fix issues with controllable objects
This commit is contained in:
parent
b4a0853625
commit
d76e05b2f7
3 changed files with 18 additions and 3 deletions
|
@ -42,6 +42,14 @@ int ATTACK_STATE = MASH_NAIR;
|
|||
int LEDGE_STATE = RANDOM_LEDGE;
|
||||
#define NUM_LEDGE_STATES 5
|
||||
|
||||
// Tech Option
|
||||
#define RANDOM_TECH 0
|
||||
#define TECH_IN_PLACE 1
|
||||
#define TECH_ROLL 2
|
||||
|
||||
int TECH_STATE = RANDOM_TECH;
|
||||
#define NUM_TECH_STATES 3
|
||||
|
||||
// Down Taunt
|
||||
#define MASH_TOGGLES 0
|
||||
#define ESCAPE_TOGGLES 1
|
||||
|
|
|
@ -5,7 +5,14 @@
|
|||
|
||||
u64 fighter_manager_addr;
|
||||
|
||||
u8 get_category(u64 module_accessor) {
|
||||
return (u8)(*(u32*)(module_accessor + 8) >> 28);
|
||||
}
|
||||
|
||||
bool is_operation_cpu(u64 module_accessor) {
|
||||
if (get_category(module_accessor) != BATTLE_OBJECT_CATEGORY_FIGHTER)
|
||||
return false;
|
||||
|
||||
int entry_id = WorkModule::get_int(module_accessor, FIGHTER_INSTANCE_WORK_ID_INT_ENTRY_ID);
|
||||
u64 fighter_information = FighterManager::get_fighter_information(LOAD64(fighter_manager_addr), entry_id);
|
||||
|
||||
|
|
|
@ -216,9 +216,9 @@ void training_mods_main() {
|
|||
(u64)&ControlModule::get_stick_y_replace);
|
||||
|
||||
// Tech options
|
||||
SaltySD_function_replace_sym(
|
||||
"_ZN3app8lua_bind32StatusModule__init_settings_implEPNS_26BattleObjectModuleAccessorENS_13SituationKindEijNS_20GroundCliffCheckKindEbiiii",
|
||||
(u64)&StatusModule::init_settings_replace);
|
||||
// SaltySD_function_replace_sym(
|
||||
// "_ZN3app8lua_bind32StatusModule__init_settings_implEPNS_26BattleObjectModuleAccessorENS_13SituationKindEijNS_20GroundCliffCheckKindEbiiii",
|
||||
// (u64)&StatusModule::init_settings_replace);
|
||||
|
||||
Selection::menu_replace();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue