Commit 6a3c01a
authored
[Customized] Allow the aircraft to enter area guard mission and not crash immediately without any airport (#1844)
- When a `guard` command (`[G]` by default) or a `area guard` command
(`[Ctrl]+[Alt]`) is issued, the aircraft will search for targets around
the position (for `guard` is the current location, for `area guard` is
the target position) and return immediately when ammos are depleted.
- If the target is not found, or if there is still ammo when the target
is destroyed, it will continue to hover over the guarded area.
- `ExtendedAircraftMissions.FastScramble` controls whether the aircraft
can scramble when its airport has been destroyed.
- `ExtendedAircraftMissions.UnlandDamage` controls the damage suffered
by the aircraft every 4 frames when there is no airport for the aircraft
to land. If the value is negative, it will crash immediately. Not
recommended to use when `ExtendedAircraftMissions` is not enabled.
In `rulesmd.ini`:
```ini
[General]
ExtendedAircraftMissions.UnlandDamage=-1 ; integer
[SOMEAIRCRAFT] ; AircraftType
ExtendedAircraftMissions.FastScramble= ; boolean, default to [General] -> ExtendedAircraftMissions
ExtendedAircraftMissions.UnlandDamage= ; integer, default to [General] -> ExtendedAircraftMissions.UnlandDamage
```
1 parent b54c036 commit 6a3c01a
9 files changed
Lines changed: 319 additions & 46 deletions
File tree
- docs
- src
- Ext
- Aircraft
- Rules
- TechnoType
- Misc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| 548 | + | |
548 | 549 | | |
549 | 550 | | |
550 | 551 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
| 328 | + | |
| 329 | + | |
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
336 | 338 | | |
337 | 339 | | |
338 | 340 | | |
339 | 341 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
346 | 351 | | |
347 | 352 | | |
348 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| 449 | + | |
449 | 450 | | |
450 | 451 | | |
451 | 452 | | |
| |||
0 commit comments