mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[server] Implement/match CPlayer::SetRaceCheckpoint(...)
This commit is contained in:
parent
e45235b6cf
commit
d79db7fbac
@ -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;
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user