PlayerInfoRace
has the field m_RaceStartTick
. When it changes from -1 to a valid tick the race starts, when it turns -1 again the race ends. When you cross the finish line the client receives the netmessage Sv_RaceFinish
, which contains the timePlayerInfoRace
item and the previous didn't. I used the wrong type for m_RaceStartTick
=\GameContext
has GetPlayerChar(int ClientID)
with all checks (like object's existance) but hasn't GetPlayer(int ClientID)
with validation of ID and object's existance check (edited)if(ID >= 0 && ID < MAX_PLAYERS && m_apPlayers[ID] && m_apPlayers[ID]->GetTeam() == TEAM_SPECTATORS)
(example if-statement)Error: freetype 2.10.1 is already installed
To upgrade to 2.10.2, run `brew upgrade freetype`.