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.
 

447 lines
10 KiB

-- {\v/} Domino auto-generated LUA script file
--
-- Script document: domino/library/common/vehiclemisc.domino.xml
-- User graph: TooFarAwayOnFootAIListManager
--
--
-- 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="Input_AI" Type="Nomad|entity{}" />
<DataIn Name="Input_PlayerVehicle" Type="Nomad|entity{}" />
<DataIn Name="Input_OnFootNPC_List" Type="Core|list" />
</InputReflection>
]]--
-- *** END OF SCRIPT INPUT REFLECTION ***
export = {
};
function export:LuaDependencies()
return {
};
end;
function export:Create(cbox)
-- External box dependencies
cbox:RegisterBox("Domino/System/AIGeneratorController.lua");
cbox:RegisterBox("Domino/System/OnceOnly_v2.lua");
cbox:RegisterBox("Domino/System/ProximityMonitor.lua");
cbox:RegisterBox("Domino/System/SetEntity.lua");
cbox:RegisterBox("Domino/System/Lists/SetList.lua");
cbox:RegisterBox("Domino/System/SimpleNode.lua");
cbox:RegisterBox("Domino/System/TestIfNil.lua");
cbox:RegisterBox("Domino/System/Timer_v2.lua");
cbox:RegisterBox("Domino/System/VehicleSeatingMonitor.lua");
end;
function export:Init(cbox)
local l0;
self.UpdatedList_Added = DummyFunction;
self.UpdatedList_Removed = DummyFunction;
self.Out = DummyFunction;
self.Player_Vehicle = nil;
self.EmptyVehicle_List = {
};
self.AI_OnFoot = nil;
self.OnFoot_AI = nil;
self[25] = cbox:CreateBox("Domino/System/AIGeneratorController.lua");
l0 = self[25];
l0._graph = self;
l0.Spawned = DummyFunction;
l0.UnSpawned = self.f_25_UnSpawned;
self[5] = cbox:CreateBox("Domino/System/OnceOnly_v2.lua");
l0 = self[5];
l0._graph = self;
l0._DynamicAnchors = {
In = 1,
Out = 1,
};
l0.Out[0] = self.f_5_Out_0;
l0.ResetOut = self.f_5_ResetOut;
self[1] = cbox:CreateBox("Domino/System/Timer_v2.lua");
l0 = self[1];
l0._graph = self;
l0.Out = DummyFunction;
l0.Started = self.f_1_Started;
l0.Stopped = DummyFunction;
l0.Paused = DummyFunction;
l0.Resumed = DummyFunction;
l0.TimeElapsed = self.f_1_TimeElapsed;
l0.LoopingEnded = DummyFunction;
l0.GotTime = DummyFunction;
self[11] = cbox:CreateBox("Domino/System/OnceOnly_v2.lua");
l0 = self[11];
l0._graph = self;
l0._DynamicAnchors = {
In = 1,
Out = 1,
};
l0.Out[0] = self.f_11_Out_0;
l0.ResetOut = DummyFunction;
self[6] = cbox:CreateBox("Domino/System/ProximityMonitor.lua");
l0 = self[6];
l0._graph = self;
l0.Enabled = self.f_6_Enabled;
l0.Disabled = self.f_6_Disabled;
l0.EnterRadius = self.f_6_EnterRadius;
l0.ExitRadius = self.f_6_ExitRadius;
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:PlayerEnteredVehicle()
local l0;
l0 = Boxes[PathID("Domino/System/TestIfNil.lua")];
l0.Integer = nil;
l0.Float = nil;
l0.Boolean = nil;
l0.String = nil;
l0.Entity = self.Input_AI;
l0.Animation = nil;
l0.Player = nil;
l0.Oasis = nil;
l0.List = nil;
l0.Sound = nil;
l0.DBObject = nil;
l0._graph = self;
l0.Is_nil = self.f_21_Is_nil;
l0.Is_not_nil = self.f_21_Is_not_nil;
l0:In();
end;
function export:PlayerExitedVehicle()
local l0;
l0 = self[1];
l0:Stop();
end;
function export:f_3_Out()
local l0;
self = self._graph;
l0 = self[5];
l0:Reset();
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0._graph = self;
l0.Out = self.f_10_Out;
l0:In();
end;
function export:f_25_UnSpawned()
local l0;
self = self._graph;
self:en_6();
l0 = self[6];
l0:Disable();
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0._graph = self;
l0.Out = self.f_9_Out;
l0:In();
end;
function export:f_14_Out()
local l0;
self = self._graph;
l0 = Boxes[PathID("Domino/System/SetEntity.lua")];
self.AI_OnFoot = l0.Target;
l0 = Boxes[PathID("Domino/System/SetEntity.lua")];
l0.Entity = self.Input_PlayerVehicle;
l0._graph = self;
l0.Out = self.f_15_Out;
l0:FromEntity();
end;
function export:f_5_Out_0()
local l0;
self = self._graph;
self:en_6();
l0 = self[6];
l0:Enable();
end;
function export:f_5_ResetOut()
local l0;
self = self._graph;
self:en_6();
l0 = self[6];
l0:Disable();
end;
function export:f_24_Out()
local l0;
self = self._graph;
l0 = self[1];
l0:Stop();
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0._graph = self;
l0.Out = self.f_17_Out;
l0:In();
end;
function export:f_13_Out()
local l0;
self = self._graph;
l0 = self[11];
l0:In(0);
end;
function export:f_21_Is_nil()
local l0;
self = self._graph;
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0._graph = self;
l0.Out = self.f_20_Out;
l0:In();
end;
function export:f_21_Is_not_nil()
local l0;
self = self._graph;
l0 = Boxes[PathID("Domino/System/TestIfNil.lua")];
l0.Integer = nil;
l0.Float = nil;
l0.Boolean = nil;
l0.String = nil;
l0.Entity = self.Input_PlayerVehicle;
l0.Animation = nil;
l0.Player = nil;
l0.Oasis = nil;
l0.List = nil;
l0.Sound = nil;
l0.DBObject = nil;
l0._graph = self;
l0.Is_nil = self.f_22_Is_nil;
l0.Is_not_nil = self.f_22_Is_not_nil;
l0:In();
end;
function export:f_1_Started()
local l0;
self = self._graph;
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0._graph = self;
l0.Out = self.f_13_Out;
l0:In();
end;
function export:f_1_TimeElapsed()
local l0;
self = self._graph;
l0 = Boxes[PathID("Domino/System/VehicleSeatingMonitor.lua")];
l0.Pawn = self.AI_OnFoot;
l0.Vehicle = nil;
l0._graph = self;
l0.EntityIsInVehicle = self.f_2_EntityIsInVehicle;
l0.EntityIsNotInVehicle = self.f_2_EntityIsNotInVehicle;
l0.VehicleIsEmpty = DummyFunction;
l0.VehicleIsNotEmpty = DummyFunction;
l0:IsInVehicle();
end;
function export:f_8_Out()
local l0;
self = self._graph;
l0 = self[25];
l0.UnSpawnedEntity = self.AI_OnFoot;
l0:UnSpawn();
end;
function export:f_22_Is_nil()
local l0;
self = self._graph;
self:en_19();
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0:In();
end;
function export:f_22_Is_not_nil()
local l0;
self = self._graph;
l0 = Boxes[PathID("Domino/System/SetEntity.lua")];
l0.Entity = self.Input_AI;
l0._graph = self;
l0.Out = self.f_14_Out;
l0:FromEntity();
end;
function export:f_10_Out()
local l0;
self = self._graph;
l0 = self[1];
l0:Stop();
end;
function export:f_2_EntityIsInVehicle()
local l0;
self = self._graph;
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0._graph = self;
l0.Out = self.f_3_Out;
l0:In();
end;
function export:f_2_EntityIsNotInVehicle()
local l0;
self = self._graph;
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0._graph = self;
l0.Out = self.f_4_Out;
l0:In();
end;
function export:f_4_Out()
local l0;
self = self._graph;
l0 = self[5];
l0:In(0);
l0 = self[1];
l0:Start();
end;
function export:f_11_Out_0()
local l0;
self = self._graph;
self:en_12();
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0:In();
end;
function export:f_6_Disabled()
local l0;
self = self._graph;
self:en_7();
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0:In();
end;
function export:f_6_Enabled()
local l0;
self = self._graph;
self:en_12();
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0:In();
end;
function export:f_6_EnterRadius()
local l0;
self = self._graph;
self:en_7();
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0:In();
end;
function export:f_6_ExitRadius()
local l0;
self = self._graph;
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0._graph = self;
l0.Out = self.f_8_Out;
l0:In();
end;
function export:f_15_Out()
local l0;
self = self._graph;
l0 = Boxes[PathID("Domino/System/SetEntity.lua")];
self.Player_Vehicle = l0.Target;
l0 = Boxes[PathID("Domino/System/Lists/SetList.lua")];
l0.List = self.Input_OnFootNPC_List;
l0._graph = self;
l0.Out = self.f_16_Out;
l0:FromList();
end;
function export:f_19_Out()
local l0;
self = self._graph;
self:en_12();
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0:In();
end;
function export:f_16_Out()
local l0;
self = self._graph;
l0 = Boxes[PathID("Domino/System/Lists/SetList.lua")];
self.EmptyVehicle_List = l0.Target;
l0 = self[1];
l0:Start();
end;
function export:f_12_Out()
self = self._graph;
self:Out();
end;
function export:f_17_Out()
local l0;
self = self._graph;
self:en_6();
l0 = self[6];
l0:Disable();
end;
function export:f_9_Out()
local l0;
self = self._graph;
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0._graph = self;
l0.Out = self.f_24_Out;
l0:In();
end;
function export:f_20_Out()
local l0;
self = self._graph;
self:en_19();
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0:In();
end;
function export:en_7()
local l0;
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0._graph = self;
l0.Out = DummyFunction;
end;
function export:en_6()
local l0;
l0 = self[6];
l0.Entity1 = self.AI_OnFoot;
l0.Entity2 = self.Player_Vehicle;
l0.Radius = 80;
end;
function export:en_19()
local l0;
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0._graph = self;
l0.Out = self.f_19_Out;
end;
function export:en_12()
local l0;
l0 = Boxes[PathID("Domino/System/SimpleNode.lua")];
l0._graph = self;
l0.Out = self.f_12_Out;
end;
-- Empty out anchor definitions
function export:UpdatedList_Added()
end;
function export:UpdatedList_Removed()
end;
function export:Out()
end;
_compilerVersion = 4;