From 7c5feef6a2f828b6c59948e93e0cbd0820a514f8 Mon Sep 17 00:00:00 2001 From: Michael Rieder Date: Wed, 7 Jan 2015 23:47:18 +0100 Subject: [PATCH] Have custom intro cinematics for standalone game --- code/qcommon/common.c | 4 ++-- code/qcommon/q_shared.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/code/qcommon/common.c b/code/qcommon/common.c index 3f06c75b..878dc0ec 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -2805,10 +2805,10 @@ void Com_Init( char *commandLine ) { if ( !Com_AddStartupCommands() ) { // if the user didn't give any commands, run default action if ( !com_dedicated->integer ) { - Cbuf_AddText ("cinematic idlogo.RoQ\n"); + Cbuf_AddText ("cinematic " CINEMATICS_LOGO "\n"); if( !com_introPlayed->integer ) { Cvar_Set( com_introPlayed->name, "1" ); - Cvar_Set( "nextmap", "cinematic intro.RoQ" ); + Cvar_Set( "nextmap", "cinematic " CINEMATICS_INTRO ); } } } diff --git a/code/qcommon/q_shared.h b/code/qcommon/q_shared.h index 90996a29..6867795c 100644 --- a/code/qcommon/q_shared.h +++ b/code/qcommon/q_shared.h @@ -35,6 +35,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define HOMEPATH_NAME_WIN "FooBar" #define HOMEPATH_NAME_MACOSX HOMEPATH_NAME_WIN #define GAMENAME_FOR_MASTER "foobar" // must NOT contain whitespace + #define CINEMATICS_LOGO "foologo.roq" + #define CINEMATICS_INTRO "intro.roq" // #define LEGACY_PROTOCOL // You probably don't need this for your standalone game #else #define PRODUCT_NAME "ioq3" @@ -45,6 +47,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define HOMEPATH_NAME_WIN "Quake3" #define HOMEPATH_NAME_MACOSX HOMEPATH_NAME_WIN #define GAMENAME_FOR_MASTER "Quake3Arena" + #define CINEMATICS_LOGO "idlogo.RoQ" + #define CINEMATICS_INTRO "intro.RoQ" #define LEGACY_PROTOCOL #endif