| 946 | } |
| 947 | |
| 948 | bool CGameClient::Predict() const |
| 949 | { |
| 950 | if(!g_Config.m_ClPredict) |
| 951 | return false; |
| 952 | |
| 953 | if(m_Snap.m_pGameInfoObj) |
| 954 | { |
| 955 | if(m_Snap.m_pGameInfoObj->m_GameStateFlags & (GAMESTATEFLAG_GAMEOVER | GAMESTATEFLAG_PAUSED)) |
| 956 | { |
| 957 | return false; |
| 958 | } |
| 959 | } |
| 960 | |
| 961 | if(Client()->State() == IClient::STATE_DEMOPLAYBACK) |
| 962 | return false; |
| 963 | |
| 964 | return !m_Snap.m_SpecInfo.m_Active && m_Snap.m_pLocalCharacter; |
| 965 | } |
| 966 | |
| 967 | ColorRGBA CGameClient::GetDDTeamColor(int DDTeam, float Lightness) const |
| 968 | { |
no test coverage detected