From 85eb27362bd295a9e1560982a3369a688e13ded0 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Thu, 14 Jul 2022 23:38:24 +0100 Subject: call InitPersistentData on client connect to mirror vanilla behaviour and clear unwanted stuff (#424) --- Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Northstar.CustomServers') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut index 642459770..1c53167fd 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut @@ -123,6 +123,8 @@ void function CodeCallback_OnClientConnectionStarted( entity player ) // playerconnected void function CodeCallback_OnClientConnectionCompleted( entity player ) { + InitPersistentData( player ) + if ( IsLobby() ) { Lobby_OnClientConnectionCompleted( player ) -- cgit v1.2.3