Viewer: vehicle wear by the game's control terms and rust windows #301
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!301
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/301/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-25 18:31 UTC · original
holdmysocks:wear-windows→master· +99 −34 · 2 files · 2 commits · merged 2026-11-25 19:11 UTCWhat
The game code that packs a wear preset into the vehicle paint shader's 100-byte part record (rva 0x37766a0) was read. The viewer now draws the first wear layer the way that code and the shader do.
4e71efc8,b5fcdec9, age +0x0c / +0x10). The game takes a per-vehicle value inside that range. The age range'sminWear/maxWear, which #292 used, are not read on this path. They stay only as a fallback for presets whose age is a range record.controlIntensityx sat((v0 - start) / (end - start)). The activation start and end are the two unnamed bytes after each intensity.rustStart/rustEnd,BandC. The three windows are summed, as in the shader.Checked
imul 0x64(part record) andimul 0xe4(three 76-byte surface records). So was the v0 fma from age +0x0c / +0x10.part_wear_from_the_configuration(scale, start, width); workspace tests pass.Not decoded / not done