Paul Chote
8f7426f579
Reduce duplication around AttackFollow's targets.
2019-06-29 23:28:23 +02:00
Paul Chote
3ca9d4b773
Drop targets when switching to a more restrictive stance.
2019-05-21 15:52:55 +02:00
Paul Chote
44c5d38a0e
Disable AutoTarget if targeting a persistent fallback.
2019-05-19 13:23:01 +02:00
tovl
9abf715fd7
Allow opportunity fire for aircraft.
2019-05-04 23:40:16 +02:00
tovl
f16ff9eaa0
Base AttackAircraft on AttackFollow and get rid of SequenceActivities.
2019-05-04 23:40:16 +02:00
tovl
30de4df749
Replace SequenceActivities with ChildActivity in several activities.
2019-03-25 20:22:35 +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
8b618ef7bc
Fix maximum range estimation for stationary turrets.
2019-03-02 18:16:12 +01:00
Paul Chote
49621bebd0
Abort activities when we don't know how close to move to a target.
2019-02-09 19:20:10 +01:00
Paul Chote
c26e77552e
Allow turreted actors to acquire targets while doing other activities.
2019-02-03 18:07:02 +01:00
Paul Chote
012b17b974
Implement a secondary target-of-opportunity for AttackFollow.
2019-02-03 18:07:02 +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
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
b2d960ec19
Pass target line color to inner move activities.
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
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
reaperrr
0bff9e9119
Make some Attack* methods/classes public
...
Instead of protected, because some 3rd-party mods rely on these being
public.
2018-07-28 21:35:42 +02:00
reaperrr
bd38fe4926
Add INotifyAiming interface
...
And trigger notifications from Attack* traits.
2018-06-03 12:23:54 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
Paul Chote
b898b5001a
Rename AttackBase.IsAttacking to IsAiming to make its uses and assumptions clear.
2017-11-26 15:58:00 +01:00
reaperrr
456d32f3eb
Make Attack* traits PausableConditional and replace IsDisabled with IsTraitDisabled checks
2017-11-25 03:55:56 +02:00
reaperrr
28e1f391e0
Make ITick require explicit implementation
2017-09-16 15:51:37 +02:00
reaperrr
94fa24088b
Add dedicated TDGunboat traits
...
And get rid of Mobile.OnRails hack.
2017-07-23 15:06:03 +02:00
Paul Chote
45b13dabfb
Explicitly implement interfaces in AttackBase.
2017-05-29 06:27:19 -05:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
2024f86290
Fix Turreted units not dropping cancelled targets.
2016-04-03 10:22:53 +01:00
Matthias Mailänder
ecbd1a0247
Merge pull request #9509 from penev92/upgradeTickTank
...
Convert Tick Tank to use DeployToUpgrade + some fixes
2016-02-23 23:33:38 +01:00
Pavel Penev
17ef6efefc
Fix AttackFollow (and consequently AttackTurreted) firing at old target when the trait is reenabled
...
Most noticeable by ordering a deployed Tick Tank to fire at the ground, then undeploying it and deploying it again.
2016-02-22 02:44:28 +02: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
Oliver Brakmann
ce62e456d7
Fix TD gunboat attack behaviour
2016-02-14 21:28:50 +01:00
teees
dc6d31cec8
Fix turreted immovable actors not dropping targets that are out of range
2016-02-14 21:28:50 +01:00
Paul Chote
0039a2bdbf
Split out an ActivityUtils class.
2016-01-19 23:34:13 +00:00
Matija Hustić
d94c645046
First step in the attack mechanism's refactor.
...
Enabled firing multiple armaments at a target simultaneously.
Each armament defines own cursor for targeting.
The force attack modifier influences armament choice for target.
Autotargeting modified to handle firing multiple armaments simultaneously.
As a consequence, healers (medics) no longer require separate Heal
activity and AttackMedic and AutoHeal traits.
2015-10-06 01:46:55 +02:00
atlimit8
74a9dc6793
Added IRangeMultiplier
2015-09-24 16:37:43 -05: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
reaperrr
398f02c5db
Remove redundant ISync and ITick from Attack* traits
...
ISync is implemented by AttackBase, so there's no need for other Attack traits to implement it again.
AttackTurreted inherits AttackFollow, which already implements ITick.
2015-07-29 17:45:30 +02:00
Matthias Mailänder
413baf9d8b
rename WDist.Range to WDist.Length
2015-07-09 10:55:38 +02:00
Matthias Mailänder
7447e0bf93
rename WRange to WDist
2015-07-09 10:55:38 +02:00
pevers
17fec82348
fixed taking over sam/pillbox/etc. to stop firing
...
fixed issue with powered down samsites
more optimization
very small optimization
undo changes to powerdown samsite fixes
refixed powered down sam sites
removed debug line
redid the fix in another approach by queueing a sell activity on the top of the queue. This was already present but didn't always work
fixed line I removed
prevented attack activity to be queued when actor is disabled
another style fail of me
reverse and queueactivity activities are now executed on top of the queue for a sell action
2015-03-04 18:13:33 +01:00
Oliver Brakmann
75a9848468
Merge pull request #7276 from penev92/bleed_fixAttack
...
Minor targeting cleanup
2015-01-12 18:48:18 +01:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
penev92
1c3dc388ea
Remove redundant (and possibly risky) AttackFollow.CanAttack()
2015-01-06 22:07:41 +02:00
Matthias Mailänder
bc3acfeee7
StyleCop clean OpenRA.Game
2015-01-04 15:38:54 +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