From dda7b4024e2653ff89e742c58a5e2580411ca306 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Mon, 20 Feb 2023 13:21:07 +0100 Subject: [PATCH 1/2] [General]: Label two things --- src/Components/Modules/Party.cpp | 4 ++-- src/Game/Structs.hpp | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/Party.cpp b/src/Components/Modules/Party.cpp index d8736779..e29ae2c9 100644 --- a/src/Components/Modules/Party.cpp +++ b/src/Components/Modules/Party.cpp @@ -221,8 +221,8 @@ namespace Components // causes 'does current Steam lobby match' calls in Steam_JoinLobby to be ignored Utils::Hook::Set(0x49D007, 0xEB); - // functions checking party heartbeat timeouts, cause random issues - Utils::Hook::Nop(0x4E532D, 5); + // function checking party heartbeat timeouts, cause random issues + Utils::Hook::Nop(0x4E532D, 5); // PartyHost_TimeoutMembers // Steam_JoinLobby call causes migration Utils::Hook::Nop(0x5AF851, 5); diff --git a/src/Game/Structs.hpp b/src/Game/Structs.hpp index 0f755fbf..c42eb789 100644 --- a/src/Game/Structs.hpp +++ b/src/Game/Structs.hpp @@ -6482,6 +6482,14 @@ namespace Game static_assert(sizeof(sval_u) == 0x4); + struct stype_t + { + sval_u val; + unsigned int pos; + }; + + static_assert(sizeof(stype_t) == 0x8); + struct scr_const_t { scr_string_t _; From f6852ae2da6fbf8b7d9e271464cb52d0f8754e0a Mon Sep 17 00:00:00 2001 From: Diavolo Date: Mon, 20 Feb 2023 13:36:15 +0100 Subject: [PATCH 2/2] [Movement]: Comments --- src/Components/Modules/PlayerMovement.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/PlayerMovement.cpp b/src/Components/Modules/PlayerMovement.cpp index 2e2a794e..b57a2729 100644 --- a/src/Components/Modules/PlayerMovement.cpp +++ b/src/Components/Modules/PlayerMovement.cpp @@ -278,7 +278,7 @@ namespace Components BGBounces = Game::Dvar_RegisterEnum("bg_bounces", bg_bouncesValues, DISABLED, Game::DVAR_CODINFO, "Bounce glitch settings"); }); - // Hook Dvar_RegisterFloat. Only thing that's changed is that the 0x80 flag is not used. + // Hook Dvar_RegisterFloat. Only thing that's changed is that the 0x80 flag is not used Utils::Hook(0x448990, Dvar_RegisterSpectateSpeedScale, HOOK_CALL).install()->quick(); // PM_CmdScaleForStance @@ -298,7 +298,7 @@ namespace Components // Rocket jump Utils::Hook(0x4A4F9B, Weapon_RocketLauncher_Fire_Hk, HOOK_CALL).install()->quick(); // FireWeapon - // Hook StuckInClient & CM_TransformedCapsuleTrace + // Hook StuckInClient & CM_TransformedCapsuleTrace // so we can prevent intersecting players from being pushed away from each other Utils::Hook(0x5D8153, StuckInClient_Hk, HOOK_CALL).install()->quick(); Utils::Hook(0x45A5BF, CM_TransformedCapsuleTrace_Hk, HOOK_CALL).install()->quick(); // SV_ClipMoveToEntity