aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/scripts/vscripts/mp/spawn.nut
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.CustomServers/scripts/vscripts/mp/spawn.nut')
-rw-r--r--Northstar.CustomServers/scripts/vscripts/mp/spawn.nut11
1 files changed, 11 insertions, 0 deletions
diff --git a/Northstar.CustomServers/scripts/vscripts/mp/spawn.nut b/Northstar.CustomServers/scripts/vscripts/mp/spawn.nut
index b7a50453..26e4c713 100644
--- a/Northstar.CustomServers/scripts/vscripts/mp/spawn.nut
+++ b/Northstar.CustomServers/scripts/vscripts/mp/spawn.nut
@@ -7,6 +7,7 @@ global function SetSpawnsUseFrontline
global function SetRespawnsEnabled
global function RespawnsEnabled
global function SetSpawnpointGamemodeOverride
+global function GetSpawnpointGamemodeOverride
global function CreateNoSpawnArea
global function DeleteNoSpawnArea
@@ -121,6 +122,16 @@ void function SetSpawnpointGamemodeOverride( string gamemode )
file.spawnpointGamemodeOverride = gamemode
}
+string function GetSpawnpointGamemodeOverride()
+{
+ if ( file.spawnpointGamemodeOverride != "" )
+ return file.spawnpointGamemodeOverride
+ else
+ return GAMETYPE
+
+ unreachable
+}
+
void function SetSpawnsUseFrontline( bool useFrontline )
{
file.frontlineBased = useFrontline