From ff78425bd0cfd1478d9bba3aaf12fa057b3cf562 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 11:20:24 +0000 Subject: [PATCH] Decompile fn_22186 (CGameMode::ReceiveUnknown16FC588) Batch #5351 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review. - fn_22186 CGameMode::ReceiveUnknown16FC588: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, alisonrag, tayoba Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Mode/CGameMode.h | 3 +++ Source/Client/Mode/GameModePackets.cpp | 29 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/Source/Client/Mode/CGameMode.h b/Source/Client/Mode/CGameMode.h index 9a1cd84c..533ea5be 100644 --- a/Source/Client/Mode/CGameMode.h +++ b/Source/Client/Mode/CGameMode.h @@ -186,6 +186,7 @@ public: void IgnoreRemovedPacket3(const unsigned char* packet); void IgnoreRemovedPacket4(const unsigned char* packet); void IgnoreRemovedPacket5(const unsigned char* packet); + void IgnoreRemovedPacket7(const unsigned char* packet); void ReceiveItem1738Add(const unsigned char* packet); void ReceiveItem1738AddOptions(const unsigned char* packet); void ReceiveItem1738AddGrade(const unsigned char* packet); @@ -194,6 +195,8 @@ public: void ReceiveItem1740AddGrade(const unsigned char* packet); void ReceiveUnknown05C4Result(const unsigned char* packet); void ReceiveHpSpRecovery(const unsigned char* packet, int variant); + void ReceiveUnknown173A5BC(const unsigned char* packet); + void ReceiveUnknown16FC588(const unsigned char* packet); void StepTowardWalkableCell(const int& targetX, const int& targetY, int& x, int& y); void FindWalkableCellToward(float x, float z, float originX, float originZ, int& column, int& row, int distance); void RemoveMiniMapPing(std::uint32_t id); diff --git a/Source/Client/Mode/GameModePackets.cpp b/Source/Client/Mode/GameModePackets.cpp index 02bae505..c31c4cf7 100644 --- a/Source/Client/Mode/GameModePackets.cpp +++ b/Source/Client/Mode/GameModePackets.cpp @@ -535,3 +535,32 @@ void CGameMode::ReceiveHpSpRecovery(const unsigned char* packet, int variant) { } } } + +// GLOBAL: gl_24965 +int g_unknown173A5BC; + +// OFFSET: 0x00D50580 +// FUNCTION: fn_21884 +void CGameMode::IgnoreRemovedPacket7(const unsigned char*) { +} + +// OFFSET: 0x00D79420 +// FUNCTION: fn_22167 +void CGameMode::ReceiveUnknown173A5BC(const unsigned char* packet) { + const int value = *reinterpret_cast(packet + 2); + if (value > 0) { + g_unknown173A5BC = value; + } +} + +// GLOBAL: gl_24967 +int g_unknown16FC588; + +// OFFSET: 0x00D7A0B0 +// FUNCTION: fn_22186 +void CGameMode::ReceiveUnknown16FC588(const unsigned char* packet) { + const signed char value = *reinterpret_cast(packet + 2); + if (value != 1 && value != 2) { + g_unknown16FC588 = 0; + } +} \ No newline at end of file