mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
@@ -258,7 +258,15 @@ void CHudCrosshair::Paint( void )
|
||||
pWeapon->GetWeaponCrosshairScale( flWeaponScale );
|
||||
}
|
||||
|
||||
float flPlayerScale = 1.0f;
|
||||
int iScreenDiv = 1600;
|
||||
if ( IsSteamDeck() )
|
||||
iScreenDiv = 1440;
|
||||
|
||||
float flPlayerScale;
|
||||
if ( !m_pCrosshair->bRenderUsingFont )
|
||||
flPlayerScale = (ScreenHeight() / iScreenDiv) + 1;
|
||||
else
|
||||
flPlayerScale = 1.0f;
|
||||
#ifdef TF_CLIENT_DLL
|
||||
Color clr( cl_crosshair_red.GetInt(), cl_crosshair_green.GetInt(), cl_crosshair_blue.GetInt(), 255 );
|
||||
flPlayerScale = cl_crosshair_scale.GetFloat() / 32.0f; // the player can change the scale in the options/multiplayer tab
|
||||
|
||||
Reference in New Issue
Block a user