feat(kortz): add auto-enter PC access code button#1044
Open
Abdelakil wants to merge 2 commits into
Open
Conversation
Adds Auto-Enter PC Access Code in-heist shortcut that loops 3 iterations zeroing ScriptLocal(32820).At(i,2), yielding 100ms, and pressing Enter (INPUT_CELLPHONE_SELECT).
Contributor
Author
|
@mrbouquet69 |
| { | ||
| for (int i = 0; i <= 2; i++) | ||
| { | ||
| *ScriptLocal(thread, 32820).At(i, 2).As<int*>() = 0; |
Contributor
There was a problem hiding this comment.
Should be like this I think
Suggested change
| *ScriptLocal(thread, 32820).At(i, 2).As<int*>() = 0; | |
| *ScriptLocal(thread, 32818).At(1).At(i, 2).At(1).As<int*>() = 0; |
Contributor
Author
|
Tested @lmagineNothing suggestion — works correctly. The ScriptLocal chain accurately reflects native struct layout (base 32818, header skip, array stride 2, field offset 1). Pushed. Thanks for the review. |
ScriptLocal(thread, 32818).At(1).At(i, 2).At(1) instead of flat 32820 offset — accurately reflects header skip, array stride, and field offset per native layout.
lmagineNothing
left a comment
Contributor
There was a problem hiding this comment.
I don't see any problems. :)
Contributor
|
LGTM found the legacy ones and tested them it works again thx to imaginenothing on ukc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an Auto-Enter PC Access Code in-heist shortcut button to the Kortz Center Heist tab.
Loops 3 iterations zeroing ScriptLocal(32820).At(i,2), yielding 100ms, then pressing Enter (INPUT_CELLPHONE_SELECT).
Credits: ImagineNothing