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
Paul Chote
78302ea593
Rework aircraft rally point handling.
2019-08-15 17:02:27 +02:00
abcdefg30
bfc3e1354b
Rename SearchFromOrderRadius to SearchFromHarvesterRadius
2019-08-11 16:40:55 +02:00
abcdefg30
698ef5e375
Don't use SearchFromProcRadius when searching from self.Location
2019-08-11 16:40:55 +02:00
reaperrr
b7d966f78f
Don't exit FlyOffMap immediately on leaving map
...
Usually they'll get removed afterwards, so they need to be
out of players' sight before ending this activity.
2019-08-11 16:28:42 +02:00
reaperrr
64780fc865
Fix ProductionAirdrop aircraft removal timing
...
...when leaving map before finishing TakeOff.
2019-08-11 16:28:42 +02:00
tovl
5393b689d4
Disable preemptive targeting for queued orders.
2019-08-10 19:10:45 +01:00
abcdefg30
d1c56d78e1
Fix spamming repair orders repairing faster
2019-08-10 11:39:12 +01:00
tovl
c0d5cd750d
Add missing target lines.
2019-08-10 12:17:36 +02:00
teinarss
daa82d113e
Prevent crash when unloading Cargo structures
2019-08-10 11:52:33 +02:00
reaperrr
969be686a3
Fix aircraft with TakeOffOnResupply not taking off
...
...after auto-resupply.
2019-08-09 09:45:40 +02:00
reaperrr
ac3b3db7ac
Made Resupply canceling more robust
...
The following improvements are made here:
- merged and streamlined the two IsCanceling checks in Tick
into one that covers both isCloseEnough cases
- isCloseEnough now only checks distance to host
if host is still valid and otherwise returns 'false'
- called transports are now also cancelled when host becomes
invalid, not only if the activity is cancelled via order
- aircraft now always take off if the host becomes invalid
- ground actors only try to leave if host is still existing
2019-08-08 17:22:53 +02:00
tovl
b7a7b7aa7e
Revise target line colours to distinguish different attack types.
2019-08-05 02:53:09 +01:00
Turupawn
3240b1e9eb
Overhaul target line rendering:
...
- Targets are now defined by the activities
- Queued activities are shown
- Support custom attack colors
2019-08-05 02:53:09 +01:00
tovl
8c7ff3b5b0
Make VisualMove uninterruptible by making Turn a Child of Drag.
2019-08-04 11:48:59 +02:00
teinarss
2ddf9fa826
Using Locomotor instead of Info for pathfinding
2019-07-26 15:54:22 +02:00
reaperrr
e662f17f06
Fix that VTOLs can ignore TurnToDock/-Land
...
When already at horizontal target position, no Turn was queued.
2019-07-23 16:17:18 +02:00
tovl
d9e1a68453
Cancel carryall transport request when cancelling order.
2019-07-22 22:54:01 +02:00