Add a "ufo" performance entry for the AI Aircraft. This gives very agressive
accel/decel and climb/decend performance which is useful for some scripting scenarios.
This commit is contained in:
parent
cf325ce088
commit
674df0c4cd
2 changed files with 13 additions and 2 deletions
|
@ -58,7 +58,9 @@ const FGAIAircraft::PERF_STRUCT FGAIAircraft::settings[] = {
|
|||
// jet_fighter
|
||||
{7.0, 3.0, 4000.0, 2000.0, 150.0, 350.0, 500.0, 350.0, 150.0},
|
||||
// tanker
|
||||
{5.0, 2.0, 3000.0, 1500.0, 140.0, 300.0, 430.0, 300.0, 130.0}
|
||||
{5.0, 2.0, 3000.0, 1500.0, 140.0, 300.0, 430.0, 300.0, 130.0},
|
||||
// ufo (extreme accel/decel)
|
||||
{30.0, 30.0, 6000.0, 6000.0, 150.0, 300.0, 430.0, 300.0, 130.0}
|
||||
};
|
||||
|
||||
|
||||
|
@ -150,6 +152,8 @@ void FGAIAircraft::setPerformance(const std::string& acclass) {
|
|||
} else if (acclass == "tanker") {
|
||||
SetPerformance(&FGAIAircraft::settings[FGAIAircraft::JET_TRANSPORT]);
|
||||
SetTanker(true);
|
||||
} else if (acclass == "ufo") {
|
||||
SetPerformance(&FGAIAircraft::settings[FGAIAircraft::UFO]);
|
||||
} else {
|
||||
SetPerformance(&FGAIAircraft::settings[FGAIAircraft::JET_TRANSPORT]);
|
||||
}
|
||||
|
|
|
@ -47,7 +47,14 @@ private:
|
|||
} PERF_STRUCT;
|
||||
|
||||
public:
|
||||
enum aircraft_e {LIGHT=0, WW2_FIGHTER, JET_TRANSPORT, JET_FIGHTER, TANKER};
|
||||
enum aircraft_e {
|
||||
LIGHT = 0,
|
||||
WW2_FIGHTER,
|
||||
JET_TRANSPORT,
|
||||
JET_FIGHTER,
|
||||
TANKER,
|
||||
UFO
|
||||
};
|
||||
static const PERF_STRUCT settings[];
|
||||
|
||||
FGAIAircraft(FGAISchedule *ref=0);
|
||||
|
|
Loading…
Add table
Reference in a new issue