diff --git a/src/Components/Modules/XInput.cpp b/src/Components/Modules/XInput.cpp index 88c27075..e4fa8d41 100644 --- a/src/Components/Modules/XInput.cpp +++ b/src/Components/Modules/XInput.cpp @@ -43,6 +43,9 @@ namespace Components cmd->rightmove = static_cast(xiState->Gamepad.sThumbLX / 256); cmd->forwardmove = static_cast(xiState->Gamepad.sThumbLY / 256); + + Game::cl_angles[0] -= (xiState->Gamepad.sThumbRY / 32767.0f); + Game::cl_angles[1] -= (xiState->Gamepad.sThumbRX / 32767.0f); } } diff --git a/src/Game/Functions.cpp b/src/Game/Functions.cpp index ab9b913f..be59b06f 100644 --- a/src/Game/Functions.cpp +++ b/src/Game/Functions.cpp @@ -349,6 +349,8 @@ namespace Game source_t **sourceFiles = reinterpret_cast(0x7C4A98); keywordHash_t **menuParseKeywordHash = reinterpret_cast(0x63AE928); + float* cl_angles = reinterpret_cast(0xB2F8D0); + int* svs_time = reinterpret_cast(0x31D9384); int* svs_numclients = reinterpret_cast(0x31D938C); client_t* svs_clients = reinterpret_cast(0x31D9390); diff --git a/src/Game/Functions.hpp b/src/Game/Functions.hpp index 789a4b46..4d06c0bb 100644 --- a/src/Game/Functions.hpp +++ b/src/Game/Functions.hpp @@ -790,6 +790,8 @@ namespace Game extern cmd_function_t** cmd_functions; + extern float* cl_angles; + extern int* svs_time; extern int* svs_numclients; extern client_t* svs_clients;