diff --git a/README.md b/README.md index 975808a4..e9edee9f 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,9 @@ This are just the patch files for this game. I decided to separate them from pat - hooks/WayPointArrive.cpp ## Additions +- GetSessionClients also output maximum sim speed(maxSP) + - hooks/HOutputMaxSP.cpp + - section/OutputMaxSP.cpp - Console command: "cam_DefaultMiniLOD 0" now completely disable mesh renderer for minimap - hooks/MinimapMesh.cpp - section/MinimapMesh.cpp diff --git a/hooks/HOutputMaxSP.cpp b/hooks/HOutputMaxSP.cpp new file mode 100644 index 00000000..766d5096 --- /dev/null +++ b/hooks/HOutputMaxSP.cpp @@ -0,0 +1,6 @@ +#include "../define.h" +asm +( + ".section h0; .set h0,0x88D623;" + "JMP "QU(OutputMaxSP)";" +); \ No newline at end of file diff --git a/section/OutputMaxSP.cpp b/section/OutputMaxSP.cpp new file mode 100644 index 00000000..0b40f34a --- /dev/null +++ b/section/OutputMaxSP.cpp @@ -0,0 +1,15 @@ +void OutputMaxSP() +{ + const char* s_maxSP = "maxSP"; + asm( + "PUSH [ESI+0xD4];" + "PUSH %[s_maxSP];" + "LEA ECX,[ESP+0x2C];" + "CALL 0x9081F0;" + "MOV EBX,0x10;" + "JMP 0x88D628;" + : + : [s_maxSP] "i" (s_maxSP) + : + ); +} \ No newline at end of file