Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CHud::OnRender()
- {
- if(!m_pClient->m_Snap.m_pGameInfoObj)
- return;
- m_Width = 300.0f*Graphics()->ScreenAspect();
- m_Height = 300.0f;
- Graphics()->MapScreen(0.0f, 0.0f, m_Width, m_Height);
- if(g_Config.m_ClShowhud)
- {
- if(m_pClient->m_Snap.m_pLocalCharacter && !(m_pClient->m_Snap.m_pGameInfoObj->m_GameStateFlags&GAMESTATEFLAG_GAMEOVER))
- RenderHealthAndAmmo(m_pClient->m_Snap.m_pLocalCharacter);
- else if(m_pClient->m_Snap.m_SpecInfo.m_Active)
- {
- if(m_pClient->m_Snap.m_SpecInfo.m_SpectatorID != SPEC_FREEVIEW)
- RenderHealthAndAmmo(&m_pClient->m_Snap.m_aCharacters[m_pClient->m_Snap.m_SpecInfo.m_SpectatorID].m_Cur);
- RenderSpectatorHud();
- }
- RenderGameTimer();
- RenderPauseNotification();
- RenderSuddenDeath();
- RenderScoreHud();
- RenderWarmupTimer();
- RenderFps();
- if(Client()->State() != IClient::STATE_DEMOPLAYBACK)
- RenderConnectionWarning();
- RenderTeambalanceWarning();
- RenderVoting();
- }
- RenderCursor();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement