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
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
reaperrr
e42094625d
Merge AttackPlane and AttackHeli into AttackAircraft
2018-11-03 11:37:23 +00: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
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
Mustafa Alperen Seki
faa35946b8
Make Exit Conditional
2018-10-08 22:00:39 +01:00
BGluth
09b9ed3506
Rearming aircraft now reapplies rearming order if canceled on landing structure
...
- Implemented by making the ResupplyAircraft activity recreate a new resupply activity if cancelled and also having no other queued activities.
- Tested in TD, RA, TS.
2018-08-12 21:16:23 +02: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
fc79e04c49
Generalize Land activities 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
reaperrr
3f9aab7e86
Generalize Fly* plane activities Aircraft caching naming
...
To make a possible future merger (or inheritance or other code-sharing) with other activities easier.
2018-08-12 14:24:21 +02:00
reaperrr
6810ac92ba
Generalize HeliAttack activity Aircraft caching naming
...
To make a possible future merger (or inheritance or other code-sharing) with FlyAttack easier.
2018-08-12 14:24:21 +02:00
reaperrr
c3a0d129a3
Generalize FlyCircle 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
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
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
BGluth
5c42f55b3a
Fixed aircraft in TS landing instantly to reload their ammo
...
- Updated calculating the landing altitude for the Land activity not taking into account the terrain height.
- Fixes 14312.
2018-08-04 21:09:59 +02:00
reaperrr
3069bbfa7d
Fix infinite loop in HeliReturnToBase
...
This can happen if HeliAttack tells the heli to return to base when the player doesn't have any of the RearmBuildings available, because the activity queues itself after the HRTB, and the latter will, after a forced land, then queue back HeliAttack, which then immediately queues back HRTB and so on.
Instead, we now assume that if there is no base to return to, going to NextActivity is pointless and don't queue NextActivity.
RTB was likely ordered by HeliAttack due to lack of ammo, so resuming the attack would be pointless.
2018-03-22 22:50:50 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
GSonderling
488cec64b8
Added support for filtering exits by production type.
2017-12-13 04:08:52 +01:00
reaperrr
d602ec6485
Rename SelfReloads to AutoReloads
2017-11-12 19:48:06 +00:00
reaperrr
8b7a71685c
Remove AmmoPool-awareness from Armament
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
Paul Chote
1376ad674e
Remove Player.CanViewActor and .CanTargetActor.
2017-11-03 09:56:00 +01:00
reaperrr
db2d432c39
Fix Helis facing target center instead of attacked position
2017-10-16 14:25:03 +02:00
Forcecore
b86d632c8c
Land activity now lets the actor to land midair
...
Midair, at the altitude of the target actor.
2017-09-24 15:03:20 +02:00
reaperrr
5d58374962
Remove FlyCircleTimed activity
...
A FlyCircle overload is sufficient.
2017-08-31 18:03:59 +02:00
reaperrr
c9ff362ea2
Add TakeOffOnCreation and TakeOffOnResupply to Aircraft
...
Before this, it was impossible to replicate the behavior of the original games (staying on pad/airfield after reload) without hacking around in Mods.Common.
This allows modders to disable these without meddling with code.
2017-08-31 18:03:59 +02:00
reaperrr
c75e64a952
Properly account for disabled Armaments in various places
...
These places didn't care if an Armament was disabled, which could lead to unexpected behavior.
2017-08-22 20:55:46 +01:00
Paul Chote
dd709a2679
Revert "Have some activities count as idle activities"
...
This reverts commit ae111248f3 .
2017-08-10 12:22:28 +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
reaperrr
74437ed56c
Merge pull request #13178 from rob-v/ReturnHeliToNearestBase
...
Helis return to nearest base like Planes
2017-05-07 13:16:40 +02:00
reaperrr
7dddc7fc44
Make FallToEarth kill the actor instead of disposing it
2017-04-24 19:12:31 +02:00
rob-v
df07d89f9e
Helis return to nearest base like Planes
2017-04-22 15:53:05 +02:00
Oliver Brakmann
b50f15c645
Check for dead destination helipad in HeliReturnToBase
2017-04-17 19:31:53 +02:00
Oliver Brakmann
ff8f204cac
Check for dead destination airfield in ReturnToBase
2017-04-17 19:23:11 +02:00
abcdefg30
ae111248f3
Have some activities count as idle activities
2017-03-24 18:06:10 +01:00
Oliver Brakmann
9993a235a7
Convert ResupplyAircraft into a CompositeActivity
2017-01-22 20:42:19 +01:00
Oliver Brakmann
9b0780e87c
Make FlyAttack use child activities
2017-01-22 20:41:41 +01:00
Oliver Brakmann
e49b3d6458
Adjust existing activities for changed NextActivity semantics
...
To make sure existing checks against NextActivity don't check the parent activity by mistake
2017-01-22 20:41:37 +01:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
9ddfdc45b3
Introduce SoundType enum.
2016-12-23 11:34:23 +00:00
Oliver Brakmann
2c66ee8c13
Add native support for uninterruptible activities
...
This pattern occurs a few times throughout the code, so it makes sense to bake it into the Activity class itself.
2016-10-31 18:46:27 +01:00
abcdefg30
55143ced87
Fix HeliReturnToBase not exposing an host actor parameter
2016-10-03 14:56:52 +02:00
Paul Chote
34b10dcb77
Hack around the Lua API.
2016-09-26 17:48:25 +01:00