diff --git a/dev/performance-3.0.5/config.cfg b/dev/performance-3.0.5/config.cfg index 6c05eb5c..9cb24302 100644 --- a/dev/performance-3.0.5/config.cfg +++ b/dev/performance-3.0.5/config.cfg @@ -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" diff --git a/dev/performance-3.0.5/source/cl_dll/hud.cpp b/dev/performance-3.0.5/source/cl_dll/hud.cpp index 0d7bb3b1..e38c2e5c 100644 --- a/dev/performance-3.0.5/source/cl_dll/hud.cpp +++ b/dev/performance-3.0.5/source/cl_dll/hud.cpp @@ -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; diff --git a/dev/performance-3.0.5/source/mod/AvHClientVariables.h b/dev/performance-3.0.5/source/mod/AvHClientVariables.h index a2ae5017..96a4492c 100644 --- a/dev/performance-3.0.5/source/mod/AvHClientVariables.h +++ b/dev/performance-3.0.5/source/mod/AvHClientVariables.h @@ -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" diff --git a/dev/performance-3.0.5/source/mod/AvHHud.cpp b/dev/performance-3.0.5/source/mod/AvHHud.cpp index 7a548d39..197e60fb 100644 --- a/dev/performance-3.0.5/source/mod/AvHHud.cpp +++ b/dev/performance-3.0.5/source/mod/AvHHud.cpp @@ -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); diff --git a/dev/performance-3.0.5/user.scr b/dev/performance-3.0.5/user.scr index e0808635..e481f266 100644 --- a/dev/performance-3.0.5/user.scr +++ b/dev/performance-3.0.5/user.scr @@ -91,6 +91,13 @@ DESCRIPTION INFO_OPTIONS { "1" } } + "cl_gammaramp" + { + "Enable gamma ramp" + { BOOL } + { "1" } + } + "hud_fastswitch" { "Weapon fast-switch"