Paul Chote
d6d1f3a06d
Fix FrozenUnderFog / FrozenActor visibility consistency.
...
This fixes cases where both objects return visible / not
when queried at the wrong time during a tick.
2019-01-27 15:21:13 +01:00
Paul Chote
dc40a973e3
Allow attack orders to preempt move completion for turreted units.
2019-01-27 15:21:13 +01:00
Paul Chote
70f4c51a17
Add AttackMove workaround for Aircraft.
2019-01-27 00:19:50 +00:00
Paul Chote
0bfc487999
Fix target invalidation and reacquisition in AttackFollow.
2019-01-26 22:53:46 +00:00
Paul Chote
d03c5b1c48
Split Target.Recalculate into methods with and without invalidation.
...
TargetExtensions is moved into its own file.
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
Paul Chote
c627a59b54
Fix self parameter name in DrawLineToTarget.
2019-01-26 22:53:46 +00:00
Paul Chote
7d85c1e81f
Remove FrameEndTask from DrawLineToTarget.
...
This is no longer needed and causes ordering
issues when the unit becomes idle in the same
tick that SetTargetLine is called.
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
Paul Chote
635038aa0b
Disable bot logic during replays.
2019-01-26 21:33:47 +00:00
Paul Chote
d379555784
Remove Game.Debug messages from ValidateOrder.
2019-01-22 22:59:37 +00:00
Oliver Brakmann
c2cf8ba599
Add an interface to prevent actors from being spawned by SpawnMapActors
2019-01-07 10:13:50 +00:00
reaperrr
b05d246c48
Add BotDebug message for external unit build requests
...
For easier bot debugging of things like MCV- and harvester replacement.
2019-01-06 08:39:45 +01:00
reaperrr
3a1656c3dd
Remove unused BuildUnit overload from UnitBuilderBotModule
...
Unused and didn't check things like Buildable, so better just remove it.
2019-01-06 08:39:45 +01:00
reaperrr
137d3be346
Add plumbing for bots auto-replacing harvesters
...
If their number drops below refinery count.
2019-01-06 08:39:45 +01:00
reaperrr
e36ef57e35
Increase default scan interval for idle bot harvesters
...
Every 2 seconds (at default speed) should be enough.
2019-01-06 08:39:45 +01:00
reaperrr
481e5e03d8
Make bots deploy MCV on first tick
...
And use a boolean instead of counting ticks.
2019-01-06 08:39:45 +01:00
Paul Chote
f5d788f4fc
Prevent unit requests from stacking during production.
2019-01-04 21:14:20 +00:00
Paul Chote
5a8f7f1a5f
Increase squad calculation intervals.
...
These were unnecessarily short, increasing the
AI performance overhead, and making it difficult
for units to escape concave terrain features.
2019-01-03 02:04:08 +01:00
Paul Chote
3d9e877eb2
Disable rush attacks against enemy aircraft.
2019-01-03 02:04:08 +01:00
Paul Chote
8a6a68feef
Unify Squad enemy unit filtering.
2019-01-03 02:04:08 +01:00
Mustafa Alperen Seki
4578ea09ba
Add DamageTypes to Capture Sabotage
2019-01-02 20:04:06 +01:00
Mustafa Alperen Seki
eaa9b49793
Add Stance Support to GrantExternalConditionPower.
2019-01-01 23:05:56 +01:00
Clément Bœsch
3ec2f23109
Add Army value to player statistics
...
To be accounted as army, the unit needs to have
UpdatesPlayerStatistics.AddToArmyValue to true (false by default)
2019-01-01 18:25:44 +00:00
Paul Chote
4d56ecb3a8
Remove unused MaximumDefenseRadius parameter.
2019-01-01 12:43:10 +01:00
reaperrr
54c2894b4e
Split off last bot modules
...
And dissolve AI namespace.
There would have been so little left in Common.AI,
that keeping it made no sense anymore.
2018-12-31 10:56:01 +00:00
abcdefg30
9c4cb9091e
Change the setter of AttackBase.IsAiming to be public
2018-12-29 19:21:54 +01:00
abcdefg30
8689030f79
Add GrantConditionWhileAiming
2018-12-29 19:21:54 +01:00
Smittytron
a0089d97e6
Fix typo in CrateSpawner
2018-12-27 04:11:54 +01:00
Mustafa Alperen Seki
00faccdecc
Fix LandOnCondition causing stopping after changing altitude.
2018-12-26 17:44:45 +01:00
Paul Chote
b41c178cb9
Revert "Units that have turrets while deployed now move their turrets back to their initial positions before undeploying"
...
This reverts commit d34bea293505f152d5f5aae3806dfcf36104945b.
2018-12-26 16:35:26 +01:00
reaperrr
be310ab6a6
Streamline resource anim traits
...
- Replaces WithSiloAnimation with
WithResourceLevelSpriteBody.
PlayFetchIndex on a With*Animation trait conflicts
with the animation concept, as it's bound to conflict
with pretty much all 'normal' animation traits and
blocks progress on the animation priority system.
We also already have multiple similar SpriteBody traits,
like WithGateSpriteBody and WithWallSpriteBody.
- Rename WithResources to WithResourceLevelOverlay
Make name more accurate and consistent with sprite body
equivalent.
Also fix TS silo yaml setup (bleed setup stems from times
before WithResources was introduced).
2018-12-24 21:29:42 +13:00
reaperrr
305d82f887
Replace WithChargeAnimation with -SpriteBody
...
PlayFetchIndex on a With*Animation trait conflicts with the animation
concept, as it's bound to conflict with pretty much all 'normal'
animation traits and blocks progress on the animation priority system.
We also already have multiple precedent SpriteBody traits of similar kind,
like WithGateSpriteBody and WithWallSpriteBody.
2018-12-24 21:29:42 +13:00
reaperrr
7ed67338f3
Allow forcing sprite body Z position to ground
2018-12-23 17:16:06 +13:00
reaperrr
6db27b1839
Split off CaptureManagerBotModule
...
from HackyAI.
Note: This isn't used in any official mod right know,
and known to be bugged on bleed already.
2018-12-22 17:42:53 +01:00
Oliver Brakmann
e71a31925f
Require explicit implementation of INotifyObjectivesUpdated
2018-12-22 16:39:06 +13:00
reaperrr
04c34741c8
Extract BaseBuilderBotModule from HackyAI
2018-12-19 21:50:54 +13:00
Paul Chote
224377f078
Track visibility modifiers on FrozenActors.
2018-12-17 22:19:26 +01:00
Paul Chote
5f79c31a57
Add AutoTarget support for FrozenActors.
2018-12-17 22:19:26 +01:00
Paul Chote
c34dd4b824
Allow Attack activities to target FrozenActors directly.
...
Removing the legacy FrozenActor to Actor workaround
fixes a number of long-standing bugs.
This also prevents units from losing their target when
it transforms into a different actor type.
2018-12-17 22:19:26 +01:00
Paul Chote
2ac7e451b4
Remove AttackBase.IgnoresVisibility.
...
This was a workaround for D2K sandworms, which is
now implemented using a custom attack activity.
2018-12-17 22:19:26 +01:00
Paul Chote
8eeb6d68e7
Tweak FrozenActorLayer queries:
...
- FrozenActorsInRegion now filters for valid and (optionally) visible FAs
- Add new FrozenActorsInCircle to mirror World.FindActorsInCircle.
The first change means that SupportPowerDecision now correctly ignores
FrozenActors that the AI has not discovered.
2018-12-17 22:19:26 +01:00
Paul Chote
3e490e5843
Cache FrozenActorLayer on the Player object.
...
This avoids unnecessary trait queries.
2018-12-17 22:19:26 +01:00
Paul Chote
4723e5ddb9
Expose common actor Inits in the map editor.
2018-12-08 22:53:13 +01:00
Paul Chote
f6768fe624
Remove legacy editor actor properties plumbing.
2018-12-08 22:53:13 +01:00
Ivaylo Draganov
9be7298311
Remove airstrike/paradrop beacon when the whole squad is shot down
2018-12-08 22:30:17 +01:00
Paul Chote
d9f8afdbe5
Add GrantExternalConditionToProduced trait.
2018-12-08 15:27:06 +01:00
reaperrr
20ba45d467
Remove queueing HeliFlyCircle from AutoCarryall
2018-12-05 09:20:58 +13:00
reaperrr
ac3e601edf
Use INotifyIdle on Aircraft
...
For now only to trigger landing or circling.
2018-12-05 09:20:58 +13:00