reaperrr
2cdae0b380
Merge HeliReturnToBase into ReturnToBase
2019-04-13 18:47:08 +02:00
tovl
8ee11028d7
Replace SequenceActivities with ChildActivity in several air activities.
2019-03-30 18:54:30 +00: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
Paul Chote
8efa0da54d
Fix target invalidation and reacquisition in (Fly|Heli)Attack.
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
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
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
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
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
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
34b10dcb77
Hack around the Lua API.
2016-09-26 17:48:25 +01:00
Oliver Brakmann
9fbda6b598
Fix helicopters not taking off when their target got covered by shroud
2016-09-12 23:01:16 +02:00
Oliver Brakmann
7f64495d6f
Make aircraft continue attack on same target after re-arming
2016-09-04 21:31:05 +02:00
reaperrr
40e5dfbedb
Fix helicopters not returning when all valid weapons are out of ammo
...
They now return if all weapons are invalid (which includes those that are otherwise valid, but out of ammo) and at least one AmmoPool needs reloading at RearmBuilding.
2016-06-23 14:47:42 +02:00
reaperrr
4f55b088eb
Check if weapon without self-reloading is out of ammo when deciding validity
...
This should prevent attacking helicopters (or other actors) staying at the range to target of a weapon that is out of ammo and needs manual reloading at a RearmBuilding or via upgrades.
2016-06-23 14:47:41 +02:00
reaperrr
2f1a6e8807
Add maximum and minimum range vs. target checks
...
This adresses the issue that actors would ignore the validity of weapons when deciding the attack distance versus a target. This could result in actors staying out of range of a weapon valid versus target if they carried a weapon with higher range but invalid versus target.
2016-06-16 20:39:45 +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
Paul Chote
0039a2bdbf
Split out an ActivityUtils class.
2016-01-19 23:34:13 +00:00
Paul Chote
3b18c7815d
Remove Util.GetFacing.
2016-01-16 22:38:17 +00:00
Pavel Penev
0ee38de4bb
Rename HeliReturn
...
Rename HeliReturn to HeliReturnToBase to keep somewhat with the convention established for Plane- against Heli- oriented traits.
2015-10-01 20:15:50 +03:00
Pavel Penev
8a44366667
Merge Plane and Helicopter into Aircraft
2015-10-01 20:15:41 +03:00
atlimit8
8162fa27ab
Add ActorInfo.HasTraitInfo<T>() requiring ITraitInfo types
2015-09-19 09:49:24 -05:00
atlimit8
85fab45451
Remove Actor.HasTrait<T>()
2015-09-19 09:49:23 -05:00
pevers
6ed0273656
Actors will lose targets and AI won't follow indefinitely
2015-06-28 19:11:53 +02:00
RoosterDragon
fb0cab7481
Cache results of TraitsImplementing calls.
...
If a class is caching the TraitsImplementing enumerable, instead cache the results of enumerating it to an array. The avoids having to enumerate the sequence each time it is needed.
2015-04-25 20:42:27 +01:00
reaperrr
7ddd6aab93
Make helicopters move backwards when target is too close
...
'Too close' as in closer than weapons' MinRange.
2015-04-08 00:51:24 +02:00
reaperrr
1e9d1a6cb7
Cache trait look-ups in the constructor where possible for Air activities/traits
2015-03-27 13:47:04 +01:00
reaperrr
38d5163062
Refactors LimitedAmmo to AmmoPool.
...
Removes Reloads trait.
This enables adding multiple AmmoPools via @ differentiators and
Name which adds the possibility to assign each armament to a specific
ammo pool.
Furthermore, this moves all Reloads functionality onto AmmoPool.
Now a combination of all three is possible on a single actor: no limited
ammo, limited ammo that can reload on its own, and limited ammo which
needs to be reloaded at a rearm actor.
Additionally moves RearmSound from Minelayer to AmmoPool.
2015-03-26 23:21:01 +01: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