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