From 0a77531cd9bb8053aef21591810cfae456e6dab9 Mon Sep 17 00:00:00 2001 From: Robert MacGregor Date: Fri, 26 Jun 2015 13:31:55 -0400 Subject: [PATCH] Began server auto-hook --- scripts/DXAI_Main.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/DXAI_Main.cs b/scripts/DXAI_Main.cs index ab3a0c7..0f3d96a 100644 --- a/scripts/DXAI_Main.cs +++ b/scripts/DXAI_Main.cs @@ -297,6 +297,15 @@ package DXAI_Hooks } } + function CreateServer(%mission, %missionType) + { + // Perform the default exec's + parent::CreateServer(%mission, %missionType); + + // Ensure that the DXAI is active. + $DXAI::System::InvalidatedEnvironment = true; + } + // Make this do nothing so the bots don't ever get any objectives by default function DefaultGame::AIChooseGameObjective(%game, %client) { return 11595; }