mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-21 21:17:30 +00:00
SPAWNSTATIC
- Added new way to spawn FARPs - Added FARP callsign enum.
This commit is contained in:
@@ -457,8 +457,23 @@ function SPAWNSTATIC:_SpawnStatic(Template, CountryID)
|
|||||||
local Static=nil
|
local Static=nil
|
||||||
|
|
||||||
if self.InitFARP then
|
if self.InitFARP then
|
||||||
env.info("Spawning FARP")
|
|
||||||
Static=coalition.addGroup(CountryID, -1, Template)
|
local TemplateGroup={}
|
||||||
|
TemplateGroup.units={}
|
||||||
|
TemplateGroup.units[1]=Template
|
||||||
|
|
||||||
|
TemplateGroup.visible=true
|
||||||
|
TemplateGroup.hidden=false
|
||||||
|
TemplateGroup.x=Template.x
|
||||||
|
TemplateGroup.y=Template.y
|
||||||
|
TemplateGroup.name=Template.name
|
||||||
|
|
||||||
|
self:T("Spawning FARP")
|
||||||
|
self:T({Template=Template})
|
||||||
|
self:T({TemplateGroup=TemplateGroup})
|
||||||
|
|
||||||
|
-- ED's dirty way to spawn FARPS.
|
||||||
|
Static=coalition.addGroup(CountryID, -1, TemplateGroup)
|
||||||
else
|
else
|
||||||
Static=coalition.addStaticObject(CountryID, Template)
|
Static=coalition.addStaticObject(CountryID, Template)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -115,6 +115,19 @@ CALLSIGN={
|
|||||||
Mantis=18,
|
Mantis=18,
|
||||||
Badger=19,
|
Badger=19,
|
||||||
},
|
},
|
||||||
|
-- FARP
|
||||||
|
FARP={
|
||||||
|
London=1,
|
||||||
|
Dallas=2,
|
||||||
|
Paris=3,
|
||||||
|
Moscow=4,
|
||||||
|
Berlin=5,
|
||||||
|
Rome=6,
|
||||||
|
Madrid=7,
|
||||||
|
Warsaw=8,
|
||||||
|
Dublin=9,
|
||||||
|
Perth=10,
|
||||||
|
},
|
||||||
} --#CALLSIGN
|
} --#CALLSIGN
|
||||||
|
|
||||||
--- Utilities static class.
|
--- Utilities static class.
|
||||||
|
|||||||
Reference in New Issue
Block a user