Closed ThisAMJ closed 7 months ago
Needs confirming: how does Mel transition between maps? My guess is that it's running changelevel2
manually (the function AMJ mentions just runs that command). If so, we should just hook that command instead (as well as changelevel
).
By the looks of things, it just uses changelevel
! More specifically, the entity input end_command.Command(changelevel <next map>)
Since Mel presumably uses a different mechanism to transition between levels, our
Engine::ChangeLevel
hook doesn't get triggered, which meansengine->isLevelTransition
is never set to true which means the map end rules are never tested.The other possibility is that Mel somehow overrides the function, or has a different offset, which I think is unlikely.