Comments as requested
This commit is contained in:
parent
ae627d5f8f
commit
ed53211400
@ -22,10 +22,12 @@ namespace Components
|
|||||||
// Original code flow
|
// Original code flow
|
||||||
jz elevate
|
jz elevate
|
||||||
|
|
||||||
|
// Go to conditional check for the loop
|
||||||
push 0x5734FF
|
push 0x5734FF
|
||||||
retn
|
retn
|
||||||
|
|
||||||
elevate:
|
elevate:
|
||||||
|
// Continue with loop execution
|
||||||
push 0x57353D
|
push 0x57353D
|
||||||
retn
|
retn
|
||||||
}
|
}
|
||||||
@ -50,11 +52,12 @@ namespace Components
|
|||||||
jnz noStand
|
jnz noStand
|
||||||
|
|
||||||
stand:
|
stand:
|
||||||
|
// Player is allowed to stand
|
||||||
push 0x570ED4
|
push 0x570ED4
|
||||||
retn
|
retn
|
||||||
|
|
||||||
noStand:
|
noStand:
|
||||||
|
// Player will remain ducked
|
||||||
push 0x570EF4
|
push 0x570EF4
|
||||||
retn
|
retn
|
||||||
}
|
}
|
||||||
@ -69,9 +72,11 @@ namespace Components
|
|||||||
"Enable easy elevators for trickshotting");
|
"Enable easy elevators for trickshotting");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Place hook PM_CorrectAllSolid so we may skip PM_Trace check
|
||||||
Utils::Hook(0x5734F9, Elevators::PM_CorrectAllSolidStub, HOOK_JUMP).install()->quick();
|
Utils::Hook(0x5734F9, Elevators::PM_CorrectAllSolidStub, HOOK_JUMP).install()->quick();
|
||||||
Utils::Hook::Nop(0x5734FE, 1);
|
Utils::Hook::Nop(0x5734FE, 1);
|
||||||
|
|
||||||
|
// Place hook PM_CheckDuck so we may skip PM_Trace check
|
||||||
Utils::Hook(0x570ECD, Elevators::PM_CheckDuckStub, HOOK_JUMP).install()->quick();
|
Utils::Hook(0x570ECD, Elevators::PM_CheckDuckStub, HOOK_JUMP).install()->quick();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user