aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/scripts/vscripts/mp/levels/mp_grave.nut
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-06-29 23:52:45 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-06-29 23:52:45 +0100
commit53194543e43f8a645ba83ddb464028ba0c3b9d70 (patch)
treebee4f045e4e0dba4ca07fef04e2600b2c897c3c1 /Northstar.CustomServers/scripts/vscripts/mp/levels/mp_grave.nut
parent31c8a052e8f3cdccedb7f6f8d2bd11678189001a (diff)
downloadNorthstarMods-53194543e43f8a645ba83ddb464028ba0c3b9d70.tar.gz
NorthstarMods-53194543e43f8a645ba83ddb464028ba0c3b9d70.zip
fix lts spawn bugs and some crashes
Diffstat (limited to 'Northstar.CustomServers/scripts/vscripts/mp/levels/mp_grave.nut')
-rw-r--r--Northstar.CustomServers/scripts/vscripts/mp/levels/mp_grave.nut20
1 files changed, 19 insertions, 1 deletions
diff --git a/Northstar.CustomServers/scripts/vscripts/mp/levels/mp_grave.nut b/Northstar.CustomServers/scripts/vscripts/mp/levels/mp_grave.nut
index 37b891699..f4b48f6d4 100644
--- a/Northstar.CustomServers/scripts/vscripts/mp/levels/mp_grave.nut
+++ b/Northstar.CustomServers/scripts/vscripts/mp/levels/mp_grave.nut
@@ -1 +1,19 @@
-//fuck \ No newline at end of file
+global function CodeCallback_MapInit
+
+void function CodeCallback_MapInit()
+{
+ // there are some really busted titan startspawns that are on the fucking other side of the map from where they should be, so we remove them
+ AddSpawnCallback( "info_spawnpoint_titan_start", TrimBadTitanStartSpawns )
+}
+
+void function TrimBadTitanStartSpawns( entity spawn )
+{
+ vector comparisonOrigin
+ if ( spawn.GetTeam() == TEAM_IMC )
+ comparisonOrigin = < -2144, -4944, 1999.7 >
+ else
+ comparisonOrigin = < 11026.8, -5163.18, 1885.64 >
+
+ if ( Distance2D( spawn.GetOrigin(), comparisonOrigin ) >= 2000.0 )
+ spawn.Destroy()
+} \ No newline at end of file