Initial commit

This commit is contained in:
2026-02-28 14:00:45 -06:00
commit 16d3170787
1134 changed files with 589134 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
-- $Id: //depot/Projects/StarWars_Steam/FOC/Run/Data/Scripts/AI/SpaceMode/MoveToLocation.lua#1 $
--/////////////////////////////////////////////////////////////////////////////////////////////////
--
-- (C) Petroglyph Games, Inc.
--
--
-- ***** ** * *
-- * ** * * *
-- * * * * *
-- * * * * * * * *
-- * * *** ****** * ** **** *** * * * ***** * ***
-- * ** * * * ** * ** ** * * * * ** ** ** *
-- *** ***** * * * * * * * * ** * * * *
-- * * * * * * * * * * * * * * *
-- * * * * * * * * * * ** * * * *
-- * ** * * ** * ** * * ** * * * *
-- ** **** ** * **** ***** * ** *** * *
-- * * *
-- * * *
-- * * *
-- * * * *
-- **** * *
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
--/////////////////////////////////////////////////////////////////////////////////////////////////
--
-- $File: //depot/Projects/StarWars_Steam/FOC/Run/Data/Scripts/AI/SpaceMode/MoveToLocation.lua $
--
-- Original Author: Steve Copeland
--
-- $Author: Brian_Hayes $
--
-- $Change: 637819 $
--
-- $DateTime: 2017/03/22 10:16:16 $
--
-- $Revision: #1 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("pgevents")
function Definitions()
Category = "Return_To_Base | Patrol_Structure_Space"
IgnoreTarget = true
TaskForce =
{
{
"MainForce"
,"Fighter | Corvette | Frigate | Capital = 1, 5"
}
}
-- Needed for fighters to return to base, because they're frequently given anti-idle orders to attack nearest
AllowEngagedUnits = true
end
function MainForce_Thread()
BlockOnCommand(MainForce.Produce_Force())
-- Move the target to the desired location, with low tolerance threat avoidance.
Try_Ability(MainForce, "STEALTH")
BlockOnCommand(MainForce.Move_To(AITarget, 10))
MainForce.Guard_Target(AITarget)
MainForce.Set_Plan_Result(true)
Sleep(5)
end