aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client/mod
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.Client/mod')
-rw-r--r--Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut22
1 files changed, 15 insertions, 7 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut b/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut
index 7c81149c..25097c6f 100644
--- a/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut
+++ b/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut
@@ -278,12 +278,6 @@ void function UpdatePlayButton( var button )
message = "#CONTACTING_RESPAWN_SERVERS"
file.mpButtonActivateFunc = null
}
-
- bool hasNonVanillaMods = false
- if ( hasNonVanillaMods )
- {
- // todo: make this disable non-vanilla mods
- }
else
file.mpButtonActivateFunc = LaunchMP
@@ -422,7 +416,21 @@ void function UpdatePlayButton( var button )
}
else
{
- file.mpButtonActivateFunc = LaunchMP
+ // restrict non-vanilla players from accessing official servers
+ bool hasNonVanillaMods = false
+ foreach ( string modName in NSGetModNames() )
+ {
+ if ( NSIsModEnabled( modName ) && NSIsModRequiredOnClient( modName ) )
+ {
+ hasNonVanillaMods = true
+ break
+ }
+ }
+
+ if ( hasNonVanillaMods )
+ file.mpButtonActivateFunc = null
+ else
+ file.mpButtonActivateFunc = LaunchMP
}
isLocked = file.mpButtonActivateFunc == null ? true : false