From a7bde5c54c1e3cc8ae2f38cceefd79c45712ae8e Mon Sep 17 00:00:00 2001 From: quaK <38787176+Joelrau@users.noreply.github.com> Date: Sat, 20 May 2023 19:18:28 +0300 Subject: [PATCH] better unk name --- src/client/component/thirdperson.cpp | 6 +++--- src/client/game/structs.hpp | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/client/component/thirdperson.cpp b/src/client/component/thirdperson.cpp index c6573f48..2c6359ba 100644 --- a/src/client/component/thirdperson.cpp +++ b/src/client/component/thirdperson.cpp @@ -27,19 +27,19 @@ namespace thirdperson if ((link_flags & 2) == 0 && (next_snap->ps.otherFlags & 4) == 0) { auto client_globals = a2; - if (!client_globals->unk2 || !client_globals->unk3) + if (!client_globals->unk_979676 || !client_globals->unk_979696) { if (cg_thirdPerson && cg_thirdPerson->current.enabled) { return 1; } - if (!(link_flags & (1 << 0xE)) || client_globals->unk3) + if (!(link_flags & (1 << 0xE)) || client_globals->unk_979696) return (link_flags >> 27) & 1; if (link_flags & (1 << 0x1D)) return 0; if (!(link_flags & (1 << 0x1C))) - return a2->unk1; + return a2->unk_601088; } } } diff --git a/src/client/game/structs.hpp b/src/client/game/structs.hpp index c8ec0308..c58c3311 100644 --- a/src/client/game/structs.hpp +++ b/src/client/game/structs.hpp @@ -2016,19 +2016,19 @@ namespace game char __pad0[18680]; snapshot_s* nextSnap; char __pad1[582400]; - int unk1; + int unk_601088; int renderingThirdPerson; char __pad2[378580]; - int unk2; + int unk_979676; char __pad3[16]; - int unk3; + int unk_979696; }; static_assert(offsetof(cg_s, nextSnap) == 18680); - static_assert(offsetof(cg_s, unk1) == 601088); + static_assert(offsetof(cg_s, unk_601088) == 601088); static_assert(offsetof(cg_s, renderingThirdPerson) == 601092); - static_assert(offsetof(cg_s, unk2) == 979676); - static_assert(offsetof(cg_s, unk3) == 979696); + static_assert(offsetof(cg_s, unk_979676) == 979676); + static_assert(offsetof(cg_s, unk_979696) == 979696); struct pmove_t {