bugfix with uncontrolled

This commit is contained in:
FlightControl
2017-02-04 19:32:54 +01:00
parent 7bb66c79aa
commit a669ba5e5b
33 changed files with 7742 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
env.info( 'Moose Generation Timestamp: 20170204_1514' )
env.info( 'Moose Generation Timestamp: 20170204_1931' )
local base = _G
Include = {}
@@ -18678,6 +18678,7 @@ function SPAWN:New( SpawnTemplatePrefix )
self.SpawnRandomize = false -- Sets the randomization flag of new Spawned units to false.
self.SpawnVisible = false -- Flag that indicates if all the Groups of the SpawnGroup need to be visible when Spawned.
self.AIOnOff = true -- The AI is on by default when spawning a group.
self.SpawnUnControlled = false
self.SpawnGroups = {} -- Array containing the descriptions of each Group to be Spawned.
else
@@ -18716,6 +18717,7 @@ function SPAWN:NewWithAlias( SpawnTemplatePrefix, SpawnAliasPrefix )
self.SpawnRandomize = false -- Sets the randomization flag of new Spawned units to false.
self.SpawnVisible = false -- Flag that indicates if all the Groups of the SpawnGroup need to be visible when Spawned.
self.AIOnOff = true -- The AI is on by default when spawning a group.
self.SpawnUnControlled = false
self.SpawnGroups = {} -- Array containing the descriptions of each Group to be Spawned.
else
@@ -19114,7 +19116,9 @@ function SPAWN:SpawnWithIndex( SpawnIndex )
end
if SpawnTemplate.CategoryID == Group.Category.HELICOPTER or SpawnTemplate.CategoryID == Group.Category.AIRPLANE then
SpawnTemplate.uncontrolled = self.SpawnUnControlled
if SpawnTemplate.route.points[1].type == "TakeOffParking" then
SpawnTemplate.uncontrolled = self.SpawnUnControlled
end
end
end