Skip to content

Commit c3ea361

Browse files
authored
Add missing client.dll exported functions. (#291)
1 parent 6519976 commit c3ea361

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

src/game/client/cdll_int.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,31 @@ void DLLEXPORT HUD_DirectorMessage(int iSize, void *pbuf)
387387
gHUD.m_Spectator.DirectorMessage(iSize, pbuf);
388388
}
389389

390+
/*
391+
==========================
392+
HUD_GetPlayerTeam
393+
==========================
394+
*/
395+
int DLLEXPORT HUD_GetPlayerTeam(int iplayer)
396+
{
397+
return gEngfuncs.GetEntityByIndex(iplayer)->curstate.team;
398+
}
399+
400+
void DLLEXPORT HUD_ChatInputPosition(int* x, int* y)
401+
{
402+
if (g_iUser1 != 0 || gEngfuncs.IsSpectateOnly())
403+
{
404+
if (gHUD.m_Spectator.m_pip->value == INSET_OFF)
405+
{
406+
*y = YRES(64);
407+
}
408+
else
409+
{
410+
*y = YRES(gHUD.m_Spectator.m_OverviewData.insetWindowHeight + 5);
411+
}
412+
}
413+
}
414+
390415
// void CL_UnloadParticleMan()
391416
// {
392417
// g_pParticleMan = nullptr;

0 commit comments

Comments
 (0)