tovl
92189e4b50
Let docking angle be determined by the host building.
2020-10-02 11:28:14 +02:00
tovl
5e62fe86fc
Add IdleSpeed to aircraft trait.
2020-08-27 21:15:38 +02:00
teinarss
9c4fd0e3d3
Use Null-Propagation Operator
2020-08-19 18:11:07 +01:00
teinarss
27f1a7ab27
Use out var syntax
2020-08-19 18:11:07 +01:00
Andre Mohren
006a87692a
Removed unused imports.
2020-07-28 18:22:51 +02:00
Paul Chote
ac975f4139
Convert yaml-exposed facings to WAngle.
2020-07-19 10:41:05 +02:00
Paul Chote
8c3793e7ea
Rename WRot.Zero to WRot.None.
2020-07-17 15:02:32 +02:00
Paul Chote
6dcde3af72
Allow voxel-based aircraft to pitch and roll.
2020-06-21 18:05:40 +02:00
Paul Chote
803b930405
Change IFacing.TurnSpeed to WAngle.
2020-06-12 18:35:41 +02:00
Paul Chote
6adf45bcb4
Convert IFacing.Facing and TurnSpeed to WAngle.
2020-06-12 18:35:41 +02:00
Paul Chote
6d6b21a0eb
Convert Aircraft.Facing to WAngle.
2020-06-01 20:25:38 +02:00
abcdefg30
a5bc841355
Ignore the types of an exit when the production type is null or empty
2020-02-28 18:48:05 +01:00
Paul Chote
7e72cd262c
Fix FlyAttack invalid target crash.
2020-02-19 23:35:16 -06: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
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
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
abcdefg30
1e138a9774
Drop invisible invalid targets immediately when changing stance
2019-12-14 17:17:36 +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
Paul Chote
69970d42f3
Prevent movement pausing at invalid position.
2019-10-19 13:11:00 +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
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
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
tovl
ed8abe9861
Define nearenough parameter for aircraft so they can exit movement early when stuck.
2019-08-23 13:54:58 +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
78302ea593
Rework aircraft rally point handling.
2019-08-15 17:02:27 +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
c0d5cd750d
Add missing target lines.
2019-08-10 12:17:36 +02:00
reaperrr
969be686a3
Fix aircraft with TakeOffOnResupply not taking off
...
...after auto-resupply.
2019-08-09 09:45:40 +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
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
reaperrr
bfcdb3a8a2
Add IdleBehavior enum to Aircraft
2019-07-21 16:29:38 +02:00
tovl
a38c2d9aae
Allow ReturnToBase to exit if actor does not land at building.
2019-07-19 12:19:15 +02:00
tovl
d59b01597a
Always clear requested targets when exiting AttackActivity/Flyattack.
2019-07-18 23:14:56 +01: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
5211eb25aa
Improve handling of finished/cancelled Resupply
2019-07-15 23:48:54 +01:00
reaperrr
e4011b86ac
Move AbortOnResupply to AttackAircraft
...
Additionally, if AbortOnResupply is set to 'true',
abort FlyAttack right away when queueing ReturnToBase.
2019-07-15 23:48:54 +01: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
985020b4ad
Simplify special exits of several acitivities.
2019-07-03 20:42:19 +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
71a035315c
Prevent infinite loop between FlyAttack and ReturnToBase.
2019-06-30 18:04:43 +02:00
tovl
76422933f6
Allow forced landing on helipads and enforce takeoff otherwise.
2019-06-30 18:04:43 +02:00