networking

This commit is contained in:
2025-07-13 15:47:42 +03:00
parent f5b26be510
commit a9c28b8940
345 changed files with 142130 additions and 174 deletions

View File

@@ -4,7 +4,7 @@
#include "tier1/utlvector.h"
CUtlVector<CPlayerStart*> g_PlayerStarts;
CUtlVector<CPlayerStart*> g_PlayerStarts = {};
void CPlayerStart::Precache()
{
@@ -22,6 +22,16 @@ void CPlayerStart::ReadParameter( const char *szName, const char *szValue )
void CPlayerStart::Destroy()
{
uint32_t i = 0;
for (auto &start: g_PlayerStarts)
{
if (start == this)
{
g_PlayerStarts.RemoveAt(i);
break;
}
i++;
}
}
void CPlayerStart::Think( float fDelta )
@@ -51,4 +61,9 @@ void CPlayerStart::RoundStart(IIClient *pClient)
pClient->pBasePlayer = pOwningPlayer;
};
void CPlayerStart::Sync( void *pData, uint32_t nDataSize )
{
};
DECLARE_ENTITY(info_player_start, CPlayerStart);