Skip to content

fix: correct CS2 crosshair share-code field layout - #80

Merged
akiver merged 3 commits into
akiver:mainfrom
unicbm:fix/cs2-crosshair-field-layout
Oct 5, 2026
Merged

akiver merged 3 commits into
akiver:mainfrom
unicbm:fix/cs2-crosshair-field-layout

Conversation

@unicbm

@unicbm unicbm commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Fix the CS2 recoil bit, packed thickness/outline byte, and signed 16-bit gap in both decoding and encoding.

Tested with Zero's code: CSjiGndQBvco46M6hcaQvNm9AWnCmfPqA2t9FBybqCsycS. It previously decoded as gap=0, outlineMode=1, making the preview look like a dot. With the corrected gap=1, outlineMode=0, the preview shows the small cross seen in CS2, confirmed in the built application.

@akiver
akiver force-pushed the fix/cs2-crosshair-field-layout branch from d288d4c to 25a1ed2 Compare October 5, 2026 21:09
@akiver

akiver commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Thanks!

@akiver
akiver merged commit dcf9715 into akiver:main Oct 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants