[iortcw] 04/152: All: Have custom intro cinematics for standalone games

Simon McVittie smcv at debian.org
Fri Sep 8 10:39:33 UTC 2017


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

smcv pushed a commit to annotated tag 1.5a
in repository iortcw.

commit 71e7558c1fccfa18467a7dcfb2fe3906fd57bc6b
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Mon Dec 28 18:59:59 2015 -0500

    All: Have custom intro cinematics for standalone games
---
 MP/code/qcommon/common.c   | 4 ++--
 MP/code/qcommon/q_shared.h | 4 ++++
 SP/code/qcommon/common.c   | 6 +++---
 SP/code/qcommon/q_shared.h | 4 ++++
 4 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/MP/code/qcommon/common.c b/MP/code/qcommon/common.c
index 87cd7bd..91c49c5 100644
--- a/MP/code/qcommon/common.c
+++ b/MP/code/qcommon/common.c
@@ -2899,10 +2899,10 @@ void Com_Init( char *commandLine ) {
 	Cvar_Set( "com_recommendedSet", "1" );
 
 	if ( !com_dedicated->integer ) {
-		Cbuf_AddText( "cinematic gmlogo.RoQ\n" );
+		Cbuf_AddText( "cinematic " CINEMATICS_LOGO "\n" );
 		if ( !com_introPlayed->integer ) {
 			Cvar_Set( com_introPlayed->name, "1" );
-			Cvar_Set( "nextmap", "cinematic wolfintro.RoQ" );
+			Cvar_Set( "nextmap", "cinematic " CINEMATICS_INTRO );
 		}
 	}
 
diff --git a/MP/code/qcommon/q_shared.h b/MP/code/qcommon/q_shared.h
index 3bdd077..05feac0 100644
--- a/MP/code/qcommon/q_shared.h
+++ b/MP/code/qcommon/q_shared.h
@@ -53,6 +53,8 @@ If you have questions concerning this license or the applicable additional terms
 //  #define STEAMPATH_APPID		""
   #define HOMEPATH_NAME_MACOSX		HOMEPATH_NAME_WIN
   #define GAMENAME_FOR_MASTER		"foobar"	// must NOT contain whitespace
+  #define CINEMATICS_LOGO		"foologo.roq"
+  #define CINEMATICS_INTRO		"foointro.roq"
 // #define LEGACY_PROTOCOL	// You probably don't need this for your standalone game
 #else
   #define PRODUCT_NAME			"iortcw"
@@ -66,6 +68,8 @@ If you have questions concerning this license or the applicable additional terms
   #define STEAMPATH_APPID		"9010"
   #define HOMEPATH_NAME_MACOSX		HOMEPATH_NAME_WIN
   #define GAMENAME_FOR_MASTER		"wolfmp"
+  #define CINEMATICS_LOGO		"gmlogo.RoQ"	// non-existent
+  #define CINEMATICS_INTRO		"wolfintro.RoQ" // SP only
   #define LEGACY_PROTOCOL
 #endif
 
diff --git a/SP/code/qcommon/common.c b/SP/code/qcommon/common.c
index 99954d3..14d6340 100644
--- a/SP/code/qcommon/common.c
+++ b/SP/code/qcommon/common.c
@@ -2437,11 +2437,11 @@ void Com_Init( char *commandLine ) {
 	}
 
 	if ( !com_dedicated->integer ) {
-		//Cbuf_AddText ("cinematic gmlogo.RoQ\n");
+		//Cbuf_AddText ("cinematic " CINEMATICS_LOGO "\n");
 		if ( !com_introPlayed->integer ) {
 			//Cvar_Set( com_introPlayed->name, "1" );		//----(SA)	force this to get played every time (but leave cvar for override)
-			Cbuf_AddText( "cinematic wolfintro.RoQ 3\n" );
-			//Cvar_Set( "nextmap", "cinematic wolfintro.RoQ" );
+			Cbuf_AddText( "cinematic " CINEMATICS_INTRO " 3\n" );
+			//Cvar_Set( "nextmap", "cinematic " CINEMATICS_INTRO );
 		}
 	}
 
diff --git a/SP/code/qcommon/q_shared.h b/SP/code/qcommon/q_shared.h
index 8495a50..25469eb 100644
--- a/SP/code/qcommon/q_shared.h
+++ b/SP/code/qcommon/q_shared.h
@@ -51,6 +51,8 @@ If you have questions concerning this license or the applicable additional terms
 //  #define STEAMPATH_APPID		""
   #define HOMEPATH_NAME_MACOSX		HOMEPATH_NAME_WIN
   #define GAMENAME_FOR_MASTER		"foobar"	// must NOT contain whitespace
+  #define CINEMATICS_LOGO		"foologo.roq"
+  #define CINEMATICS_INTRO		"foointro.roq"
 //  #define LEGACY_PROTOCOL	// You probably don't need this for your standalone game
 #else
   #define PRODUCT_NAME			"iortcw"
@@ -63,6 +65,8 @@ If you have questions concerning this license or the applicable additional terms
   #define STEAMPATH_APPID		"9010"
   #define HOMEPATH_NAME_MACOSX		HOMEPATH_NAME_WIN
   #define GAMENAME_FOR_MASTER		"wolfsp"
+  #define CINEMATICS_LOGO		"gmlogo.RoQ"	// non-existent
+  #define CINEMATICS_INTRO		"wolfintro.RoQ"	// SP only
   #define LEGACY_PROTOCOL
 #endif
 

-- 
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