forked from R2Northstar/NorthstarMods
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from R2NorthstarCN/update-to-v1.15.0
Update to v1.15.0
- Loading branch information
Showing
9 changed files
with
93 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
Northstar.Custom/mod/scripts/vscripts/sh_northstar_matchmaker.gnut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
global function Sh_Northstar_MatchMaker_Init | ||
|
||
#if CLIENT | ||
global function ServerCallback_ClientBackToLobby | ||
#endif | ||
|
||
void function Sh_Northstar_MatchMaker_Init() | ||
{ | ||
AddCallback_OnRegisteringCustomNetworkVars( RegisterNorthstarMatchMakerNetworkFunctions ) | ||
} | ||
|
||
void function RegisterNorthstarMatchMakerNetworkFunctions() | ||
{ | ||
Remote_RegisterFunction( "ServerCallback_ClientBackToLobby" ) | ||
} | ||
|
||
#if CLIENT | ||
void function ServerCallback_ClientBackToLobby() | ||
{ | ||
entity player = GetLocalClientPlayer() | ||
if ( IsValid( player ) ) | ||
{ | ||
player.ClientCommand( "ns_start_reauth_and_leave_to_lobby" ) | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
Northstar.CustomServers/mod/scripts/vscripts/_northstar_gamestate_update.gnut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
global function Northstar_GameStateUpdate_Init | ||
|
||
void function Northstar_GameStateUpdate_Init() | ||
{ | ||
RegisterServerVarChangeCallback( "gameState", OnGameStateChanged ) | ||
} | ||
|
||
void function OnGameStateChanged() | ||
{ | ||
NSUpdateSQGameState( GetGameState() ) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters