RoosterDragon
082ea6ba73
Refactor animation classes.
...
Specify pause function in constructors of Animation if required, and remove the unused pause function from AnimationWithOffset.
Cleanup Animation.cs and reduce code duplication.
2015-12-05 16:58:26 +00:00
reaperrr
72ec431766
Add RenderUtils
...
With ZOffsetFromCenter as first feature so render traits don't have to use it from WithTurret(Overlay)
2015-11-28 20:47:17 +01:00
Oliver Brakmann
16de21d41c
Merge pull request #10018 from pchote/fix-spy-cursor
...
Restore targeting cursor when mousing over a disguised enemy spy.
2015-11-21 20:57:12 +01:00
Paul Chote
65a7f2e863
Restore earlier spy targeting behaviour.
2015-11-21 18:06:47 +00:00
Pavel Penev
d235ea3a52
Don't attack actors that you can't see
2015-11-21 19:33:10 +02:00
Paul Chote
124c0ea041
Make CanTarget modifiers a ref parameter.
2015-11-16 20:38:53 +00:00
Pavel Penev
000c701414
Fix actors ignoring Disguise
2015-10-23 00:27:43 +03:00
Oliver Brakmann
244093834c
Merge pull request #9447 from atlimit8/CacheFireportsForAttackGarrisoned
...
Cache AttackGarrisoned fire ports using IRulesetLoaded
2015-10-11 15:26:38 +02: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
dc54841bad
cache AttackGarrisoned fire ports using IRulesetLoaded
2015-10-02 13:40:21 -05: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
Paul Chote
ef55d646f7
Unstatic the Sound class.
2015-09-20 14:11:06 +01: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
4fa20e78fa
Merge pull request #9304 from atlimit8/Fix_AttackBase_GetMinimumRange
...
Make AttackBase.GetMinimumRange() return WDist.Zero if there are no available armaments
2015-09-18 01:26:35 +02:00
atlimit8
45112cfa76
Remove redundant IBodyOrientation[Info] & replace with BodyOrientation[Info]
2015-09-15 22:57:08 -05:00
atlimit8
6ab32d75bf
Make AttackBase.GetMinimumRange() return WDist.Zero if there are no available armaments
2015-09-08 23:36:05 -05:00
Matthias Mailänder
118782a85e
check palette references
2015-08-17 21:36:45 +02: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
atlimit8
1bcc07ce69
Add property requirements to safe traits
2015-07-12 12:44:30 -05:00
Matthias Mailänder
56e9bcd96e
rename RangeSquard to LengthSquared
2015-07-09 21:16:01 +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
penev92
c3fcd9a8a1
Some cleanups
2015-07-06 22:24:50 +03:00
atlimit8
a9908bffb4
UpgradeManager after IUpgradables
2015-06-28 10:24:00 -05:00
Matthias Mailänder
50e5e9df24
check voice actor references
2015-06-20 12:09:58 +02:00
Matthias Mailänder
ea5003cd2d
add new long WRange.RangeSquared to avoid integer overflows
2015-05-31 23:51:30 +02:00
Matthias Mailänder
d99ae3bcb9
split render building/overlay and play sound for charge
...
to add the Tiberian Sun Nod Obelisk
tick slightly faster
tweak the local offsets
2015-05-09 19:56:15 +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
Paul Chote
4597895ea3
Add upgrade support to AttackBase.
2015-03-31 22:23:43 +01:00
Matthias Mailänder
737a0e0b67
move common traits
2015-03-15 18:25:28 +01:00
Oliver Brakmann
190d197613
Merge pull request #7544 from delftswa2014/bugfix/sam_site_friendlyfire
...
Friendly fire fixes and sam sites
2015-03-08 16:16:14 +01: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
Bynnar18
0abe8f9b2b
Fixes issues with support powers and adds property to all IOrderGenerator classes to determine priority over selection in the left-click order scheme.
2015-03-01 14:58:19 -06:00
penev92
e6f1c6b460
Enhance sandworm targeting logic by having actors produce noise
2015-01-14 21:26:55 +02:00
penev92
e42cf58cb1
Add IgnoresVisibility field to AttackBase
2015-01-14 21:26:54 +02: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
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
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