networking
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user