Tweak DEAD Ingress WPT-tasks

This commit is contained in:
Raffson 2023-03-05 23:46:07 +01:00
parent 5e7f5a68c2
commit 5c7a87dbfd
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -1,7 +1,7 @@
import logging import logging
from dcs.point import MovingPoint from dcs.point import MovingPoint
from dcs.task import AttackGroup, OptECMUsing, WeaponType from dcs.task import AttackGroup, OptECMUsing, WeaponType, Expend
from game.theater import TheaterGroundObject from game.theater import TheaterGroundObject
from .pydcswaypointbuilder import PydcsWaypointBuilder from .pydcswaypointbuilder import PydcsWaypointBuilder
@ -27,8 +27,13 @@ class DeadIngressBuilder(PydcsWaypointBuilder):
) )
continue continue
task = AttackGroup(miz_group.id, weapon_type=WeaponType.Guided)
waypoint.tasks.append(task)
task = AttackGroup( task = AttackGroup(
miz_group.id, weapon_type=WeaponType.Auto, group_attack=True miz_group.id,
weapon_type=WeaponType.Unguided,
expend=Expend.All,
) )
waypoint.tasks.append(task) waypoint.tasks.append(task)