Merge pull request #103 from openmoh/ioq3-intro

Have custom intro cinematics for standalone game
This commit is contained in:
Zachary J. Slater 2015-12-28 08:56:20 -08:00
commit 5555788867
2 changed files with 6 additions and 2 deletions

View file

@ -2805,10 +2805,10 @@ void Com_Init( char *commandLine ) {
if ( !Com_AddStartupCommands() ) { if ( !Com_AddStartupCommands() ) {
// if the user didn't give any commands, run default action // if the user didn't give any commands, run default action
if ( !com_dedicated->integer ) { if ( !com_dedicated->integer ) {
Cbuf_AddText ("cinematic idlogo.RoQ\n"); Cbuf_AddText ("cinematic " CINEMATICS_LOGO "\n");
if( !com_introPlayed->integer ) { if( !com_introPlayed->integer ) {
Cvar_Set( com_introPlayed->name, "1" ); Cvar_Set( com_introPlayed->name, "1" );
Cvar_Set( "nextmap", "cinematic intro.RoQ" ); Cvar_Set( "nextmap", "cinematic " CINEMATICS_INTRO );
} }
} }
} }

View file

@ -37,6 +37,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// #define STEAMPATH_NAME "Foo Bar" // #define STEAMPATH_NAME "Foo Bar"
// #define STEAMPATH_APPID "" // #define STEAMPATH_APPID ""
#define GAMENAME_FOR_MASTER "foobar" // must NOT contain whitespace #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 // #define LEGACY_PROTOCOL // You probably don't need this for your standalone game
#else #else
#define PRODUCT_NAME "ioq3" #define PRODUCT_NAME "ioq3"
@ -49,6 +51,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define STEAMPATH_NAME "Quake 3 Arena" #define STEAMPATH_NAME "Quake 3 Arena"
#define STEAMPATH_APPID "2200" #define STEAMPATH_APPID "2200"
#define GAMENAME_FOR_MASTER "Quake3Arena" #define GAMENAME_FOR_MASTER "Quake3Arena"
#define CINEMATICS_LOGO "idlogo.RoQ"
#define CINEMATICS_INTRO "intro.RoQ"
#define LEGACY_PROTOCOL #define LEGACY_PROTOCOL
#endif #endif