mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
CSAR - try to avoid spawning under water
This commit is contained in:
@@ -556,6 +556,7 @@ function CSAR:_SpawnPilotInField(country,point,frequency)
|
|||||||
for i=1,10 do
|
for i=1,10 do
|
||||||
math.random(i,10000)
|
math.random(i,10000)
|
||||||
end
|
end
|
||||||
|
if point:IsSurfaceTypeWater() then point.y = 0 end
|
||||||
local template = self.template
|
local template = self.template
|
||||||
local alias = string.format("Pilot %.2fkHz-%d", freq, math.random(1,99))
|
local alias = string.format("Pilot %.2fkHz-%d", freq, math.random(1,99))
|
||||||
local coalition = self.coalition
|
local coalition = self.coalition
|
||||||
@@ -1127,7 +1128,6 @@ end
|
|||||||
function CSAR:_IsLoadingDoorOpen( unit_name )
|
function CSAR:_IsLoadingDoorOpen( unit_name )
|
||||||
self:T(self.lid .. " _IsLoadingDoorOpen")
|
self:T(self.lid .. " _IsLoadingDoorOpen")
|
||||||
return UTILS.IsLoadingDoorOpen(unit_name)
|
return UTILS.IsLoadingDoorOpen(unit_name)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--- (Internal) Function to check if heli is close to group.
|
--- (Internal) Function to check if heli is close to group.
|
||||||
|
|||||||
Reference in New Issue
Block a user