Added prone elevators

This commit is contained in:
Diavolo 2021-12-28 10:07:39 +01:00
parent 41874769aa
commit eb88d587fc
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5

View File

@ -114,8 +114,10 @@ namespace Components
//Replace PM_CorrectAllSolid
Utils::Hook(0x57369E, Elevators::PM_CorrectAllSolidStub, HOOK_CALL).install()->quick();
// Place hook in PM_CheckDuck
// Place hooks in PM_CheckDuck. If the elevators dvar is set to easy the
// flags for duck/prone will always be removed from the player state
Utils::Hook(0x570EC5, Elevators::PM_Trace_Hk, HOOK_CALL).install()->quick();
Utils::Hook(0x570E0B, Elevators::PM_Trace_Hk, HOOK_CALL).install()->quick();
}
Elevators::~Elevators()