Paul Chote
7e72cd262c
Fix FlyAttack invalid target crash.
2020-02-19 23:35:16 -06:00
Paul Chote
9a6602656b
Ignore nearEnough if we think the actor can get closer.
2020-02-18 19:37:17 +01:00
Paul Chote
3a688e03f0
Add multiple levels of fallback.
2020-02-12 21:17:39 +00:00
Paul Chote
a43335c7b0
Restore transient blocker check in pathfinding queries.
2020-02-12 21:17:39 +00:00
Paul Chote
b2f0ac15e8
Generalize RallyPointInfo.Offset to support arbitrary length paths.
2020-02-09 16:52:22 +01:00
reaperrr
6220d7e62e
Introduce WarheadArgs
...
- Passes additional arguments to warheads on impact
- Uses that to reduce parameter count of DoImpact by 1
2020-01-21 19:31:34 +01:00
Paul Chote
d0f44143c2
Fix activity cancellation on FlyAttack RTB.
...
* AbortOnResupply will now cancel queued activities
in addition to the current attack.
* Resupply if no ammo is available during a standard attack.
* Don't resupply (move directly to target) if no ammo is available
during an attack move (C&C3 style).
2020-01-18 16:38:53 +01:00
Paul Chote
51870a471a
Add AttackSource enum.
2020-01-18 16:38:53 +01:00
Paul Chote
adb3c8e39c
Split fixed-wing attack and strafe attack types.
2020-01-12 21:06:35 +01:00
tovl
85bc843554
Fix aircraft failing to engage targets within range.
2020-01-12 21:06:35 +01:00
Paul Chote
0106ed3669
Restore red lines for harvester targets.
2020-01-12 04:08:59 +01:00
reaperrr
ac44367440
Refactor Spin to MaximumSpinSpeed
...
Additionally, add descriptions to
other FallsToEarth properties.
2020-01-06 21:47:53 +00:00
reaperrr
4499343ed2
Make Aircraft actually pausable/disableable
...
This commit makes aircraft
- ignore any aircraft-specific orders while disabled
- show blocked move cursor while paused
- set speeds to zero while paused or disabled
2020-01-06 21:47:53 +00:00
reaperrr
4b006bc484
Make Aircraft PausableConditional
...
Note: This commit only does the minimum changes
to implement PausableConditional, there are no
logic changes yet (like disabling movement on PauseOnCondition).
2020-01-06 21:47:53 +00:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
tovl
2094142b7d
Include tunnel check in CanStayInCell.
2020-01-04 16:04:27 +00:00
tovl
434c46058f
Disallow units idling on service depot.
2020-01-04 16:04:27 +00:00
tovl
c360d8bcef
Make service depot passable.
2020-01-04 16:04:27 +00:00
reaperrr
804d61a6a1
Fix DeliverUnit-related crash
2020-01-01 20:42:36 +01:00
abcdefg30
1e138a9774
Drop invisible invalid targets immediately when changing stance
2019-12-14 17:17:36 +01:00
tovl
203fff0ab7
Allow queued structure rallypoints.
2019-12-13 23:51:03 +01:00
tovl
3236499fb7
Increase IMove.MoveTo call flexibility.
2019-12-13 23:51:03 +01:00
reaperrr
ee00954f2e
Replace AmmoPool lookup methods with properties
...
And gave the more suitable names while at it.
This is more in line with how we do things in
other places.
2019-11-20 15:45:41 +01:00
reaperrr
2de51ae73c
Cache IPathFinder in Mobile at creation
...
Avoiding look-ups on every move order,
as well as reducing line lengths.
2019-11-03 20:53:29 +01:00
tovl
38caadfdf0
Clean up nudging code.
2019-10-28 19:35:32 +01:00
tovl
c4d1468f62
Make locomotor cache and nudging logic aware of mobile trait status.
2019-10-28 19:35:32 +01:00
Paul Chote
69970d42f3
Prevent movement pausing at invalid position.
2019-10-19 13:11:00 +02:00
Paul Chote
ae34410c80
Replace MoveIntoWorld with ReturnToCell/AssociateWithAirfield.
2019-10-17 23:31:15 +02:00
Abdurrahmaan Iqbal
763e6d8109
Fix #17229 : Refactor ReturnToBase.cs
2019-10-17 10:28:43 +02:00
tovl
33d089a9d6
Fix lastVisibleTarget not being set in FlyAttack and AttackActivity.
2019-10-14 01:22:04 +02:00
tovl
eed00ded0d
pause MovePart when Mobile is paused.
2019-10-06 20:28:20 +01:00
abcdefg30
39f8d34494
Fix setting the position of the wrong actor
2019-10-06 14:42:50 +01:00
tovl
48059e8249
Skip rally point if order is queued after resupply.
2019-09-26 18:39:44 +02:00
tovl
09cd56b367
Add missing target line to aircraft taking off from resupplying.
2019-09-26 18:39:44 +02:00
tovl
145b6a05a3
Refactor unreserve actions.
2019-09-26 18:39:44 +02:00
tovl
5787f74af9
Prevent bogus attackmove on take-off.
2019-09-26 18:39:44 +02:00
tovl
4a609bbee8
Allow units to give way when path is blocked by oncoming unit.
2019-09-15 17:51:34 +01:00
tovl
46c0b4cf31
Fix crash with dead cargo.
2019-09-13 10:34:15 +02:00
abcdefg30
ca8ca2df5c
Fix a division by zero error in FindAndDeliverResources
...
by preventing an overflow through dividing directly
2019-09-07 10:48:20 +01:00
reaperrr
801f5ba525
Rename FlyCircle to FlyIdle and make it tick TickIdle
...
It now handles both hovering and circling aircraft, for consistency.
2019-09-01 16:38:44 +02:00
Paul Chote
815ea1e13b
Make LastSearchFailed local to FindAndDeliverResources.
2019-08-25 17:20:38 +02:00
tovl
946c9f420b
Fix Move not cancelling during turns.
2019-08-25 13:13:37 +02:00
Paul Chote
4db3da61e1
Avoid an integer (long) overflow in FindAndDeliverResources.
2019-08-23 14:15:51 +02:00
tovl
ed8abe9861
Define nearenough parameter for aircraft so they can exit movement early when stuck.
2019-08-23 13:54:58 +02:00
reaperrr
e71001f4f8
Fix Resupply closeEnough bugs
...
Fixes that
- RepairableNear actors wouldn't move close enough
- isCloseEnough would return 'true' even if the host
is invalid.
2019-08-22 10:26:36 +01:00
Paul Chote
ab94ea9715
Discourage harvesters from wandering too far from the refinery.
2019-08-20 20:22:39 +02:00
tovl
2d394f33b8
Fix units from transports appearing at load point.
2019-08-19 00:33:38 +02:00
tovl
70459b311e
Refactor FlyAttack to make strafing runs interruptible when target becomes invalid.
2019-08-18 12:50:20 +02:00
Paul Chote
e600848947
Fix crash for invalid Resupply hosts.
2019-08-18 12:48:17 +02:00
tovl
08c472b2e2
Disallow attack-moving units from chasing their targets.
2019-08-15 18:03:30 +02:00