mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
xxx
This commit is contained in:
parent
1f18b6e2a9
commit
b3f7991269
@ -1232,7 +1232,7 @@ CTLD.UnitTypeCapabilities = {
|
|||||||
|
|
||||||
--- CTLD class version.
|
--- CTLD class version.
|
||||||
-- @field #string version
|
-- @field #string version
|
||||||
CTLD.version="1.0.46"
|
CTLD.version="1.0.47"
|
||||||
|
|
||||||
--- Instantiate a new CTLD.
|
--- Instantiate a new CTLD.
|
||||||
-- @param #CTLD self
|
-- @param #CTLD self
|
||||||
@ -3030,7 +3030,8 @@ function CTLD:_GetUnitPositions(Coordinate,Radius,Heading,Template)
|
|||||||
local template = _DATABASE:GetGroupTemplate(Template)
|
local template = _DATABASE:GetGroupTemplate(Template)
|
||||||
--UTILS.PrintTableToLog(template)
|
--UTILS.PrintTableToLog(template)
|
||||||
local numbertroops = #template.units
|
local numbertroops = #template.units
|
||||||
local newcenter = Coordinate:Translate(Radius,((Heading+270)%360))
|
local slightshift = math.abs(math.random(0,200)/100)
|
||||||
|
local newcenter = Coordinate:Translate(Radius+slightshift,((Heading+270)%360))
|
||||||
for i=1,360,math.floor(360/numbertroops) do
|
for i=1,360,math.floor(360/numbertroops) do
|
||||||
local phead = ((Heading+270+i)%360)
|
local phead = ((Heading+270+i)%360)
|
||||||
local post = newcenter:Translate(Radius,phead)
|
local post = newcenter:Translate(Radius,phead)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user