more game interface gsc tweaks

This commit is contained in:
RaidMax 2023-06-01 21:09:18 -05:00
parent 7323c6e3d7
commit bc34211e43
5 changed files with 11 additions and 3 deletions

View File

@ -8,9 +8,11 @@ Init()
Setup() Setup()
{ {
level endon( "game_ended" ); level endon( "game_ended" );
waittillframeend;
level waittill( level.notifyTypes.sharedFunctionsInitialized ); level waittill( level.notifyTypes.sharedFunctionsInitialized );
level.eventBus.gamename = "T5"; level.eventBus.gamename = "T5";
level.eventTypes.gameEnd = "end_game";
scripts\_integration_base::RegisterLogger( ::Log2Console ); scripts\_integration_base::RegisterLogger( ::Log2Console );

View File

@ -9,11 +9,17 @@ Init()
Setup() Setup()
{ {
level endon( "game_ended" ); level endon( "game_ended" );
level endon( "end_game" );
waittillframeend; waittillframeend;
level waittill( level.notifyTypes.sharedFunctionsInitialized ); level waittill( level.notifyTypes.sharedFunctionsInitialized );
level.eventBus.gamename = "T6"; level.eventBus.gamename = "T6";
if ( sessionmodeiszombiesgame() )
{
level.eventTypes.gameEnd = "end_game";
}
scripts\_integration_base::RegisterLogger( ::Log2Console ); scripts\_integration_base::RegisterLogger( ::Log2Console );
level.overrideMethods[level.commonFunctions.getTotalShotsFired] = ::GetTotalShotsFired; level.overrideMethods[level.commonFunctions.getTotalShotsFired] = ::GetTotalShotsFired;