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.
add
ns_send_clients_back_to_lobby_after_match
- Loading branch information
DBmaoha
committed
Aug 20, 2023
1 parent
9819a90
commit b6a9a4e
Showing
6 changed files
with
72 additions
and
0 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
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
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