added a SHIT ton of modules

This commit is contained in:
st committed 2026-10-14 00:10:39 -05:00
1 parent b1634d195c
commit 361892bf0b
64 files changed
+5346 -482

No files matched your search

+53 -1
View File
@@ -5,6 +5,58 @@
// These are specific to one game version and must be re-found after every update.
namespace sigs {
// CursorRenderer::render in 1.26.5203.0. Identified from the cursor_renderer
// factory/vtable; body constructs "ui_crosshair". Four pointer arguments, void return.
inline constexpr const char* render_native_crosshair =
"55 41 57 41 56 41 55 41 54 56 57 53 48 81 EC 18 05 00 00 "
"48 8D AC 24 80 00 00 00 0F 29 BD 80 04 00 00 0F 29 B5 70 04 00 00 "
"48 C7 85 68 04 00 00 FE FF FF FF 4D 89 CE 4C 89 C6 48 89 D3 48 89 CF";
// 26.52 first-person ItemInHandRenderer render entry, RVA 0x47ca240.
inline constexpr const char* render_hands =
"55 41 57 41 56 41 55 41 54 56 57 53 48 81 EC 18 02 00 00 "
"48 8D AC 24 80 00 00 00 44 0F 29 BD 80 01 00 00 "
"44 0F 29 B5 70 01 00 00 44 0F 29 AD 60 01 00 00 "
"44 0F 29 A5 50 01 00 00 44 0F 29 9D 40 01 00 00 "
"44 0F 29 95 30 01 00 00 44 0F 29 8D 20 01 00 00 "
"44 0F 29 85 10 01 00 00 0F 29 BD 00 01 00 00 0F 29 B5 F0 00 00 00 "
"48 C7 85 E8 00 00 00 FE FF FF FF 44 88 4D 7F 4D 89 C7 "
"48 89 D3 48 89 CE 48 8B 89 70 01 00 00 48 8B 01 48 8B 80 F8 00 00 00";
// Shared item draw entry, RVA 0x47b5ba0. Filter to the offhand call below.
inline constexpr const char* render_offhand_item =
"55 41 57 41 56 41 55 41 54 56 57 53 48 81 EC D8 03 00 00 "
"48 8D AC 24 80 00 00 00 44 0F 29 8D 40 03 00 00 "
"44 0F 29 85 30 03 00 00 0F 29 BD 20 03 00 00 "
"0F 29 B5 10 03 00 00 48 C7 85 08 03 00 00 FE FF FF FF "
"41 80 79 23 01";
// Offhand item from Player's second hand slot (+0xf0), inside render_hands.
// The E8 is at +13 and its return address is at +18 (RVA 0x47ceee5).
inline constexpr const char* offhand_draw_call =
"48 89 F9 48 8B 55 F8 49 89 F0 4D 89 F1 E8 ?? ?? ?? ?? "
"C6 85 E0 00 00 00 00 C7 85 88 00 00 00 00 00 00 00";
// 1.26.5203.0, RVA 0x46bda60. Sole direct caller is the first-person
// projection path (getFov(..., false)); RDX is a writable float[16], XMM2 is alpha.
inline constexpr const char* hand_bob =
"55 56 57 53 48 81 EC 28 01 00 00 48 8D AC 24 80 00 00 00 "
"44 0F 29 BD 90 00 00 00 44 0F 29 B5 80 00 00 00 "
"44 0F 29 6D 70 44 0F 29 65 60 44 0F 29 5D 50 "
"44 0F 29 55 40 44 0F 29 4D 30 44 0F 29 45 20 "
"0F 29 7D 10 0F 29 75 00 48 C7 45 F8 FE FF FF FF "
"0F 28 FA 48 89 D6 48 8B 89 68 11 00 00";
// GameRenderer::getFov(void* renderer, float frame_alpha, bool world_projection).
// Verified in the running 1.26.5203.0 executable: reads video.fov (option 0x2f),
// returns degrees, and clamps vanilla FOV to [5, 130]. Unique function entry.
inline constexpr const char* get_fov =
"56 57 53 48 83 EC 60 "
"44 0F 29 44 24 50 0F 29 7C 24 40 0F 29 74 24 30 "
"44 89 C3 0F 28 F1 48 89 CE 45 84 C0 "
"0F 84 ?? ?? ?? ?? "
"48 8B 86 88 11 00 00 48 8B 88 F8 03 00 00 "
"48 8B 01 48 8B 80 D8 00 00 00 "
"48 8D 54 24 28 41 B8 2F 00 00 00";
// a function that returns the brightness setting as a float
inline constexpr const char* get_gamma =
"48 8B 49 58 66 66 66 2E 0F 1F 84 00 00 00 00 00 "
@@ -38,4 +90,4 @@ namespace sigs {
"48 3B 0D ?? ?? ?? ?? "
"75 05 "
"48 83 C4 38 C3";
}
}