aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/server/r2server.h
diff options
context:
space:
mode:
authorEmma Miler <emma.pi@protonmail.com>2022-12-19 19:32:16 +0100
committerGitHub <noreply@github.com>2022-12-19 19:32:16 +0100
commite04f3b36accccb590a2d51b4829256b9964ac3fd (patch)
tree20ee30c82e6f53e6e772be2e1b9613eebca12bf3 /NorthstarDLL/server/r2server.h
parent33f18a735986dcd136bf8ba70ad8331306c28227 (diff)
downloadNorthstarLauncher-e04f3b36accccb590a2d51b4829256b9964ac3fd.tar.gz
NorthstarLauncher-e04f3b36accccb590a2d51b4829256b9964ac3fd.zip
Restructuring (#365)
* Remove launcher proxy * Restructuring * More restructuring * Fix include dirs * Fix merge * Remove clang thing * Filters * Oops
Diffstat (limited to 'NorthstarDLL/server/r2server.h')
-rw-r--r--NorthstarDLL/server/r2server.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/NorthstarDLL/server/r2server.h b/NorthstarDLL/server/r2server.h
new file mode 100644
index 00000000..313284be
--- /dev/null
+++ b/NorthstarDLL/server/r2server.h
@@ -0,0 +1,28 @@
+#pragma once
+
+#include "core/math/vector.h"
+
+// use the R2 namespace for game funcs
+namespace R2
+{
+ // server entity stuff
+ class CBaseEntity;
+ extern CBaseEntity* (*Server_GetEntityByIndex)(int index);
+
+ // clang-format off
+ OFFSET_STRUCT(CBasePlayer)
+ {
+ STRUCT_SIZE(0x1D02);
+ FIELD(0x58, uint32_t m_nPlayerIndex)
+
+ FIELD(0x1C90, bool m_hasBadReputation)
+ FIELD(0x1C91, char m_communityName[64])
+ FIELD(0x1CD1, char m_communityClanTag[16])
+ FIELD(0x1CE1, char m_factionName[16])
+ FIELD(0x1CF1, char m_hardwareIcon[16])
+ FIELD(0x1D01, bool m_happyHourActive)
+ };
+ // clang-format on
+
+ extern CBasePlayer*(__fastcall* UTIL_PlayerByIndex)(int playerIndex);
+} // namespace R2