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
0a57fbda3c
Prefer target to lastVisible target if it is visible.
2019-02-03 16:32:25 +01:00
Paul Chote
7c52a6f498
Fix target invalidation and reacquisition in Attack.
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
6fc291a634
Disable target recalculation for bots.
...
This fixes bot-controlled units freezing when they
lock on to units that aren't visible.
2019-01-03 02:04:08 +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
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
Paul Chote
ea05221180
Count AttackStatus.NeedsToTurn as valid for AttackBase.IsAttacking.
2017-11-26 15:58:00 +01:00
Paul Chote
1376ad674e
Remove Player.CanViewActor and .CanTargetActor.
2017-11-03 09:56:00 +01:00
forcecore
d1328212c6
AttackFrontal's FacingTolerance is now in effect
2017-08-07 10:26:26 +02:00
Forcecore
801796b184
FIX game hanging when units with 0 min-range attack units at 0 range.
...
Fixes #13307
2017-07-12 20:51:35 +02:00
reaperrr
33e8bf9928
Adapt Attack logic to Weapon.TargetActorCenter
2017-06-24 11:24:17 +01:00
reaperrr
da7433a95f
Add plumbing for targeting of target center instead of closest targetable position
...
Note: Projectiles that can track their target need minor additional changes, but for InstantHit (which already implemented support for this) and unguided projectiles (Bullet, GravityBomb) this commit is already sufficient.
2017-06-15 01:32:37 +02:00
reaperrr
6a212eea53
Make attacking actors/turrets face the targeted position
2017-06-05 14:22:47 +02:00
Paul Chote
2bd5a392d1
Add plumbing for custom movement layers.
2017-01-29 18:58:33 +00:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06: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
07947179cd
Don't crash on multiple Attack* traits
...
This is important for actors that use upgrades to switch between attack types.
2016-02-22 02:44:25 +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
teees
e95cb7540d
Fix 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
Paul Chote
3b18c7815d
Remove Util.GetFacing.
2016-01-16 22:38:17 +00:00
RoosterDragon
d0c23ef2dd
Prevent redundant enumerations in Attack.InnerTick.
...
The armaments variable is enumerated several times, but the results won't change. If we cache it straight away we can improve performance.
2015-12-12 20:55:23 +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
527675db8d
Attack activities use armaments directly through constructor
2015-09-24 16:17:06 -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
Matthias Mailänder
7447e0bf93
rename WRange to WDist
2015-07-09 10:55:38 +02:00
Paul Chote
0677c309f3
Move Shroud.IsTargetable to Player.
2015-06-19 22:02:08 +01:00
penev92
e42cf58cb1
Add IgnoresVisibility field to AttackBase
2015-01-14 21:26:54 +02:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
RoosterDragon
a6cda967c2
Formatted all files.
...
Automatically formatted all files via VS. This generally corrects indentation, removes trailing whitespace and corrects misplaced tabs or spaces. Manually tweaked a few files where required.
2015-01-06 21:28:50 +00: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