cl_dll/vgui_fpspanel.cpp
29303132333435
#include "tier0/memdbgon.h"
static ConVar cl_showfps( "cl_showfps", "0", 0, "Draw fps meter at top of screen (1 = fps, 2 = smooth fps)" );
static ConVar cl_showpos( "cl_showpos", "0", 0, "Draw current position at top of screen" );
//-----------------------------------------------------------------------------
// Purpose: Framerate indicator panel
29303132333435
#include "tier0/memdbgon.h"
static ConVar cl_showfps( "cl_showfps", "0", 0, "Draw fps meter at top of screen (1 = fps, 2 = smooth fps)" );
static ConVar cl_showpos( "cl_showpos", "0", 0, "Draw current position at top of screen (view angles only show with sv_cheats 1)" );
//-----------------------------------------------------------------------------
// Purpose: Framerate indicator panel
269270271272273274275276277278279
MainViewOrigin().x, MainViewOrigin().y, MainViewOrigin().z );
i++;
g_pMatSystemSurface->DrawColoredText( m_hFont, x, 2 + i * ( vgui::surface()->GetFontTall( m_hFont ) + 2 ),
255, 255, 255, 255,
"ang: %.2f %.2f %.2f",
MainViewAngles().x, MainViewAngles().y, MainViewAngles().z );
i++;
Vector vel( 0, 0, 0 );
C_BasePlayer *player = C_BasePlayer::GetLocalPlayer();
269270271272273274275276277278279280281282283
MainViewOrigin().x, MainViewOrigin().y, MainViewOrigin().z );
i++;
// only draw angle if cheats is on
if ( sv_cheats && sv_cheats->GetBool() )
{
g_pMatSystemSurface->DrawColoredText( m_hFont, x, 2 + i * ( vgui::surface()->GetFontTall( m_hFont ) + 2 ),
255, 255, 255, 255,
"ang: %.2f %.2f %.2f",
MainViewAngles().x, MainViewAngles().y, MainViewAngles().z );
i++;
}
Vector vel( 0, 0, 0 );
C_BasePlayer *player = C_BasePlayer::GetLocalPlayer();