[iortcw] 27/95: All: Adjust video defaults and presets

Simon McVittie smcv at debian.org
Fri Sep 8 10:41:53 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to tag 1.51
in repository iortcw.

commit 8ecd9ffb7930c3f048bf19dfe0aecb0177fd3a9a
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Sun Feb 5 07:38:28 2017 -0500

    All: Adjust video defaults and presets
    
    Rend2 becomes renderer for High Quality preset
---
 MP/code/rend2/tr_init.c    |  2 +-
 MP/code/renderer/tr_init.c |  2 +-
 MP/code/ui/ui_main.c       | 54 +++++++++++++++++++++++++++++++---------
 SP/code/rend2/tr_init.c    |  2 +-
 SP/code/renderer/tr_init.c |  2 +-
 SP/code/ui/ui_main.c       | 62 ++++++++++++++++++++++++++++++++++------------
 6 files changed, 92 insertions(+), 32 deletions(-)

diff --git a/MP/code/rend2/tr_init.c b/MP/code/rend2/tr_init.c
index 6d8e14e..2a3b40b 100644
--- a/MP/code/rend2/tr_init.c
+++ b/MP/code/rend2/tr_init.c
@@ -1283,7 +1283,7 @@ void R_Register( void ) {
 	// latched and archived variables
 	//
 	r_allowExtensions = ri.Cvar_Get( "r_allowExtensions", "1", CVAR_ARCHIVE | CVAR_LATCH );
-	r_ext_compressed_textures = ri.Cvar_Get( "r_ext_compressed_textures", "1", CVAR_ARCHIVE | CVAR_LATCH );   // (SA) ew, a spelling change I missed from the missionpack
+	r_ext_compressed_textures = ri.Cvar_Get( "r_ext_compressed_textures", "0", CVAR_ARCHIVE | CVAR_LATCH );   // (SA) ew, a spelling change I missed from the missionpack
 	r_ext_multitexture = ri.Cvar_Get( "r_ext_multitexture", "1", CVAR_ARCHIVE | CVAR_LATCH );
 	r_ext_compiled_vertex_array = ri.Cvar_Get( "r_ext_compiled_vertex_array", "1", CVAR_ARCHIVE | CVAR_LATCH );
 	r_glIgnoreWicked3D = ri.Cvar_Get( "r_glIgnoreWicked3D", "0", CVAR_ARCHIVE | CVAR_LATCH );
diff --git a/MP/code/renderer/tr_init.c b/MP/code/renderer/tr_init.c
index 06026fa..1e279d7 100644
--- a/MP/code/renderer/tr_init.c
+++ b/MP/code/renderer/tr_init.c
@@ -1172,7 +1172,7 @@ void R_Register( void ) {
 	// latched and archived variables
 	//
 	r_allowExtensions = ri.Cvar_Get( "r_allowExtensions", "1", CVAR_ARCHIVE | CVAR_LATCH );
-	r_ext_compressed_textures = ri.Cvar_Get( "r_ext_compressed_textures", "1", CVAR_ARCHIVE | CVAR_LATCH );   // (SA) ew, a spelling change I missed from the missionpack
+	r_ext_compressed_textures = ri.Cvar_Get( "r_ext_compressed_textures", "0", CVAR_ARCHIVE | CVAR_LATCH );   // (SA) ew, a spelling change I missed from the missionpack
 	r_ext_multitexture = ri.Cvar_Get( "r_ext_multitexture", "1", CVAR_ARCHIVE | CVAR_LATCH );
 	r_ext_compiled_vertex_array = ri.Cvar_Get( "r_ext_compiled_vertex_array", "1", CVAR_ARCHIVE | CVAR_LATCH );
 	r_glIgnoreWicked3D = ri.Cvar_Get( "r_glIgnoreWicked3D", "0", CVAR_ARCHIVE | CVAR_LATCH );
diff --git a/MP/code/ui/ui_main.c b/MP/code/ui/ui_main.c
index d4d8be7..62d114b 100644
--- a/MP/code/ui/ui_main.c
+++ b/MP/code/ui/ui_main.c
@@ -4421,61 +4421,91 @@ static void UI_Update( const char *name ) {
 			trap_Cvar_SetValue( "r_colorbits", 32 );
 			trap_Cvar_SetValue( "r_depthbits", 24 );
 			trap_Cvar_SetValue( "r_picmip", 0 );
-			trap_Cvar_SetValue( "r_mode", 4 );
+			trap_Cvar_SetValue( "r_mode", -2 );
 			trap_Cvar_SetValue( "r_texturebits", 32 );
 			trap_Cvar_SetValue( "r_fastSky", 0 );
+			trap_Cvar_SetValue( "r_dynamiclight", 1 );
 			trap_Cvar_SetValue( "r_inGameVideo", 1 );
 			trap_Cvar_SetValue( "cg_shadows", 1 );
 			trap_Cvar_SetValue( "cg_brassTime", 2500 );
 			trap_Cvar_Set( "r_texturemode", "GL_LINEAR_MIPMAP_LINEAR" );
+			trap_Cvar_SetValue( "r_ext_compressed_textures", 0 );
+			trap_Cvar_SetValue( "r_overBrightBits", 0 );
+			trap_Cvar_Set( "cl_renderer", "rend2" );
+			trap_Cvar_SetValue( "r_hdr", 1 );
+			trap_Cvar_SetValue( "r_postProcess", 1 );
+			trap_Cvar_SetValue( "r_toneMap", 1 );
+			trap_Cvar_SetValue( "r_autoExposure", 1 );
+			trap_Cvar_SetValue( "r_normalMapping", 1 );
+			trap_Cvar_SetValue( "r_specularMapping", 1 );
+			trap_Cvar_SetValue( "r_deluxeMapping", 1 );
+			trap_Cvar_SetValue( "r_forceSun", 1 );
+			trap_Cvar_SetValue( "r_drawSunRays", 1 );
+			trap_Cvar_SetValue( "r_sunShadows", 1 );
+			trap_Cvar_SetValue( "r_shadowFilter", 1 );
 			break;
 		case 1:     // normal
 			trap_Cvar_SetValue( "r_fullScreen", 1 );
-			trap_Cvar_SetValue( "r_subdivisions", 12 );
+			trap_Cvar_SetValue( "r_subdivisions", 4 );
 			trap_Cvar_SetValue( "r_vertexlight", 0 );
 			trap_Cvar_SetValue( "r_lodbias", 0 );
 			trap_Cvar_SetValue( "r_colorbits", 0 );
-			trap_Cvar_SetValue( "r_depthbits", 24 );
+			trap_Cvar_SetValue( "r_depthbits", 0 );
 			trap_Cvar_SetValue( "r_picmip", 0 );
-			trap_Cvar_SetValue( "r_mode", 3 );
+			trap_Cvar_SetValue( "r_mode", -2 );
 			trap_Cvar_SetValue( "r_texturebits", 0 );
 			trap_Cvar_SetValue( "r_fastSky", 0 );
+			trap_Cvar_SetValue( "r_dynamiclight", 1 );
 			trap_Cvar_SetValue( "r_inGameVideo", 1 );
+			trap_Cvar_SetValue( "cg_shadows", 1 );
 			trap_Cvar_SetValue( "cg_brassTime", 2500 );
-			trap_Cvar_Set( "r_texturemode", "GL_LINEAR_MIPMAP_LINEAR" );
-			trap_Cvar_SetValue( "cg_shadows", 0 );
+			trap_Cvar_Set( "r_texturemode", "GL_LINEAR_MIPMAP_NEAREST" );
+			trap_Cvar_SetValue( "r_ext_compressed_textures", 0 );
+			trap_Cvar_SetValue( "r_overBrightBits", 0 );
+			trap_Cvar_Set( "cl_renderer", "opengl1" );
+			trap_Cvar_SetValue( "r_bloom", 1 );
 			break;
 		case 2:     // fast
 			trap_Cvar_SetValue( "r_fullScreen", 1 );
-			trap_Cvar_SetValue( "r_subdivisions", 8 );
+			trap_Cvar_SetValue( "r_subdivisions", 12 );
 			trap_Cvar_SetValue( "r_vertexlight", 0 );
 			trap_Cvar_SetValue( "r_lodbias", 1 );
 			trap_Cvar_SetValue( "r_colorbits", 0 );
 			trap_Cvar_SetValue( "r_depthbits", 0 );
 			trap_Cvar_SetValue( "r_picmip", 1 );
-			trap_Cvar_SetValue( "r_mode", 3 );
+			trap_Cvar_SetValue( "r_mode", -2 );
 			trap_Cvar_SetValue( "r_texturebits", 0 );
 			trap_Cvar_SetValue( "cg_shadows", 0 );
 			trap_Cvar_SetValue( "r_fastSky", 1 );
+			trap_Cvar_SetValue( "r_dynamiclight", 0 );
 			trap_Cvar_SetValue( "r_inGameVideo", 0 );
 			trap_Cvar_SetValue( "cg_brassTime", 0 );
 			trap_Cvar_Set( "r_texturemode", "GL_LINEAR_MIPMAP_NEAREST" );
+			trap_Cvar_SetValue( "r_ext_compressed_textures", 1 );
+			trap_Cvar_SetValue( "r_overBrightBits", 0 );
+			trap_Cvar_Set( "cl_renderer", "opengl1" );
+			trap_Cvar_SetValue( "r_bloom", 0 );
 			break;
 		case 3:     // fastest
 			trap_Cvar_SetValue( "r_fullScreen", 1 );
 			trap_Cvar_SetValue( "r_subdivisions", 20 );
 			trap_Cvar_SetValue( "r_vertexlight", 1 );
 			trap_Cvar_SetValue( "r_lodbias", 2 );
-			trap_Cvar_SetValue( "r_colorbits", 16 );
-			trap_Cvar_SetValue( "r_depthbits", 16 );
-			trap_Cvar_SetValue( "r_mode", 3 );
+			trap_Cvar_SetValue( "r_colorbits", 0 );
+			trap_Cvar_SetValue( "r_depthbits", 0 );
+			trap_Cvar_SetValue( "r_mode", -2 );
 			trap_Cvar_SetValue( "r_picmip", 2 );
-			trap_Cvar_SetValue( "r_texturebits", 16 );
+			trap_Cvar_SetValue( "r_texturebits", 0 );
 			trap_Cvar_SetValue( "cg_shadows", 0 );
 			trap_Cvar_SetValue( "cg_brassTime", 0 );
 			trap_Cvar_SetValue( "r_fastSky", 1 );
+			trap_Cvar_SetValue( "r_dynamiclight", 0 );
 			trap_Cvar_SetValue( "r_inGameVideo", 0 );
 			trap_Cvar_Set( "r_texturemode", "GL_LINEAR_MIPMAP_NEAREST" );
+			trap_Cvar_SetValue( "r_ext_compressed_textures", 1 );
+			trap_Cvar_SetValue( "r_overBrightBits", 0 );
+			trap_Cvar_Set( "cl_renderer", "opengl1" );
+			trap_Cvar_SetValue( "r_bloom", 0 );
 			break;
 		}
 	} else if ( Q_stricmp( name, "ui_mousePitch" ) == 0 ) {
diff --git a/SP/code/rend2/tr_init.c b/SP/code/rend2/tr_init.c
index 8ccbb09..d3b1962 100644
--- a/SP/code/rend2/tr_init.c
+++ b/SP/code/rend2/tr_init.c
@@ -1297,7 +1297,7 @@ void R_Register( void ) {
 	// latched and archived variables
 	//
 	r_allowExtensions = ri.Cvar_Get( "r_allowExtensions", "1", CVAR_ARCHIVE | CVAR_LATCH );
-	r_ext_compressed_textures = ri.Cvar_Get( "r_ext_compressed_textures", "1", CVAR_ARCHIVE | CVAR_LATCH );   // (SA) ew, a spelling change I missed from the missionpack
+	r_ext_compressed_textures = ri.Cvar_Get( "r_ext_compressed_textures", "0", CVAR_ARCHIVE | CVAR_LATCH );   // (SA) ew, a spelling change I missed from the missionpack
 	r_ext_multitexture = ri.Cvar_Get( "r_ext_multitexture", "1", CVAR_ARCHIVE | CVAR_LATCH );
 	r_ext_compiled_vertex_array = ri.Cvar_Get( "r_ext_compiled_vertex_array", "1", CVAR_ARCHIVE | CVAR_LATCH );
 	r_glIgnoreWicked3D = ri.Cvar_Get( "r_glIgnoreWicked3D", "0", CVAR_ARCHIVE | CVAR_LATCH );
diff --git a/SP/code/renderer/tr_init.c b/SP/code/renderer/tr_init.c
index f95c259..0406232 100644
--- a/SP/code/renderer/tr_init.c
+++ b/SP/code/renderer/tr_init.c
@@ -1187,7 +1187,7 @@ void R_Register( void ) {
 	// latched and archived variables
 	//
 	r_allowExtensions = ri.Cvar_Get( "r_allowExtensions", "1", CVAR_ARCHIVE | CVAR_LATCH );
-	r_ext_compressed_textures = ri.Cvar_Get( "r_ext_compressed_textures", "1", CVAR_ARCHIVE | CVAR_LATCH );   // (SA) ew, a spelling change I missed from the missionpack
+	r_ext_compressed_textures = ri.Cvar_Get( "r_ext_compressed_textures", "0", CVAR_ARCHIVE | CVAR_LATCH );   // (SA) ew, a spelling change I missed from the missionpack
 	r_ext_multitexture = ri.Cvar_Get( "r_ext_multitexture", "1", CVAR_ARCHIVE | CVAR_LATCH );
 	r_ext_compiled_vertex_array = ri.Cvar_Get( "r_ext_compiled_vertex_array", "1", CVAR_ARCHIVE | CVAR_LATCH );
 	r_glIgnoreWicked3D = ri.Cvar_Get( "r_glIgnoreWicked3D", "0", CVAR_ARCHIVE | CVAR_LATCH );
diff --git a/SP/code/ui/ui_main.c b/SP/code/ui/ui_main.c
index ebd8044..4aa1df1 100644
--- a/SP/code/ui/ui_main.c
+++ b/SP/code/ui/ui_main.c
@@ -4455,7 +4455,7 @@ static void UI_Update( const char *name ) {
 		}
 	} else if ( Q_stricmp( name, "ui_glCustom" ) == 0 ) {
 		switch ( val ) {
-		case 0: // high quality
+		case 0:     // high quality
 			trap_Cvar_SetValue( "r_fullScreen", 1 );
 			trap_Cvar_SetValue( "r_subdivisions", 4 );
 			trap_Cvar_SetValue( "r_vertexlight", 0 );
@@ -4464,64 +4464,94 @@ static void UI_Update( const char *name ) {
 			trap_Cvar_SetValue( "r_depthbits", 24 );
 			trap_Cvar_SetValue( "r_picmip", 0 );
 			trap_Cvar_SetValue( "r_picmip2", 0 );
-			trap_Cvar_SetValue( "r_mode", 4 );
+			trap_Cvar_SetValue( "r_mode", -2 );
 			trap_Cvar_SetValue( "r_texturebits", 32 );
 			trap_Cvar_SetValue( "r_fastSky", 0 );
+			trap_Cvar_SetValue( "r_dynamiclight", 1 );
 			trap_Cvar_SetValue( "r_inGameVideo", 1 );
 			trap_Cvar_SetValue( "cg_shadows", 1 );
 			trap_Cvar_SetValue( "cg_brassTime", 2500 );
 			trap_Cvar_Set( "r_texturemode", "GL_LINEAR_MIPMAP_LINEAR" );
+			trap_Cvar_SetValue( "r_ext_compressed_textures", 0 );
+			trap_Cvar_SetValue( "r_overBrightBits", 0 );
+			trap_Cvar_Set( "cl_renderer", "rend2" );
+			trap_Cvar_SetValue( "r_hdr", 1 );
+			trap_Cvar_SetValue( "r_postProcess", 1 );
+			trap_Cvar_SetValue( "r_toneMap", 1 );
+			trap_Cvar_SetValue( "r_autoExposure", 1 );
+			trap_Cvar_SetValue( "r_normalMapping", 1 );
+			trap_Cvar_SetValue( "r_specularMapping", 1 );
+			trap_Cvar_SetValue( "r_deluxeMapping", 1 );
+			trap_Cvar_SetValue( "r_forceSun", 1 );
+			trap_Cvar_SetValue( "r_drawSunRays", 1 );
+			trap_Cvar_SetValue( "r_sunShadows", 1 );
+			trap_Cvar_SetValue( "r_shadowFilter", 1 );
 			break;
-		case 1: // normal
+		case 1:     // normal
 			trap_Cvar_SetValue( "r_fullScreen", 1 );
-			trap_Cvar_SetValue( "r_subdivisions", 12 );
+			trap_Cvar_SetValue( "r_subdivisions", 4 );
 			trap_Cvar_SetValue( "r_vertexlight", 0 );
 			trap_Cvar_SetValue( "r_lodbias", 0 );
 			trap_Cvar_SetValue( "r_colorbits", 0 );
-			trap_Cvar_SetValue( "r_depthbits", 24 );
+			trap_Cvar_SetValue( "r_depthbits", 0 );
 			trap_Cvar_SetValue( "r_picmip", 0 );
 			trap_Cvar_SetValue( "r_picmip2", 1 );
-			trap_Cvar_SetValue( "r_mode", 3 );
+			trap_Cvar_SetValue( "r_mode", -2 );
 			trap_Cvar_SetValue( "r_texturebits", 0 );
 			trap_Cvar_SetValue( "r_fastSky", 0 );
+			trap_Cvar_SetValue( "r_dynamiclight", 1 );
 			trap_Cvar_SetValue( "r_inGameVideo", 1 );
+			trap_Cvar_SetValue( "cg_shadows", 1 );
 			trap_Cvar_SetValue( "cg_brassTime", 2500 );
-			trap_Cvar_Set( "r_texturemode", "GL_LINEAR_MIPMAP_NEAREST" ); //----(SA)	modified so wolf never sets trilinear automatically
-			trap_Cvar_SetValue( "cg_shadows", 0 );
+			trap_Cvar_Set( "r_texturemode", "GL_LINEAR_MIPMAP_NEAREST" );
+			trap_Cvar_SetValue( "r_ext_compressed_textures", 0 );
+			trap_Cvar_SetValue( "r_overBrightBits", 0 );
+			trap_Cvar_Set( "cl_renderer", "opengl1" );
+			trap_Cvar_SetValue( "r_bloom", 1 );
 			break;
-		case 2: // fast
+		case 2:     // fast
 			trap_Cvar_SetValue( "r_fullScreen", 1 );
-			trap_Cvar_SetValue( "r_subdivisions", 8 );
+			trap_Cvar_SetValue( "r_subdivisions", 12 );
 			trap_Cvar_SetValue( "r_vertexlight", 0 );
 			trap_Cvar_SetValue( "r_lodbias", 1 );
 			trap_Cvar_SetValue( "r_colorbits", 0 );
 			trap_Cvar_SetValue( "r_depthbits", 0 );
 			trap_Cvar_SetValue( "r_picmip", 1 );
 			trap_Cvar_SetValue( "r_picmip2", 2 );
-			trap_Cvar_SetValue( "r_mode", 3 );
+			trap_Cvar_SetValue( "r_mode", -2 );
 			trap_Cvar_SetValue( "r_texturebits", 0 );
 			trap_Cvar_SetValue( "cg_shadows", 0 );
 			trap_Cvar_SetValue( "r_fastSky", 1 );
+			trap_Cvar_SetValue( "r_dynamiclight", 0 );
 			trap_Cvar_SetValue( "r_inGameVideo", 0 );
 			trap_Cvar_SetValue( "cg_brassTime", 0 );
 			trap_Cvar_Set( "r_texturemode", "GL_LINEAR_MIPMAP_NEAREST" );
+			trap_Cvar_SetValue( "r_ext_compressed_textures", 1 );
+			trap_Cvar_SetValue( "r_overBrightBits", 0 );
+			trap_Cvar_Set( "cl_renderer", "opengl1" );
+			trap_Cvar_SetValue( "r_bloom", 0 );
 			break;
-		case 3: // fastest
+		case 3:     // fastest
 			trap_Cvar_SetValue( "r_fullScreen", 1 );
 			trap_Cvar_SetValue( "r_subdivisions", 20 );
 			trap_Cvar_SetValue( "r_vertexlight", 1 );
 			trap_Cvar_SetValue( "r_lodbias", 2 );
-			trap_Cvar_SetValue( "r_colorbits", 16 );
-			trap_Cvar_SetValue( "r_depthbits", 16 );
-			trap_Cvar_SetValue( "r_mode", 3 );
+			trap_Cvar_SetValue( "r_colorbits", 0 );
+			trap_Cvar_SetValue( "r_depthbits", 0 );
+			trap_Cvar_SetValue( "r_mode", -2 );
 			trap_Cvar_SetValue( "r_picmip", 2 );
 			trap_Cvar_SetValue( "r_picmip2", 3 );
-			trap_Cvar_SetValue( "r_texturebits", 16 );
+			trap_Cvar_SetValue( "r_texturebits", 0 );
 			trap_Cvar_SetValue( "cg_shadows", 0 );
 			trap_Cvar_SetValue( "cg_brassTime", 0 );
 			trap_Cvar_SetValue( "r_fastSky", 1 );
+			trap_Cvar_SetValue( "r_dynamiclight", 0 );
 			trap_Cvar_SetValue( "r_inGameVideo", 0 );
 			trap_Cvar_Set( "r_texturemode", "GL_LINEAR_MIPMAP_NEAREST" );
+			trap_Cvar_SetValue( "r_ext_compressed_textures", 1 );
+			trap_Cvar_SetValue( "r_overBrightBits", 0 );
+			trap_Cvar_Set( "cl_renderer", "opengl1" );
+			trap_Cvar_SetValue( "r_bloom", 0 );
 			break;
 
 		case 999:   // 999 is reserved for having set default values ("recommended")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list