Ambreville
Deity
Is there any way to make air unit recon missions interceptable?
There's more then meets the eye here. You probably also want a way to make recon units interceptable during wartime only.
A good thing would be to give diplomatic penalty points for doing recon missions on empires which you don't have open borders with.![]()
if (interceptTest(pPlot))
{
return true;
}
The thing about this is that I can make recon-specific aircraft that would have a better chance of avoiding interception (??) On the other hand, they wouldn't be able to take on most other air missions.
Well, are you asking me if you can make recon-specific aircraft that have a high evasion chance and can't perform any other air mission? Because the answer to that is yes. This can be done in the XML. If you're asking me if there's a way to make a recon-specific unit that has a high evasion chance when doing recon missions and can perform other air missions but with a lower evasion chance, the answer is no. However that too could be modded to be allowed.
EDIT: Actually, there would have to be some SDK modifications to make the computer disregard the combat value of the unit to allow it to defend itself when intercepted but not allow for airstrikes. Any air unit with a strength value can airstrike.
You'd need a program that can compile the SDK files. I recommend using this: http://forums.civfanatics.com/showthread.php?t=166933
And the file you're looking for is the CvUnit.cpp file.
* In light of how such missions sometimes went (e.g., Francis Gary Powers' mission,) I would continue to allow those recon aircraft to be intercepted...although they should get a very high evasion percent chance. Although I would give them a strength value of 0.
The only way I'd implement this is if only recon aircraft could perform recon missions. I'd strip the recon mission from all other combat aircraft. This should reflect what you described.
I'd give the U-2 a very big range...and, if possible, give it a +1 to sight (akin to sentry).
By "visibility", I meant the area over which the unit can remove Fog of War when performing the recon mission. You are quite right -- even enabling Sentry for the air units doesn't work. Do you know where this info is located? Will it require SDK?
There's a random chance of evasion based on the probability... if evasion fails, it looks for the best interceptor. If one is found, then there is a chance for interception based on the unit's current interception chance. which... now that I look at it, if the fighter is set to 100% interception chance, then the only time the intercept promotion would be useful is when the unit is damaged.