mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Cull FlightType.TRANSPORT, FlightType.AEWC & FlightType.REFUELING surroundings
Don't create culling exclusion zones around FlightType.TRANSPORT, FlightType.AEWC & FlightType.REFUELING mission targets. (#30)
This commit is contained in:
parent
dfa33724e9
commit
4af7255917
10
game/game.py
10
game/game.py
@ -528,12 +528,20 @@ class Game:
|
|||||||
|
|
||||||
packages = itertools.chain(self.blue.ato.packages, self.red.ato.packages)
|
packages = itertools.chain(self.blue.ato.packages, self.red.ato.packages)
|
||||||
for package in packages:
|
for package in packages:
|
||||||
if package.primary_task is FlightType.BARCAP:
|
if package.primary_task in [
|
||||||
|
FlightType.BARCAP,
|
||||||
|
FlightType.TRANSPORT,
|
||||||
|
FlightType.AEWC,
|
||||||
|
FlightType.REFUELING,
|
||||||
|
]:
|
||||||
# BARCAPs will be planned at most locations on smaller theaters,
|
# BARCAPs will be planned at most locations on smaller theaters,
|
||||||
# rendering culling fairly useless. BARCAP packages don't really
|
# rendering culling fairly useless. BARCAP packages don't really
|
||||||
# need the ground detail since they're defensive. SAMs nearby
|
# need the ground detail since they're defensive. SAMs nearby
|
||||||
# are only interesting if there are enemies in the area, and if
|
# are only interesting if there are enemies in the area, and if
|
||||||
# there are they won't be culled because of the enemy's mission.
|
# there are they won't be culled because of the enemy's mission.
|
||||||
|
|
||||||
|
# Don't create culling exclusion zones around FlightType.TRANSPORT,
|
||||||
|
# FlightType.AEWC & FlightType.REFUELING mission targets.
|
||||||
continue
|
continue
|
||||||
zones.append(package.target.position)
|
zones.append(package.target.position)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user