more game interface gsc tweaks
This commit is contained in:
parent
7323c6e3d7
commit
bc34211e43
@ -71,7 +71,7 @@ Setup()
|
|||||||
_SetDvarIfUninitialized( level.commonKeys.enabled, 1 );
|
_SetDvarIfUninitialized( level.commonKeys.enabled, 1 );
|
||||||
_SetDvarIfUninitialized( "sv_iw4madmin_integration_debug", 0 );
|
_SetDvarIfUninitialized( "sv_iw4madmin_integration_debug", 0 );
|
||||||
|
|
||||||
if ( GetDvarInt( level.commonKeys.enabled) != 1 )
|
if ( GetDvarInt( level.commonKeys.enabled ) != 1 )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ Setup()
|
|||||||
level endon( "game_ended" );
|
level endon( "game_ended" );
|
||||||
waittillframeend;
|
waittillframeend;
|
||||||
|
|
||||||
level waittill( level.notifyTypes.sharedFunctionsInitialized );
|
level waittill( level.notifyTypes.sharedFunctionsInitialized );
|
||||||
level.eventBus.gamename = "IW4";
|
level.eventBus.gamename = "IW4";
|
||||||
|
|
||||||
scripts\_integration_base::RegisterLogger( ::Log2Console );
|
scripts\_integration_base::RegisterLogger( ::Log2Console );
|
||||||
|
@ -230,7 +230,7 @@ OnPlayerJoinedTeam()
|
|||||||
if ( newTeam != level.commonKeys.team1 && newTeam != level.commonKeys.team2 )
|
if ( newTeam != level.commonKeys.team1 && newTeam != level.commonKeys.team2 )
|
||||||
{
|
{
|
||||||
OnTeamSizeChanged();
|
OnTeamSizeChanged();
|
||||||
scripts\_integration_base::LogDebug( "not force balancing " + self.name + " because they switched to spec" );
|
scripts\_integration_base::LogDebug( "not force balancing " + self.name + " because they switched to spec" );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 );
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user