reaperrr
0c2666b97e
Streamline Land activity
...
Removed some redundant parameters, some redundant overloads
and made Land always consider LandAltitude relative to target.
2019-05-17 18:51:21 +01:00
reaperrr
14bd5ada1a
Merge HeliLand into Land activity
2019-05-17 18:51:21 +01:00
reaperrr
bc0d8ca015
Remove ResupplyAircraft and AllowYieldingReservation
...
The few extra things those two activities did can be done
in Resupply, making them redundant.
2019-04-29 01:40:52 +01:00
tovl
c633e07410
Make aircraft occupy cells when landed.
2019-04-22 02:56:57 +02:00
reaperrr
c7eee6ae5d
Improve ReturnToBase Activity.cs adherance
...
And make it use child activities for queueability.
2019-04-13 18:47:08 +02:00
reaperrr
8edf5b56ea
Exclude dead actors from ChooseResupplier
2019-04-13 18:47:08 +02:00
reaperrr
2cdae0b380
Merge HeliReturnToBase into ReturnToBase
2019-04-13 18:47:08 +02:00
reaperrr
5ec47b47af
Rename fields on Repairable traits
...
To bring them in line with RearmActors,
Repairable.RepairBuildings and
RepairableNear.Buildings have been renamed
to RepairActors.
Additionally, their RA-specific internal
defaults were removed and the FieldLoader
now requires them to be set explicitly.
2019-03-10 19:19:49 +01:00
tovl
a17cd0fa06
Replaced Canceled state with Canceling state.
2019-03-09 21:47:43 +00:00
tovl
8191a6566b
Add missing self and optional pretick parameters to Queue, QueueChild and PrintActivity methods.
...
This means sequenceActivities needs to accept self as well.
2019-03-09 21:47:43 +00:00
Paul Chote
ab4a7e3558
Replace System.Drawing primitives with our own.
2019-03-04 18:26:42 +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
portablestew
2d4bad66ae
Fix for #7083 : Fly stops turning when target is inside the turn radius
2019-02-08 19:38:01 +01: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
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
reaperrr
8f1d8a67cc
Remove RearmBuildings from Aircraft and Minelayer
...
In favor of using Rearmable trait.
2018-11-02 22:28:08 +00:00
reaperrr
139d5efba8
Remove RepairBuildings from Aircraft
...
Require them to use Repairable trait instead.
2018-11-02 22:28:08 +00:00
abcdefg30
0b89883012
Prevent ReturnToBase from causing a divide by zero crash
2018-10-28 18:54:32 +01:00
reaperrr
77d03ce1e1
Replace Airfield/Helipad references with generic Resupplier in RTB activities
...
More generalization to prepare for possible future activity merger.
2018-08-12 14:24:21 +02:00
reaperrr
96032d1953
Generalize *ReturnToBase trait caching naming
...
Makes both copying changes as well as a potential future activity merger a little easier.
2018-08-12 14:24:21 +02:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
reaperrr
d602ec6485
Rename SelfReloads to AutoReloads
2017-11-12 19:48:06 +00:00
reaperrr
6f95080aa4
Add ReloadAmmoPool and adapt AmmoPool
...
Refactored and simplified Rearm activity.
Uses local Reload now.
Removed AmmoPool.SelfReloads.
2017-11-12 19:48:06 +00:00
reaperrr
5d58374962
Remove FlyCircleTimed activity
...
A FlyCircle overload is sufficient.
2017-08-31 18:03:59 +02:00
Jean-Rémy Buchs
1d1802a163
Add LandOnCondition to the trait Aircraft which triggers a landing and prevents takeoffs while the condition is met
2017-08-08 15:13:50 -05:00
Oliver Brakmann
ff8f204cac
Check for dead destination airfield in ReturnToBase
2017-04-17 19:23:11 +02:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
34b10dcb77
Hack around the Lua API.
2016-09-26 17:48:25 +01:00
Paul Chote
ea65ac542e
Add AbortOnResupply property to cancel aircraft activities on resupply.
2016-09-25 15:57:17 +01:00
Paul Chote
eeaa461311
Avoid landing-dances when issuing mixed full/empty aircraft RTB orders.
2016-09-25 15:57:16 +01:00
Oliver Brakmann
daa1f16e98
Prevent an infinite loop when planes go out of ammo and all airfields are gone
2016-09-05 19:59:01 +02:00
Paul Chote
1ae86f34f8
Overhaul Carryall behaviour, adding support for manual control.
2016-08-27 15:42:18 +01:00
PedroFerreiraRamos
958e35d61f
Fix air unit resupply #5966
2016-07-12 20:17:45 -03:00
reaperrr
73ec1ec9b2
Remove float from ReturnToBase.CalculateTurnRadius
...
141 / PI ~= 44.88, so 45 should be accurate enough. This should reduce desync risk while improving performance of this calculation.
2016-03-28 17:20:49 +02:00
reaperrr
cddf182996
Renamed ROT to TurnSpeed on Mobile, Aircraft, Turreted and ThrowsParticle
2016-03-04 15:13:55 +01:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9
Update licence header year.
2016-02-21 16:27:31 +00:00
PedroFerreiraRamos
bf97dd6b7b
Bug fix #10029 Plane resupply
2016-02-19 08:35:18 -02:00
Paul Chote
0039a2bdbf
Split out an ActivityUtils class.
2016-01-19 23:34:13 +00:00
abcdefg30
07bfd5f59e
Merge pull request #9786 from RoosterDragon/reserve-fixes
...
Reserve fixes
2015-12-01 21:13:41 +01:00
atlimit8
b6f17df260
Add ActorsHavingTrait<TTrait>([Func<TTrait, bool])
2015-10-28 16:36:45 -05:00
RoosterDragon
b4180615a8
Add Aircraft.MakeReservation.
...
This provides a simpler method for making reservations and also ensures the previous reservation is definitely unreserved before being discarded.
2015-10-27 22:15:56 +00:00
Pavel Penev
8a44366667
Merge Plane and Helicopter into Aircraft
2015-10-01 20:15:41 +03:00
Pavel Penev
0ee1ad3fa4
Add a default value to ReturnToBase's constructor for non-Lua usages
2015-10-01 20:09:16 +03:00
atlimit8
09984683a7
Add ActorInfo.TraitInfo[OrDefault]<T>() requiring ITraitIfo types
2015-09-19 09:56:14 -05:00
Matthias Mailänder
413baf9d8b
rename WDist.Range to WDist.Length
2015-07-09 10:55:38 +02:00
Oliver Brakmann
32ed63727d
Revert "Expose Plane turn-to-attack delay to yaml."
...
This reverts commit 02da41e5c5 .
2015-04-03 23:42:35 +02:00
Taryn Hill
02da41e5c5
Expose Plane turn-to-attack delay to yaml.
...
Require Plane in some ctors.
2015-04-01 00:12:20 -05:00