[server] Implement/match CPlayer::SetCheckpoint(...)

This commit is contained in:
RD42 2024-09-16 23:45:32 +08:00
parent 3fc732d05c
commit 9dfa35f439
2 changed files with 11 additions and 0 deletions

View File

@ -25,6 +25,16 @@ void CPlayer::SetSpawnInfo(PLAYER_SPAWN_INFO *pSpawn)
//----------------------------------------------------
void CPlayer::SetCheckpoint(float fX, float fY, float fZ, float fSize)
{
m_vecCheckpoint.X = fX;
m_vecCheckpoint.Y = fY;
m_vecCheckpoint.Z = fZ;
m_fCheckpointSize = fSize;
ToggleCheckpoint(TRUE);
}
//----------------------------------------------------

View File

@ -199,6 +199,7 @@ public:
void SetSpawnInfo(PLAYER_SPAWN_INFO *pSpawn);
void SetCheckpoint(float fX, float fY, float fZ, float fSize);
void ToggleCheckpoint(BOOL bEnabled);
};