Mantis 1070:

o Added cl_gammaramp as a client variable

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@238 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
tankefugl 2005-07-05 22:28:54 +00:00
parent dc94d3525d
commit f7a95da94a
5 changed files with 14 additions and 1 deletions

View file

@ -89,6 +89,7 @@ cl_dlmax "128"
cl_download_ingame "1"
cl_dynamiclights "1"
cl_forcedefaultfov "0"
cl_gammaramp "1"
cl_highdetail "1"
cl_himodels "0"
cl_idealpitchscale "0.8"

View file

@ -358,6 +358,7 @@ void CHud :: Init( void )
CVAR_CREATE( "cl_showspeed", "0", 0);
CVAR_CREATE( kvLabelMaps, "0", FCVAR_ARCHIVE);
CVAR_CREATE( kvGammaRamp, "0", FCVAR_ARCHIVE);
m_pSpriteList = NULL;

View file

@ -38,6 +38,9 @@ extern cvar_t* cl_musicdir;
// puzl: 1064 The cl var that controls the display of labelled minimaps
#define kvLabelMaps "cl_labelmaps"
// :puzl
// tankefugl: 0001070 enables forced gamma ramp loading
#define kvGammaRamp "cl_gammaramp"
// :tankefugl
#define kvCMHotKeys "cl_cmhotkeys"
#define kvForceDefaultFOV "cl_forcedefaultfov"
#define kvCenterEntityID "cl_centerentityid"

View file

@ -1899,7 +1899,8 @@ bool AvHHud::SetGamma(float inSlope)
theGammaToTry -= kGammaIncrement;
sGameGammaTable.ProcessSlope(theGammaToTry);
if(sGameGammaTable.InitializeToVideoState())
// tankefugl: fakes a successful gamma ramp change if cl_gammaramp is set to 0
if((CVAR_GET_FLOAT(kvGammaRamp) == 0) || sGameGammaTable.InitializeToVideoState())
{
// Tell UI components so they can change shading to look the same
this->GetManager().NotifyGammaChange(theGammaToTry);

View file

@ -91,6 +91,13 @@ DESCRIPTION INFO_OPTIONS
{ "1" }
}
"cl_gammaramp"
{
"Enable gamma ramp"
{ BOOL }
{ "1" }
}
"hud_fastswitch"
{
"Weapon fast-switch"