mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
carrier operations WIP[2]
This commit is contained in:
@@ -89,11 +89,15 @@ class InterceptOperation(Operation):
|
||||
transport: db.PlaneDict,
|
||||
airdefense: db.AirDefenseDict,
|
||||
interceptors: db.PlaneDict):
|
||||
heading = from_cp.position.heading_between_point(to_cp.position)
|
||||
distance = from_cp.position.distance_to_point(to_cp.position)
|
||||
position = from_cp.position.point_from_heading(heading, distance/2)
|
||||
|
||||
conflict = Conflict.intercept_conflict(
|
||||
attacker=attacker,
|
||||
defender=defender,
|
||||
position=to_cp.position,
|
||||
heading=randint(0, 360),
|
||||
position=position,
|
||||
heading=heading,
|
||||
radials=ALL_RADIALS
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user