feat: compile project with clang (with vs on Windows)

This commit is contained in:
2024-04-20 10:30:44 +02:00
parent 779676b8ee
commit b3841d855e
16 changed files with 58 additions and 327 deletions

View File

@@ -24,9 +24,10 @@ game::dvar_t* cl_exploit;
* On the server side the msg_t structure processed as follows:
* The first 4 bytes are read but not processed (offset 0)
* The following 2 bytes are read but not processed (offset 4)
* The following 1 byte is read and corresponds to the client_t.serverId (offset 6)
* The following 4 bytes are read and correspond to the client_t.messageAcknowledge (offset 7)
* The following 4 bytes are read and correspond to the client_t.reliableAcknowledge (offset 11)
* The following 1 byte is read and corresponds to the client_t.serverId (offset
* 6) The following 4 bytes are read and correspond to the
* client_t.messageAcknowledge (offset 7) The following 4 bytes are read and
* correspond to the client_t.reliableAcknowledge (offset 11)
*/
/**
@@ -80,8 +81,12 @@ public:
add_exploit_commands();
add_key_hooks();
utils::hook(0x420B76, write_message_sequence, HOOK_CALL).install()->quick();
utils::hook(0x420B86, write_command_sequence, HOOK_CALL).install()->quick();
utils::hook(0x420B76, HOOK_CAST(write_message_sequence), HOOK_CALL)
.install() // hook*
->quick();
utils::hook(0x420B86, HOOK_CAST(write_command_sequence), HOOK_CALL)
.install() // hook*
->quick();
}
private: