diff --git a/Moose Development/Moose/Core/Spawn.lua b/Moose Development/Moose/Core/Spawn.lua index 8bffbc2e0..7fedb5d50 100644 --- a/Moose Development/Moose/Core/Spawn.lua +++ b/Moose Development/Moose/Core/Spawn.lua @@ -3521,6 +3521,11 @@ function SPAWN:_Prepare( SpawnTemplatePrefix, SpawnIndex ) -- R2.2 max = 18 ctable = CALLSIGN.F15E end + if SpawnTemplate.units[1].type == "A6E" then + min = 4 + max = 18 + ctable = CALLSIGN.Intruder + end local callsignnr = math.random(min,max) local callsignname = "Enfield" for name, value in pairs(ctable) do diff --git a/Moose Development/Moose/Ops/CSAR.lua b/Moose Development/Moose/Ops/CSAR.lua index bd8d37552..77265f521 100644 --- a/Moose Development/Moose/Ops/CSAR.lua +++ b/Moose Development/Moose/Ops/CSAR.lua @@ -318,7 +318,7 @@ CSAR.AircraftType["CH-47Fbl1"] = 31 --- CSAR class version. -- @field #string version -CSAR.version="1.0.34" +CSAR.version="1.0.35" ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- ToDo list @@ -677,7 +677,7 @@ function CSAR:_CreateDownedPilotTrack(Group,Groupname,Side,OriginalUnit,Descript DownedPilot.alive = true DownedPilot.wetfeet = Wetfeet or false DownedPilot.BeaconName = BeaconName - + -- Add Pilot local PilotTable = self.downedPilots local counter = self.downedpilotcounter @@ -855,6 +855,10 @@ function CSAR:_AddCsar(_coalition , _country, _point, _typeName, _unitName, _pla else BeaconName = "Ghost-1-1"..math.random(1,10000) end + + if _playerName == nil or _playerName == "" then + _playerName = "AI MIA" + end if (_freq and _freq ~= 0) then --shagrat only add beacon if _freq is NOT 0 self:_AddBeaconToGroup(_spawnedGroup, _freq, BeaconName) @@ -2922,6 +2926,7 @@ function CSAR:onafterSave(From, Event, To, path, filename) if DownedPilot and DownedPilot.alive then -- get downed pilot data for saving local playerName = DownedPilot.player + if playerName == nil or playerName == "" then playerName = "AI MIA" end local group = DownedPilot.group local coalition = group:GetCoalition() local country = group:GetCountry()