2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-21 07:39:13 +00:00

PhazonBeam fixes, add debug hack for Metroid Prime's lair cutscene trigger

This commit is contained in:
2022-01-09 17:17:51 -08:00
parent 8a9701fc30
commit 13d4a94ee1
3 changed files with 10 additions and 3 deletions

View File

@@ -34,6 +34,13 @@ CScriptTrigger::CScriptTrigger(TUniqueId uid, std::string_view name, const CEnti
GetEditorId(), GetAreaIdAlways());
x11c_forceField.x() = 0.f;
}
#else
// HACK: For some reason MetroidPrime's lair doesn't enable this trigger until after the cutscene, activate it in debug build
if (GetEditorId() == 0x000B01DB && !GetActive()) {
Log.report(logvisor::Warning, FMT_STRING("BUG THIS!: Overriding active for trigger {} in area {}"), GetEditorId(),
GetAreaIdAlways());
SetActive(true);
}
#endif
}