diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-30 00:20:32 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-30 00:20:32 -0500 |
| commit | 6dae2ac1d0372aef4ba370c2a014eed78ad1e257 (patch) | |
| tree | a49b91844b2746b66641e6ed5f19dbe52e6588b0 /runtime/test/code_hooks_test.cpp | |
| parent | f389d4a89bdd6af85400cdd36d985308567108a5 (diff) | |
Game actions: spawn a vehicle of any model through the title's own vehicle spawn (spawn <name|0x key>)
The title's nine vehicle cheats are each `sub rsp, 28h; mov rcx, <model key>; call <spawn>`: the spawn takes one
64-bit model key. A new request, Spawn(key), calls that function with another model's key on the title's thread
that runs its cheats (the deferred queue the other game actions use), as the cheats do: ahead of the player, the
vehicle the spawn made before going as with the cheats.
- The function is read from the cheat table found already (Site::CheatTable): every handler of that form must
call the same function, inside the image, two or more of them (spawn_call_target, spawn_function). No address
and no new pattern.
- A model's key is the low 64 bits of MurmurHash3_x64_128 (seed 0) of its lower-cased name (model_key, written
from the algorithm's definition): checked against the 1.0.2.1 executable, where a vehicle cheat's key is that
hash of a model's name. The form is kylepelham/El1xr's finding (modmenu/names.rs, GPL-3.0); their trainer's
spawn is a port of tsuremen2/MandyMenu (GPL-3.0) after XeMo's PS5 research. No names are kept here: a script
or the user names the model.
- LEONIDA_GAME_ACTIONS_RUN takes `spawn <model name|0x key>`.
Tests: model_keys_are_murmur3_x64_128_of_the_lower_cased_name (the algorithm's published vectors), and
a_vehicle_cheat_gives_the_spawn_it_calls; script_commands_read takes the new command. All of the game_actions
tests pass. Not yet seen in the running title (the game-actions tour comes next).
AI-assisted (Claude). Tested on an RTX 4060 Ti 16 GB, driver 616.64, Ryzen 5 7600X.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/code_hooks_test.cpp')
0 files changed, 0 insertions, 0 deletions