Paul Chote
6d6b21a0eb
Convert Aircraft.Facing to WAngle.
2020-06-01 20:25:38 +02:00
tovl
85bc843554
Fix aircraft failing to engage targets within range.
2020-01-12 21:06:35 +01: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
5787f74af9
Prevent bogus attackmove on take-off.
2019-09-26 18:39:44 +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
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
reaperrr
bfcdb3a8a2
Add IdleBehavior enum to Aircraft
2019-07-21 16:29:38 +02:00
reaperrr
cf4d73ab91
Revert FlightDynamics
...
This needs more thought and most parts might get superseded
by other approaches.
Kept CanSlide separation from CanHover.
2019-07-18 10:26:43 +02:00
reaperrr
0ebeb30880
Replace various Aircraft fields with FlightDynamics
...
Replaces various booleans with a FlightDynamics flag list.
2019-07-05 00:03:36 +02:00
tovl
3790169db9
Make Tick return bool
2019-07-03 20:42:19 +02:00
tovl
b9c302a73a
Move ChildActivity handling into base Activity class.
2019-07-03 20:42:19 +02:00
tovl
8e5875453a
Improve Carryall behaviour and integration with Aircraft.
2019-06-30 18:04:43 +02:00
reaperrr
ac08f24828
Make aircraft move to CruiseAltitude on new order
2019-06-07 22:18:33 +01:00
reaperrr
ce3d7c98ad
Refactor TakeOff
...
- Make it self-contained by moving actual take-off
from 'Fly' to this
- Make 'moveToRallyPoint' a simple boolean
- Make AttackMove to rally point a child activity
- Make TakeOff uninterruptible
2019-06-07 22:18:33 +01:00
reaperrr
4f8f8cfb9d
Merge HeliFly into Fly
2019-06-07 22:18:33 +01:00
tovl
560f8c26bc
Add crushing logic to aircraft.
2019-04-22 02:56:57 +02:00
tovl
c633e07410
Make aircraft occupy cells when landed.
2019-04-22 02:56:57 +02:00
abcdefg30
1bb319425b
Add Sound.Play overloads that play a random sound from a list
2019-04-20 01:22:30 +02:00
tovl
a17cd0fa06
Replaced Canceled state with Canceling state.
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
2d4bad66ae
Fix for #7083 : Fly stops turning when target is inside the turn radius
2019-02-08 19:38:01 +01:00
Paul Chote
60fcf5951c
Fix target invalidation and reacquisition in fly activities.
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
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
Inq8
fec9fe1ad4
Aircraft Takeoff & Landing Sounds (Fixed-Wing)
...
Added Takeoff & Landing sounds to planes.
Changed Aircraft Trait, TakeoffSounds & LandingSounds are now arrays & accept a list of sound files & it will randomly select one to play.
Changed/fixed take off & landing sounds to originate from the aircraft location, rather than play a global sound.
2018-10-12 14:29:53 +02:00
reaperrr
ae92255ded
Generalize Fly activity Aircraft caching naming
...
To make a possible future merger (or inheritance or other code-sharing) of these activities 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
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
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
06ca8b6cf2
Remove hardcoded constant from Fly.
2016-08-24 17:20:07 +01: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
Paul Chote
3b18c7815d
Remove Util.GetFacing.
2016-01-16 22:38:17 +00:00
Pavel Penev
8a44366667
Merge Plane and Helicopter into Aircraft
2015-10-01 20:15:41 +03:00
Pavel Penev
71c5d69dc5
Merge pull request #8938 from abcdefg30/heliheigth
...
Have flying actors account for terrain height
2015-08-17 13:53:39 +03:00
atimoschenkow
b1c51cc910
Fix for #6161 queue commands for Plane/Heli (do not ignore Order.Queued in ResolveOrder())
2015-08-07 23:41:03 +02:00
abcdefg30
a94e35163a
Have flying actors account for terrain height
2015-08-04 15:48:03 +02:00
Matthias Mailänder
413baf9d8b
rename WDist.Range to WDist.Length
2015-07-09 10:55:38 +02:00
Matthias Mailänder
7447e0bf93
rename WRange to WDist
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
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
reaperrr
654f56c5d5
Moves Attack, Armament, Move, Air traits and activities as well as anything required by them to Mods.Common.
...
Extracts Exit from Production into its own trait.
2015-01-04 05:24:28 +01:00