Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion dllmain/Trainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,12 @@ void Trainer_Init()
regs.eax = (uint32_t)AshleyPtr();

// Make game check for Leon's position against itself, instead of checking against Ashley's position.
// Disables flags_STATUS_2_5024 which is set when Ashley is trapped
if (re4t::cfg->bTrainerAllowEnterDoorsWithoutAsh)
{
FlagSet(GlobalPtr()->flags_STATUS_0_501C, uint32_t(Flags_STATUS::STA_SUB_CATCHED), false);
regs.eax = (uint32_t)PlayerPtr();
}
}
}; injector::MakeInline<CheckAshleyActive_hook>(pattern.count(1).get(0).get<uint32_t>(0), pattern.count(1).get(0).get<uint32_t>(5));
}
Expand Down Expand Up @@ -2810,4 +2814,4 @@ void Trainer_RenderUI(int columnCount)
ItemMgr_Render();
}
ImGui::EndChild();
}
}