The decompiled versions of all \domino\ scripts found in Watch_Dogs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

290 lines
11 KiB

-- {\v/} Domino auto-generated LUA script file
--
-- Script document: domino/user/windycity/dlc_sidemissions/driving_escort/escort_sharedscripts/aimanager.domino.xml
-- User graph: Escort_Barricade_AI
--
--
-- DO NOT EDIT MANUALLY THIS FILE OR YOUR CHANGES WILL BE LOST!
-- Please modify the original Domino script instead. You have been warned.
-- *** SCRIPT INPUT REFLECTION ***
--[[
<InputReflection>
<DataIn Name="Gen1" Type="Nomad|entity{}" />
<DataIn Name="Gen2" Type="Nomad|entity{}" />
<DataIn Name="Gen3" Type="Nomad|entity{}" />
<DataIn Name="Gen4" Type="Nomad|entity{}" />
<DataIn Name="Gen5" Type="Nomad|entity{}" />
<DataIn Name="Gen6" Type="Nomad|entity{}" />
<DataIn Name="Gen7" Type="Nomad|entity{}" />
<DataIn Name="Gen8" Type="Nomad|entity{}" />
<DataIn Name="Gen9" Type="Nomad|entity{}" />
<DataIn Name="Gen10" Type="Nomad|entity{}" />
<DataIn Name="VIPcar" Type="Nomad|entity{}" />
</InputReflection>
]]--
-- *** END OF SCRIPT INPUT REFLECTION ***
export = {
};
function export:LuaDependencies()
return {
};
end;
function export:Create(cbox)
-- External box dependencies
cbox:RegisterBox("Domino/System/Lists/ListWriter.lua");
cbox:RegisterBox("Domino/System/NPCSquad_v2.lua");
cbox:RegisterBox("Domino/Library/common/ListFunctions.PawnRadiusCheck.debug.lua");
cbox:RegisterBox("Domino/System/SendAICommandBHVState.lua");
cbox:RegisterBox("Domino/Library/common/SideMissionSpawnAIAndMonitor.SpawnAIAndMonitor.debug.lua");
end;
function export:Init(cbox)
local l0;
self._name = "Escort_Barricade_AI";
self._elementPathId = "DocumentContainer|windycity\\dlc_sidemissions\\driving_escort\\escort_sharedscripts\\aimanager.domino.xml|@Escort_Barricade_AI";
self.Started = DummyFunction;
self.LocalPlayerPawn = nil;
self.Pwn1 = nil;
self.Pwn2 = nil;
self.Pwn3 = nil;
self.Pwn4 = nil;
self.Pwn5 = nil;
self.Pwn6 = nil;
self.Pwn7 = nil;
self.Pwn8 = nil;
self.Pwn9 = nil;
self.Pwn10 = nil;
self.Baricada = {
};
self.MeVip = {
};
self.box_SendAICommandBHVState_3 = cbox:CreateBox("Domino/System/SendAICommandBHVState.lua");
l0 = self.box_SendAICommandBHVState_3;
l0._graph = self;
l0._name = "box_SendAICommandBHVState_3";
l0._elementPathId = "DocumentContainer|windycity\\dlc_sidemissions\\driving_escort\\escort_sharedscripts\\aimanager.domino.xml|@Escort_Barricade_AI|31103248";
l0.Sent = self.f_box_SendAICommandBHVState_3_Sent;
l0.InProgress = DummyFunction;
l0.Succeeded = DummyFunction;
l0.Failed = DummyFunction;
l0.Aborted = DummyFunction;
l0.Error = DummyFunction;
self.box_SpawnAIAndMonitor_1 = cbox:CreateBox("Domino/Library/common/SideMissionSpawnAIAndMonitor.SpawnAIAndMonitor.debug.lua");
l0 = self.box_SpawnAIAndMonitor_1;
l0._graph = self;
l0._name = "box_SpawnAIAndMonitor_1";
l0._elementPathId = "DocumentContainer|windycity\\dlc_sidemissions\\driving_escort\\escort_sharedscripts\\aimanager.domino.xml|@Escort_Barricade_AI|701092972";
l0.Spawned = self.f_box_SpawnAIAndMonitor_1_Spawned;
l0._1Killed = self.f_box_SpawnAIAndMonitor_1__1Killed;
l0.AllDead = self.f_box_SpawnAIAndMonitor_1_AllDead;
self.box_PawnRadiusCheck_5 = cbox:CreateBox("Domino/Library/common/ListFunctions.PawnRadiusCheck.debug.lua");
l0 = self.box_PawnRadiusCheck_5;
l0._graph = self;
l0._name = "box_PawnRadiusCheck_5";
l0._elementPathId = "DocumentContainer|windycity\\dlc_sidemissions\\driving_escort\\escort_sharedscripts\\aimanager.domino.xml|@Escort_Barricade_AI|912872609";
l0.InsideRadius = self.f_box_PawnRadiusCheck_5_InsideRadius;
l0.OutsideRadius = DummyFunction;
l0.Disabled = self.f_box_PawnRadiusCheck_5_Disabled;
self.box_ListWriter_2 = cbox:CreateBox("Domino/System/Lists/ListWriter.lua");
l0 = self.box_ListWriter_2;
l0._graph = self;
l0._name = "box_ListWriter_2";
l0._elementPathId = "DocumentContainer|windycity\\dlc_sidemissions\\driving_escort\\escort_sharedscripts\\aimanager.domino.xml|@Escort_Barricade_AI|1257677294";
l0._DynamicAnchors = {
Data = 2,
};
l0.Added = self.f_box_ListWriter_2_Added;
l0.Removed = self.f_box_ListWriter_2_Removed;
l0.Out = self.f_box_ListWriter_2_Out;
self.box_NPCSquad_v2_4 = cbox:CreateBox("Domino/System/NPCSquad_v2.lua");
l0 = self.box_NPCSquad_v2_4;
l0._graph = self;
l0._name = "box_NPCSquad_v2_4";
l0._elementPathId = "DocumentContainer|windycity\\dlc_sidemissions\\driving_escort\\escort_sharedscripts\\aimanager.domino.xml|@Escort_Barricade_AI|1379692049";
l0.Started = self.f_box_NPCSquad_v2_4_Started;
l0.Stopped = DummyFunction;
l0.ConfigAdded = DummyFunction;
l0.ConfigRemoved = DummyFunction;
l0.NPCAdded = DummyFunction;
l0.NPCRemoved = DummyFunction;
l0.LKPGroupAdded = DummyFunction;
l0.ZoneAdded = DummyFunction;
l0.ZoneRemoved = DummyFunction;
l0.DefendPointAdded = DummyFunction;
l0.DefendPointRemoved = DummyFunction;
l0.AssaultPointAdded = DummyFunction;
l0.AssaultPointRemoved = DummyFunction;
l0.Out = DummyFunction;
end;
function export:ShutDown()
for k,v in pairs(self) do if type(v) == "table" and v.ShutDown ~= self.ShutDown and v ~= self._graph and v.ShutDown ~= nil then v:ShutDown() end end;
end;
function export:Start()
local l0;
l0 = self.box_SpawnAIAndMonitor_1;
l0.Generator01 = self.Gen1;
l0.Generator02 = self.Gen2;
l0.Generator03 = self.Gen3;
l0.Generator04 = self.Gen4;
l0.Generator05 = self.Gen5;
l0.Generator06 = self.Gen6;
l0.Generator07 = self.Gen7;
l0.Generator08 = self.Gen8;
l0.Generator09 = self.Gen9;
l0.Generator10 = self.Gen10;
CDominoManager_GetInstance():TraceConnection("DocumentContainer|windycity\\dlc_sidemissions\\driving_escort\\escort_sharedscripts\\aimanager.domino.xml|@Escort_Barricade_AI|1628270070", "1628270070", "Escort_Barricade_AI", "Start", "box_SpawnAIAndMonitor_1.Spawn", self, l0);
l0:Spawn();
end;
function export:f_box_SendAICommandBHVState_3_Sent()
local l0;
self = self._graph;
l0 = self.box_SendAICommandBHVState_3;
CDominoManager_GetInstance():TraceConnection("DocumentContainer|windycity\\dlc_sidemissions\\driving_escort\\escort_sharedscripts\\aimanager.domino.xml|@Escort_Barricade_AI|1675986185", "1675986185", "Escort_Barricade_AI", "box_SendAICommandBHVState_3.Sent", "Started", l0, self);
self:Started();
end;
function export:f_box_SpawnAIAndMonitor_1__1Killed()
local l0;
self = self._graph;
l0 = self.box_SpawnAIAndMonitor_1;
self.Pwn1 = l0.NPC_01;
self.Pwn2 = l0.NPC_02;
self.Pwn3 = l0.NPC_03;
self.Pwn4 = l0.NPC_04;
self.Pwn5 = l0.NPC_05;
self.Pwn6 = l0.NPC_06;
self.Pwn7 = l0.NPC_07;
self.Pwn8 = l0.NPC_08;
self.Pwn9 = l0.NPC_09;
self.Pwn10 = l0.NPC_10;
self.Baricada = l0.NPCInList;
end;
function export:f_box_SpawnAIAndMonitor_1_AllDead()
local l0;
self = self._graph;
l0 = self.box_SpawnAIAndMonitor_1;
self.Pwn1 = l0.NPC_01;
self.Pwn2 = l0.NPC_02;
self.Pwn3 = l0.NPC_03;
self.Pwn4 = l0.NPC_04;
self.Pwn5 = l0.NPC_05;
self.Pwn6 = l0.NPC_06;
self.Pwn7 = l0.NPC_07;
self.Pwn8 = l0.NPC_08;
self.Pwn9 = l0.NPC_09;
self.Pwn10 = l0.NPC_10;
self.Baricada = l0.NPCInList;
end;
function export:f_box_SpawnAIAndMonitor_1_Spawned()
local l0, l1;
self = self._graph;
l0 = self.box_SpawnAIAndMonitor_1;
self.Pwn1 = l0.NPC_01;
self.Pwn2 = l0.NPC_02;
self.Pwn3 = l0.NPC_03;
self.Pwn4 = l0.NPC_04;
self.Pwn5 = l0.NPC_05;
self.Pwn6 = l0.NPC_06;
self.Pwn7 = l0.NPC_07;
self.Pwn8 = l0.NPC_08;
self.Pwn9 = l0.NPC_09;
self.Pwn10 = l0.NPC_10;
self.Baricada = l0.NPCInList;
l0 = self.box_ListWriter_2;
l0.Input = self.MeVip;
l0.Data[0] = self.VIPcar;
l0.Data[1] = self.LocalPlayerPawn;
l0 = self.box_SpawnAIAndMonitor_1;
l1 = self.box_ListWriter_2;
CDominoManager_GetInstance():TraceConnection("DocumentContainer|windycity\\dlc_sidemissions\\driving_escort\\escort_sharedscripts\\aimanager.domino.xml|@Escort_Barricade_AI|1855093736", "1855093736", "Escort_Barricade_AI", "box_SpawnAIAndMonitor_1.Spawned", "box_ListWriter_2.Add", l0, l1);
l1:Add();
end;
function export:f_box_PawnRadiusCheck_5_Disabled()
local l0, l1;
self = self._graph;
l0 = self.box_NPCSquad_v2_4;
l0.SquadName = "SquadBaricada";
l0.Config = "NPCOverrideConfig.911853462";
l0.NPCList = self.Baricada;
l0.LKPGroup = "LKPBaricada";
l0.AssaultPoint = self.VIPcar;
l0 = self.box_PawnRadiusCheck_5;
l1 = self.box_NPCSquad_v2_4;
CDominoManager_GetInstance():TraceConnection("DocumentContainer|windycity\\dlc_sidemissions\\driving_escort\\escort_sharedscripts\\aimanager.domino.xml|@Escort_Barricade_AI|766589989", "766589989", "Escort_Barricade_AI", "box_PawnRadiusCheck_5.Disabled", "box_NPCSquad_v2_4.Start", l0, l1);
l1:Start();
end;
function export:f_box_PawnRadiusCheck_5_InsideRadius()
local l0;
self = self._graph;
self:OnEnter_box_PawnRadiusCheck_5();
l0 = self.box_PawnRadiusCheck_5;
CDominoManager_GetInstance():TraceConnection("DocumentContainer|windycity\\dlc_sidemissions\\driving_escort\\escort_sharedscripts\\aimanager.domino.xml|@Escort_Barricade_AI|1579663515", "1579663515", "Escort_Barricade_AI", "box_PawnRadiusCheck_5.InsideRadius", "box_PawnRadiusCheck_5.Disable", l0, l0);
l0:Disable();
end;
function export:f_box_ListWriter_2_Added()
local l0, l1;
self = self._graph;
l0 = self.box_ListWriter_2;
self.MeVip = l0.Target;
self:OnEnter_box_PawnRadiusCheck_5();
l1 = self.box_PawnRadiusCheck_5;
CDominoManager_GetInstance():TraceConnection("DocumentContainer|windycity\\dlc_sidemissions\\driving_escort\\escort_sharedscripts\\aimanager.domino.xml|@Escort_Barricade_AI|2123548850", "2123548850", "Escort_Barricade_AI", "box_ListWriter_2.Added", "box_PawnRadiusCheck_5.Continuous", l0, l1);
l1:Continuous();
end;
function export:f_box_ListWriter_2_Out()
local l0;
self = self._graph;
l0 = self.box_ListWriter_2;
self.MeVip = l0.Target;
end;
function export:f_box_ListWriter_2_Removed()
local l0;
self = self._graph;
l0 = self.box_ListWriter_2;
self.MeVip = l0.Target;
end;
function export:f_box_NPCSquad_v2_4_Started()
local l0, l1;
self = self._graph;
l0 = self.box_SendAICommandBHVState_3;
l0.AIentity = self.Pwn1;
l0.BHVState = "Combat";
l0.Target = self.VIPcar;
l0.ForceTarget = 1;
l0.UpdateLKP = 1;
l0 = self.box_NPCSquad_v2_4;
l1 = self.box_SendAICommandBHVState_3;
CDominoManager_GetInstance():TraceConnection("DocumentContainer|windycity\\dlc_sidemissions\\driving_escort\\escort_sharedscripts\\aimanager.domino.xml|@Escort_Barricade_AI|102868111", "102868111", "Escort_Barricade_AI", "box_NPCSquad_v2_4.Started", "box_SendAICommandBHVState_3.Send", l0, l1);
l1:Send();
end;
function export:OnEnter_box_PawnRadiusCheck_5()
local l0;
l0 = self.box_PawnRadiusCheck_5;
l0.PawnList = self.MeVip;
l0.Reference = self.Pwn1;
l0.Radius = 75;
end;
-- Empty out anchor definitions
function export:Started()
end;
_compilerVersion = 4;