reaperrr
117dde32ba
Removed unused sanity checks from pathfinding
...
These haven't been active and used in years.
2019-02-22 19:59:41 +00:00
reaperrr
5166b8cd5d
Add missing closing bracket in Move comment
2019-02-22 19:59:41 +00:00
portablestew
a49287cc97
Possible fix for #14102 : Consider airfield available if already reserved for the same actor
2019-02-15 13:59:53 +01:00
Paul Chote
49621bebd0
Abort activities when we don't know how close to move to a target.
2019-02-09 19:20:10 +01:00
portablestew
2d4bad66ae
Fix for #7083 : Fly stops turning when target is inside the turn radius
2019-02-08 19:38:01 +01:00
Oliver Brakmann
0ee9219df3
Fix unresponsive aircraft when executing orders queued during resupply
2019-02-06 18:01:51 +00:00
Paul Chote
08e3e429db
Remove obsolete LegacyEnter and ResolveFrozenActorOrder.
2019-02-03 20:21:51 +01:00
Paul Chote
71dd3202c3
Port EnterTransport to the new Enter activity.
...
This dramatically simplifies the reservation logic,
which seemed to be needlessly complicated. This may
regress unexpected edge-cases.
2019-02-03 20:21:51 +01:00
Paul Chote
d6b7d5c4c7
Port DonateExperience to the new Enter activity.
2019-02-03 20:21:51 +01:00
Paul Chote
cc288f5afc
Port DonateCash to the new Enter activity.
2019-02-03 20:21:51 +01:00
Paul Chote
4551625bb4
Port RepairBridge to the new Enter activity.
2019-02-03 20:21:51 +01:00
Paul Chote
49e3c46d00
Port RepairBuilding to the new Enter activity.
2019-02-03 20:21:51 +01:00
Paul Chote
167371d540
Port Demolish to the new Enter activity.
2019-02-03 20:21:51 +01:00
Paul Chote
e9c3216048
Port CaptureActor to the new Enter activity.
2019-02-03 20:21:51 +01:00
Paul Chote
c1e8bbfc58
Rewrite Enter activity, accounting for frozen and hidden actors.
2019-02-03 20:21:51 +01:00
Paul Chote
d2274f4285
Rewrite Mobile.MoveIntoTarget to support moving targets.
2019-02-03 20:21:51 +01:00
Paul Chote
1f7b558b29
Rename Enter to LegacyEnter.
2019-02-03 20:21:51 +01:00
Paul Chote
83212b100e
Pause actor movement between cells when Mobile is disabled.
2019-02-03 20:21:51 +01:00
Paul Chote
c8f05e90dc
Fix turn disabling mobile.IsMoving when setIsMoving is false.
2019-02-03 20:21:51 +01:00
Paul Chote
0a57fbda3c
Prefer target to lastVisible target if it is visible.
2019-02-03 16:32:25 +01:00
tovl
ee19cb61b4
add check for NextActivity to FlyCircle
...
prevent infinite loop
fix for ReturnToBase
cleanup
2019-02-03 11:24:19 +00:00
Paul Chote
60fcf5951c
Fix target invalidation and reacquisition in fly activities.
2019-01-26 22:53:46 +00:00
Paul Chote
8efa0da54d
Fix target invalidation and reacquisition in (Fly|Heli)Attack.
2019-01-26 22:53:46 +00:00
Paul Chote
7c52a6f498
Fix target invalidation and reacquisition in Attack.
2019-01-26 22:53:46 +00:00
Paul Chote
616b6c8499
Fix target invalidation and reacquisition in Follow.
2019-01-26 22:53:46 +00:00
Paul Chote
975821023d
Fix target invalidation and reacquisition in MoveAdjacentTo.
2019-01-26 22:53:46 +00:00
Paul Chote
d03c5b1c48
Split Target.Recalculate into methods with and without invalidation.
...
TargetExtensions is moved into its own file.
2019-01-26 22:53:46 +00:00
Paul Chote
2080c72ab9
Define plumbing to pass initial target positions to inner move activities.
2019-01-26 22:53:46 +00:00
Paul Chote
b2d960ec19
Pass target line color to inner move activities.
2019-01-26 22:53:46 +00:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Paul Chote
0df159e73b
Cache world INotifySelection traits in Selection.
2019-01-26 21:40:31 +00:00
Paul Chote
6fc291a634
Disable target recalculation for bots.
...
This fixes bot-controlled units freezing when they
lock on to units that aren't visible.
2019-01-03 02:04:08 +01:00
Mustafa Alperen Seki
4578ea09ba
Add DamageTypes to Capture Sabotage
2019-01-02 20:04:06 +01:00
Paul Chote
b41c178cb9
Revert "Units that have turrets while deployed now move their turrets back to their initial positions before undeploying"
...
This reverts commit d34bea293505f152d5f5aae3806dfcf36104945b.
2018-12-26 16:35:26 +01:00
Paul Chote
c34dd4b824
Allow Attack activities to target FrozenActors directly.
...
Removing the legacy FrozenActor to Actor workaround
fixes a number of long-standing bugs.
This also prevents units from losing their target when
it transforms into a different actor type.
2018-12-17 22:19:26 +01:00
Paul Chote
0406b89a96
Add Actor.ReplacedByActor to track transformations.
...
This isn't great conceptually, but has precedent
in the Generation number.
2018-12-17 22:19:26 +01:00
Paul Chote
2ac7e451b4
Remove AttackBase.IgnoresVisibility.
...
This was a workaround for D2K sandworms, which is
now implemented using a custom attack activity.
2018-12-17 22:19:26 +01:00
Paul Chote
73198dc45a
Fix queued EnterTransport unload glitch.
2018-12-08 11:41:20 +01:00
Paul Chote
4b6853b433
Prevent multiple Transforms from triggering in the same tick.
...
This leads to actor duplication.
2018-12-08 11:34:49 +01:00
reaperrr
ac3e601edf
Use INotifyIdle on Aircraft
...
For now only to trigger landing or circling.
2018-12-05 09:20:58 +13:00
reaperrr
d8220b390a
Add IdleTurnSpeed to Aircraft
...
Instead of hardcoding 1/3 of normal TurnSpeed on HeliFlyCircle.
2018-12-05 09:20:58 +13:00
Oliver Brakmann
7454427b13
Fix FindResources aborting to early
2018-11-25 22:41:46 +00:00
Paul Chote
3be008f592
Add EmptyCondition to Harvester.
2018-11-22 22:16:56 +01:00
Andre Mohren
b1a44086a0
Removed unused using directives.
2018-11-17 17:23:22 +00:00
reaperrr
92912c6c94
Add TurnToDock to Aircraft
...
Instead of hard-coding a turn before VTOLs
land/dock on resupplier.
2018-11-04 00:25:55 +01:00
reaperrr
e2227b9450
Make HeliReturnToBase use a landingProcedures list
...
Like ReturnToBase already does. Makes them easier to compare and later merge.
2018-11-04 00:25:55 +01:00
reaperrr
577fc1c409
Remove separate AircraftInfo caching from ReturnToBase
...
This extra info caching was overkill and most likely had zero effect on performance.
2018-11-04 00:25:55 +01:00
reaperrr
54d3656205
Move CalculateTurnRadius up in ReturnToBase
...
Just a slight readability improvement.
2018-11-04 00:25:55 +01:00
Paul Chote
492bcdd9a7
Remove building lock from Transforms.
2018-11-03 15:09:14 +01:00
Paul Chote
18b84750aa
Reimplement demolition lock using conditions.
2018-11-03 15:09:14 +01:00