Skip to content

Commit

Permalink
Merge pull request #103 from openmoh/ioq3-intro
Browse files Browse the repository at this point in the history
Have custom intro cinematics for standalone game
  • Loading branch information
NuclearMonster committed Dec 28, 2015
2 parents e2b2437 + 7c5feef commit 5555788
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/qcommon/common.c
Expand Up @@ -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 );
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions code/qcommon/q_shared.h
Expand Up @@ -37,6 +37,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// #define STEAMPATH_NAME "Foo Bar"
// #define STEAMPATH_APPID ""
#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"
Expand All @@ -49,6 +51,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define STEAMPATH_NAME "Quake 3 Arena"
#define STEAMPATH_APPID "2200"
#define GAMENAME_FOR_MASTER "Quake3Arena"
#define CINEMATICS_LOGO "idlogo.RoQ"
#define CINEMATICS_INTRO "intro.RoQ"
#define LEGACY_PROTOCOL
#endif

Expand Down

0 comments on commit 5555788

Please sign in to comment.