diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-07-17 23:46:52 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-07-17 23:46:52 +0100 |
commit | 27bd240871b7c0f2f49fef137718b2e3c208e3b4 (patch) | |
tree | a46f401fa389edbb42a32fe8674cbde3a28e7632 /Northstar.CustomServers/scripts/vscripts/_misc.gnut | |
parent | 1c1d36fad84687a93a629525145c557f78cbf673 (diff) | |
download | NorthstarMods-27bd240871b7c0f2f49fef137718b2e3c208e3b4.tar.gz NorthstarMods-27bd240871b7c0f2f49fef137718b2e3c208e3b4.zip |
ctf switchsides spawn fix (untested)
Diffstat (limited to 'Northstar.CustomServers/scripts/vscripts/_misc.gnut')
-rw-r--r-- | Northstar.CustomServers/scripts/vscripts/_misc.gnut | 16 |
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) |