home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 April
/
Gamestar_83_2006-04_dvd.iso
/
Dema
/
demowot_english.exe
/
Script
/
Source
/
cutscene.inc
< prev
next >
Wrap
Text File
|
2005-03-11
|
5KB
|
115 lines
#if defined _cutscene_inc
#endinput
#endif
#define _cutscene_inc
stock gCutsceneInSemaphor = 0;
stock gPlaceholderSound[] = "Sounds\\Game\\Speech\\Mission\\TEMPORARY.wav";
#define CS_START static CutsceneNextState = 0; CutsceneNextState++; RemoveEvent( SELF ); DebugMessageP1( "Cutscene state: ", CutsceneNextState, DL_MESSAGE ); switch( CutsceneNextState ) {
// static CutsceneNextState = 0;
// CutsceneNextState++;
// RemoveEvent( SELF );
// DebugMessageP1( "Cutscene state: ", CutsceneNextState, DL_MESSAGE );
// switch( CutsceneNextState ) {
#define CS_END } default: { new tmpstr[200]; ConcatString( tmpstr, 199, SELF, ": Invalid case branch!" ); DebugMessage( tmpstr, DL_ERROR ); }}
#define CS_SAY(%1,%2) AddSoundMessage( "#iMS%1_SP%2#", "Sounds\\Game\\Speech\\Mission\\MS%1_SP%2.mp3" )
#define CS_SAYWAIT(%1,%2) AddSoundMessage( "#iMS%1_SP%2#", "Sounds\\Game\\Speech\\Mission\\MS%1_SP%2.mp3" );AddAKEntityEvent( SELF, ANY_ENTITY, MESSAGE_END )
#define MSG(%1,%2) ShowShortMessage( "#iMS%1_MSG%2#" );
#define CS_WAIT(%1) AddTimerEvent( SELF, %1, "GameLogic", true )
#define CS_WAIT_AL(%1) AddTimerEvent( SELF, %1, "AnimLogic", true )
#define CS_WAIT_SPEACH_END if( !SoundMessagesFinished()) { AddTimerEvent( SELF, 0.3, "GameLogic", true ); CutsceneNextState--; return; }
// if( !SoundMessagesFinished())
// {
// CutsceneNextState--;
// AddTimerEvent( SELF, 0.3, "GameLogic", true );
// return;
// }
#define CS_WAIT_CAM AddAKEntityEvent( SELF, ANY_ENTITY, CAMERA_TARGET_REACHED )
#define CS_SAYWAIT_PLACESTART AddSoundMessage( "PLACEHOLDER CUTSCENE STARTS HERE", gPlaceholderSound ); AddAKEntityEvent( SELF ,ANY_ENTITY ,MESSAGE_END )
#define CS_SAYWAIT_PLACEEND AddSoundMessage( "PLACEHOLDER CUTSCENE ENDS HERE", gPlaceholderSound ); AddAKEntityEvent( SELF, ANY_ENTITY, MESSAGE_END )
#define CS_UE_CHECK(%1,%2) if(IsDebugLevelOK(%2)) {new tmpstr[200]; if( Param != _:%1 ){ ConcatString( tmpstr, 199, SELF, ": Invalid event param when %1 waited: " ); DebugMessageP1( tmpstr, Param, %2 );}else{ConcatString( tmpstr, 199, SELF, ": User event waited and arrived: %1." );DebugMessage( tmpstr, DL_MESSAGE );}}
// Ugyanez kifejtve:
//
// if(IsDebugLevelOK(%2)){
// new tmpstr[200];
// if( Param != _:%1 )
// {
// ConcatString( tmpstr, 199, SELF, ": Invalid event param when %1 waited: " );
// DebugMessageP1( tmpstr, Param, %2 );
// }
// else {
// ConcatString( tmpstr, 199, SELF, ": User event waited and arrived: %1." );
// DebugMessage( tmpstr, DL_MESSAGE );
// }
// }
#define CS_FIRST new tmps[200] = "...in a new cutscene: "; ConcatString( tmps, 199, tmps, SELF ); DebugMessage( tmps, DL_MESSAGE ); if( gCutsceneInSemaphor++ > 0 ){ new tmpstr[200]; ConcatString( tmpstr, 199, "Cutscene in cutscene. Starting inner cutscene: ", SELF ); DebugMessageP1( tmpstr, gCutsceneInSemaphor, DL_WARNING );}
// new tmps[200] = "...in a new cutscene: ";
// ConcatString( tmps, 199, tmps, SELF );
// DebugMessage( tmps, DL_MESSAGE );
// if( gCutsceneInSemaphor++ > 0 )
// {
// new tmpstr[200];
// ConcatString( tmpstr, 199, "Cutscene in cutscene. Starting inner cutscene: ", SELF );
// DebugMessageP1( tmpstr, gCutsceneInSemaphor, DL_WARNING );
// }
#define CS_LAST new tmps[200] = "Last branch in the cutscene: "; ConcatString( tmps, 199, tmps, SELF ); DebugMessage( tmps, DL_MESSAGE ); if( --gCutsceneInSemaphor > 0 ) { new tmpstr[200]; ConcatString( tmpstr, 199, "Cutscene in cutscene. Quiting from inner cutscene: ", SELF ); DebugMessageP1( tmpstr, gCutsceneInSemaphor, DL_WARNING );}
// new tmps[200] = "Last branch in the cutscene: ";
// ConcatString( tmps, 199, tmps, SELF );
// DebugMessage( tmps, DL_MESSAGE );
// if( --gCutsceneInSemaphor > 0 )
// {
// new tmpstr[200];
// ConcatString( tmpstr, 199, "Cutscene in cutscene. Quiting from inner cutscene: ", SELF );
// DebugMessageP1( tmpstr, gCutsceneInSemaphor, DL_WARNING );
// }
#define E(%1) GetEntity(%1)
#define CS_1 case 1: {
#define CS_2 } case 2: {
#define CS_3 } case 3: {
#define CS_4 } case 4: {
#define CS_5 } case 5: {
#define CS_6 } case 6: {
#define CS_7 } case 7: {
#define CS_8 } case 8: {
#define CS_9 } case 9: {
#define CS_10 } case 10: {
#define CS_11 } case 11: {
#define CS_12 } case 12: {
#define CS_13 } case 13: {
#define CS_14 } case 14: {
#define CS_15 } case 15: {
#define CS_16 } case 16: {
#define CS_17 } case 17: {
#define CS_18 } case 18: {
#define CS_19 } case 19: {
#define CS_20 } case 20: {
#define CS_21 } case 21: {
#define CS_22 } case 22: {
#define CS_23 } case 23: {
#define CS_24 } case 24: {
#define CS_25 } case 25: {
#define CS_26 } case 26: {
#define CS_27 } case 27: {
#define CS_28 } case 28: {
#define CS_29 } case 29: {
#define CS_30 } case 30: {