From 4c982eac2b989c0440085c49533f0b998cb37eba Mon Sep 17 00:00:00 2001 From: tschumann Date: Sat, 10 May 2025 18:04:29 +1000 Subject: [PATCH] Add missing client.dll exported functions. --- src/game/client/cdll_int.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/game/client/cdll_int.cpp b/src/game/client/cdll_int.cpp index 520234c0..7d393776 100644 --- a/src/game/client/cdll_int.cpp +++ b/src/game/client/cdll_int.cpp @@ -387,6 +387,31 @@ void DLLEXPORT HUD_DirectorMessage(int iSize, void *pbuf) gHUD.m_Spectator.DirectorMessage(iSize, pbuf); } +/* +========================== +HUD_GetPlayerTeam +========================== +*/ +int DLLEXPORT HUD_GetPlayerTeam(int iplayer) +{ + return gEngfuncs.GetEntityByIndex(iplayer)->curstate.team; +} + +void DLLEXPORT HUD_ChatInputPosition(int* x, int* y) +{ + if (g_iUser1 != 0 || gEngfuncs.IsSpectateOnly()) + { + if (gHUD.m_Spectator.m_pip->value == INSET_OFF) + { + *y = YRES(64); + } + else + { + *y = YRES(gHUD.m_Spectator.m_OverviewData.insetWindowHeight + 5); + } + } +} + // void CL_UnloadParticleMan() // { // g_pParticleMan = nullptr;