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

This commit is contained in:
RD42 2024-09-16 23:47:34 +08:00
parent e45235b6cf
commit d79db7fbac
2 changed files with 21 additions and 0 deletions

View File

@ -59,6 +59,26 @@ void CPlayer::ToggleCheckpoint(BOOL bEnabled)
//----------------------------------------------------
// TODO: sub_486D30
// TODO: sub_486DE0
//----------------------------------------------------
void CPlayer::SetRaceCheckpoint(int iType, float fX, float fY, float fZ, float fNX, float fNY, float fNZ, float fSize)
{
m_vecRaceCheckpoint.X = fX;
m_vecRaceCheckpoint.Y = fY;
m_vecRaceCheckpoint.Z = fZ;
m_vecRaceNextCheckpoint.X = fNX;
m_vecRaceNextCheckpoint.Y = fNY;
m_vecRaceNextCheckpoint.Z = fNZ;
m_fRaceCheckpointSize = fSize;
m_byteRaceCheckpointType = iType;
ToggleRaceCheckpoint(TRUE);
}
//----------------------------------------------------
void CPlayer::ToggleRaceCheckpoint(BOOL bEnabled)
{
m_bRaceCheckpointEnabled = bEnabled;

View File

@ -205,6 +205,7 @@ public:
void SetCheckpoint(float fX, float fY, float fZ, float fSize);
void ToggleCheckpoint(BOOL bEnabled);
void SetRaceCheckpoint(int iType, float fX, float fY, float fZ, float fNX, float fNY, float fNZ, float fSize);
void ToggleRaceCheckpoint(BOOL bEnabled);
};