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(+) 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 64245977..1c53167f 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