dnqbob
3e0daa62c4
Fix Target.Invalid comparion bug in AutoTarget
2023-09-01 20:28:20 +03:00
Gustas
d4e6815f64
Fix AutoTarget ignoring frozen actor bot targeting hack
...
Mirrors check of the function Recalculate which is found it TargetExtensions class
2023-07-30 20:32:18 +02:00
Gustas
3207d01cf2
Consider AutoTarget ScanRadius when attack moving
2023-07-25 19:48:57 +02:00
RoosterDragon
277699cbd5
Fix CA1822
2023-06-06 11:51:47 +03:00
RoosterDragon
8a285f9b19
Fix IDE0090
2023-04-08 16:51:51 +03:00
Thomas Christlieb
9e081763ad
fix stance icon not updating when selecting units
2023-03-28 22:09:07 +03:00
penev92
bde13a8572
Fixed a bad merge
2023-03-14 17:43:32 +01:00
RoosterDragon
98c4eaca83
Fix IDE0032
2023-03-14 13:41:25 +02:00
Guillermoqnk
b3d468aca1
Fix return fire logic ignoring AutoAttack priotities
...
Added brand new feature
Unnecessary assignmet removed
2023-03-10 20:18:10 +02:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
Matthias Mailänder
19ecddcd86
Enforce use of 'var' instead of explicit type.
2022-12-28 23:02:04 +01:00
abcdefg30
d8349a429a
Remove unnecessary uses of Exts.IsTraitEnabled
2022-10-14 13:50:57 +03:00
abcdefg30
0134f63f4d
Fix actors with AttackFollow moving away from their targets on amove
2022-08-06 15:38:46 +02:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Matthias Mailänder
0e7ad43425
Remove unused parameters.
2022-04-01 23:30:26 +02:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
Paul Chote
d52ba83f96
Replace terniary null checks with coalescing.
2021-03-08 18:11:25 +01:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
Paul Chote
fb0031d34a
Rename remaining Stance references to PlayerRelationship.
2021-02-04 23:14:09 +01:00
Paul Chote
db2fded24d
Fix AutoTarget.ChooseTarget ignoring AttackBase.TargetFrozenActors.
2021-01-21 19:25:07 +01:00
abcdefg30
aac3174efc
Rename Stances to Relationships in the yaml api
2020-12-11 17:13:02 +01:00
Paul Chote
77ffc20a5f
Convert Attack*.FacingTolerance to WAngle.
2020-11-30 16:39:48 +01:00
abcdefg30
10f645bf77
Replace usage of the Stances dict by a method call
2020-11-14 11:04:41 +00:00
abcdefg30
eda9966d27
Rename Stance to PlayerRelationship
2020-11-14 11:04:41 +00:00
teinarss
13581c030d
Use in parameter for Target
2020-11-06 22:02:24 +01:00
abcdefg30
ad3722e19f
Add support for circumventing the target scan limit in AttackMove
2020-09-12 00:30:33 +02: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
c6c3a8c60d
Make ActorPreview and EditorActorPreview wrap ActorReference.
2020-06-19 17:57:56 +02:00
Paul Chote
b856613194
Add ISingleInstanceInit interface.
...
Inits that are logically singletons (e.g. actor
location or owner) should implement this interface
to avoid runtime inconsistencies.
Duplicate instances are rejected at init-time,
allowing simpler queries when they are used.
2020-06-19 17:57:56 +02:00
Paul Chote
6adf45bcb4
Convert IFacing.Facing and TurnSpeed to WAngle.
2020-06-12 18:35:41 +02:00
Paul Chote
b38018af9c
Replace IActorInit with an abstract class.
...
A shared ValueActorInit<T> is introduced to reduce duplication
in the most common init cases, and an ActorInitActorReference
allow actors to be referenced by map.yaml name.
2020-06-08 19:18:38 +02:00
Paul Chote
7c6ec577dc
Rewrite ActorInit queries.
2020-05-28 19:04:53 +02:00
atlimit8
259c8d2c98
Merge ConditionManager trait directly into Actor
2020-05-09 15:46:11 +02:00
Paul Chote
4a6fefa434
Disable idle scanning on RA planes.
2020-03-02 22:22:56 +01:00
Paul Chote
16e0ea611e
Revert "Fix AttackFollow ignoring allowMove flag when auto-targeting."
...
This reverts commit 3e116060cfc0a3e46563716c3e594a4ba3051b93.
2020-03-02 22:22:56 +01:00
Paul Chote
28f7604172
Reset nextScanTime only when actually scanning for targets.
2020-02-22 16:30:07 +01:00
Paul Chote
ab196a23e6
Fix AttackFollow ignoring allowMove flag when auto-targeting.
2020-02-14 17:30:38 +01:00
Paul Chote
51870a471a
Add AttackSource enum.
2020-01-18 16:38:53 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
abcdefg30
905e02b765
Prevent a crash in AutoTarget.HasValidTargetPriority
2019-12-14 17:17:36 +01:00
abcdefg30
a586f10875
Don't allow movement for actors without IMove
...
However, this does not check if any existing IMove traits are enabled.
2019-11-08 23:31:59 +01:00
abcdefg30
980c0c9cd4
Fix actors returning fire at invisible attackers
2019-11-08 23:31:59 +01: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
Paul Chote
6eaf615798
Fix conditional traits that incorrectly override INotifyCreated.
2019-07-14 00:41:59 +02:00
Paul Chote
78a70be0d4
Fix and enable SA1133, SA1134 style rules.
2019-05-24 10:47:57 +02:00
Paul Chote
3ca9d4b773
Drop targets when switching to a more restrictive stance.
2019-05-21 15:52:55 +02:00
Paul Chote
62b5d22e53
Add INotify(Activity)StanceChanged interfaces.
2019-05-21 15:52:55 +02:00
Paul Chote
55f6744cf3
Replace IPreventsAutoTarget with IDisable(Enemy)AutoTarget.
...
This allows traits on the attacking unit to suppress auto targeting
and makes the distinction between the two interfaces clear.
2019-05-19 13:23:01 +02:00
tovl
9abf715fd7
Allow opportunity fire for aircraft.
2019-05-04 23:40:16 +02:00