From 16f85bea73691623d1a43c4a912f94f93e509597 Mon Sep 17 00:00:00 2001 From: maybegreat48 <96936658+maybegreat48@users.noreply.github.com> Date: Sun, 20 Nov 2022 16:34:38 +0000 Subject: [PATCH] Misc net messages (#75) * Create RemoteGamerInfoMsg.hpp * Create CMsgTextMessage.hpp --- network/CMsgTextMessage.hpp | 13 +++++++++++++ network/RemoteGamerInfoMsg.hpp | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 network/CMsgTextMessage.hpp create mode 100644 network/RemoteGamerInfoMsg.hpp diff --git a/network/CMsgTextMessage.hpp b/network/CMsgTextMessage.hpp new file mode 100644 index 0000000..bd2050d --- /dev/null +++ b/network/CMsgTextMessage.hpp @@ -0,0 +1,13 @@ +#pragma once +#include + +#pragma pack(push, 1) +class CMsgTextMessage +{ +public: + char m_message[256]; //0x0000 + uint64_t m_peer_id; //0x0100 + bool m_is_team; //0x0108 +}; //Size: 0x0109 +static_assert(sizeof(CMsgTextMessage) == 0x109); +#pragma pack(pop) diff --git a/network/RemoteGamerInfoMsg.hpp b/network/RemoteGamerInfoMsg.hpp new file mode 100644 index 0000000..e680a0d --- /dev/null +++ b/network/RemoteGamerInfoMsg.hpp @@ -0,0 +1,14 @@ +#pragma once +#include +#include "../rage/rlGamerInfo.hpp" + +#pragma pack(push, 1) +class RemoteGamerInfoMsg +{ +public: + uint64_t m_session_id; //0x0000 + class rage::rlGamerInfo m_gamer_info; //0x0008 + char pad_00A0[256]; //0x00A0 (tons of more fields down here, like IP addresses...) +}; //Size: 0x01A0 +static_assert(sizeof(RemoteGamerInfoMsg) == 0x1A0); +#pragma pack(pop)