aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/scripts/vscripts/_misc.gnut
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.CustomServers/scripts/vscripts/_misc.gnut')
-rw-r--r--Northstar.CustomServers/scripts/vscripts/_misc.gnut16
1 files changed, 1 insertions, 15 deletions
diff --git a/Northstar.CustomServers/scripts/vscripts/_misc.gnut b/Northstar.CustomServers/scripts/vscripts/_misc.gnut
index 4384f8df..ef7e629f 100644
--- a/Northstar.CustomServers/scripts/vscripts/_misc.gnut
+++ b/Northstar.CustomServers/scripts/vscripts/_misc.gnut
@@ -12,21 +12,7 @@ void function Spotting_Init()
void function FW_Border_GlobalInit()
{
- AddCallback_EntitiesDidLoad( FW_Border_EntitiesDidLoad )
-}
-
-void function FW_Border_EntitiesDidLoad()
-{
- if ( GetConVarString( "mp_gamemode" ) != "fw" )
- {
- // remove fw borders if we're not playing fw
- array<entity> brushes = GetEntArrayByClass_Expensive( "func_brush" )
- foreach ( entity brush in brushes )
- if ( GetEditorClass( brush ) == "func_brush_fw_territory_border" && GameModeRemove( brush ) )
- brush.Destroy()
-
- return
- }
+ AddSpawnCallbackEditorClass( "func_brush", "func_brush_fw_territory_border", void function( entity e ) { GameModeRemove( e ) } )
}
bool function IsVDUTitan(entity titan)