Warehouse v0.5.1

Final polish.
This commit is contained in:
funkyfranky
2018-09-18 16:18:40 +02:00
parent f5022a12f8
commit bab1d21cc0
5 changed files with 28 additions and 16 deletions

View File

@@ -1615,7 +1615,7 @@ function SPAWN:SpawnAtAirbase( SpawnAirbase, Takeoff, TakeoffAltitude, TerminalT
else
self:E(string.format("Group %s spawning at airbase %s on parking spot id %d", self.SpawnTemplatePrefix, SpawnAirbase:GetName(), parkingindex[UnitID]))
self:T(string.format("Group %s spawning at airbase %s on parking spot id %d", self.SpawnTemplatePrefix, SpawnAirbase:GetName(), parkingindex[UnitID]))
-- Get coordinates of parking spot.
SpawnTemplate.units[UnitID].x = parkingspots[UnitID].x

View File

@@ -191,16 +191,14 @@ end
--- Respawns the original @{Static}.
-- @param #SPAWNSTATIC self
-- @param DCS#country.id (Optional) The country ID of the static after respawning..
-- @return #SPAWNSTATIC
function SPAWNSTATIC:ReSpawn(countryid)
function SPAWNSTATIC:ReSpawn()
local StaticTemplate, CoalitionID, CategoryID, CountryID = _DATABASE:GetStaticGroupTemplate( self.SpawnTemplatePrefix )
if StaticTemplate then
--local CountryID = countryid or (self.CountryID or CountryID)
local StaticUnitTemplate = StaticTemplate.units[1]
StaticTemplate.route = nil
StaticTemplate.groupId = nil

View File

@@ -312,6 +312,7 @@ end
-- @param Utilities.Utils#SMOKECOLOR SmokeColor The smoke color.
function ZONE_BASE:SmokeZone( SmokeColor )
self:F2( SmokeColor )
end
--- Set the randomization probability of a zone to be selected.
@@ -330,6 +331,7 @@ end
-- @return #number A value between 0 and 1. 0 = 0% and 1 = 100% probability.
function ZONE_BASE:GetZoneProbability()
self:F2()
return self.ZoneProbability
end