RoosterDragon
8e89a6a696
Simplify names, remove unused usings, remove redundant casts.
2016-01-17 21:35:36 +00:00
reaperrr
d93a3a61ee
Use DistanceFromEdge instead of OuterRadius for CreateEffectWarhead's hit check
2016-01-01 15:52:13 +01:00
reaperrr
c02206601c
Use airMargin in CreateEffectWarhead's water check
...
Closes #10350 .
2016-01-01 15:43:34 +01:00
Huw Pascoe
a8299221db
Integrated HitShapes
...
Integrated hit shapes with field loader and warhead calculations.
2015-12-28 23:25:35 +00:00
RoosterDragon
dcf375a412
Store Targetables in Actor.
...
This can be used to avoid several lookups for these traits, as well as allow Actor to provide specialised methods to deal with target types efficiently. This also reduces some code duplication.
2015-12-12 20:55:17 +00:00
Taryn Hill
9b9d3c8af5
Add DebugOverlayColor to Warhead
...
This allows us to render WarheadDebugOverlay circles in a
color-per-warhead fashion.
2015-12-09 20:48:10 -06:00
atlimit8
cdb2da33be
CreateEffectWarhead target types support
2015-11-08 12:54:17 -06:00
atlimit8
def564e97c
reorganize CreateEffectWarhead.GetImpactType(World world, CPos cell, WPos pos)
2015-11-08 12:54:14 -06:00
Zimmermann Gyula
0f14339763
Fix (HealthPercentage)DamageWarheads ignoring stances/TargetTypes.
...
Moves the IsValidAgainst check from SpreadDamage level to Damage level
and adds a duplication to HealthPercentageDamageWarhead.
2015-11-01 21:06:54 +01:00
reaperrr
731875c270
Reduce default warhead TargetExtraSearchRadius
...
There aren't any actors in any shipping mod where a health radius larger
than 1c512 would be feasible, so no need to make the default larger than necessary.
2015-10-26 16:24:16 +01:00
reaperrr
fa29b16967
Skip DoImpact if actor has no Health trait
2015-10-25 13:23:21 +01:00
reaperrr
92c05912e1
Remove negligible stages from default warhead Falloff
...
- reduces situations where infantry goes prone even though the impact was rather far away and damage absolutely negligible
- saves a little bit of performance by reducing the total area of effect, resulting in lower average number of calls to Health.InflictDamage at a given Spread value
2015-10-25 11:55:47 +01:00
atlimit8
6992decad0
InvalidOperationException => YamlException in SpreadDamageWarhead
2015-10-23 02:37:39 -05:00
atlimit8
1e890a921f
Merge pull request #9709 from reaperrr/unitsat-actorsat
...
Rename ActorMap *UnitsAt* occurences to *ActorsAt*
2015-10-21 09:56:41 -05:00
reaperrr
2f69711341
Rename ActorMap *UnitsAt* occurences to *ActorsAt*
...
These enumerate actors in general, not just mobile actors (which the term 'unit' usually refers to).
2015-10-16 00:07:06 +02:00
Huw Pascoe
c95fc793e4
Moved Health trait to OpenRA.Mods.Common
...
In preparation for custom hitboxes.
2015-10-12 01:56:00 +01:00
Oliver Brakmann
42b04b8a6f
Merge pull request #9450 from atlimit8/SpreadDamageWarheadRangeOnRulesetLoaded
...
SpreadDamageWarhead Range on ruleset loaded
2015-10-11 15:28:19 +02:00
Matija Hustić
c55141c91c
Enabled multiple timed upgrades from single source.
...
This makes the UpgradeManager support requests to grant a timed
upgrade multiple times from a single source.
GrantUpgradeWarhead modified to take advantage of this.
2015-10-09 22:41:23 +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
e86eea383a
SpreadDamageWarhead.Range loading
2015-10-02 13:42:26 -05:00
Huw Pascoe
cfd179b0c6
Added warhead visualization to combat debug overlay.
2015-10-02 02:48:21 +01:00
RoosterDragon
1b1e4f1dd2
Merge pull request #9174 from reaperrr/radius-explode
...
Customizable impact victim scan radius
2015-09-30 20:28:17 +01:00
abcdefg30
7a0a618169
Merge pull request #9309 from reaperrr/missile-airfix
...
Add margin to CreateEffectWarhead air check
2015-09-28 17:33:46 +02:00
Matthias Mailänder
defba7aece
lint check player palette reference
...
and tell which actor is affected when a problem is found
2015-09-27 14:57:58 +02:00
reaperrr
74da2a2c72
Add TargetExtraSearchRadius to SpreadDamageWarhead
...
Allows to customize the victim scan radius. Necessary to ensure that actors where health radius is close enough, but CenterPosition isn't, properly receive damage.
2015-09-25 15:11:06 +02:00
Paul Chote
ef55d646f7
Unstatic the Sound class.
2015-09-20 14:11:06 +01:00
atlimit8
09984683a7
Add ActorInfo.TraitInfo[OrDefault]<T>() requiring ITraitIfo types
2015-09-19 09:56:14 -05:00
reaperrr
0b9fb4420b
Add margin to CreateEffectWarhead isAir check
2015-09-11 16:20:25 +02:00
atlimit8
8250f223c4
More HashSet trait fields & Lint support
2015-09-05 16:59:30 -05:00
RoosterDragon
901e604cf3
Replace arrays with sets.
...
In places where arrays were being treated as a set, just create a set directly. This reveals the intention of such collections better, and also improves performance by allowing set based methods to be used.
2015-09-03 20:09:24 +01:00
atlimit8
7e31a249ab
Load HashSets in OpenRA.Mods.Common/Warheads/Warhead.cs directly from MiniYaml
2015-09-03 13:27:58 -05:00
atlimit8
fadfd179cb
Cache FrozenActor ITargetable.TargetTypes union
2015-09-02 23:19:00 -05:00
atlimit8
f5c3575c5a
Support multiple ITargetable traits
2015-09-02 23:14:40 -05:00
reaperrr
7f7031d5c8
Update outdated description
2015-09-01 13:52:09 +02:00
Zimmermann Gyula
4aba64cc0f
Fix armors.
2015-09-01 13:52:08 +02:00
reaperrr
508c99655c
Made Armor upgradable
2015-08-25 20:12:37 +02:00
reaperrr
277ac04f85
Remove legacy 0% = not targetable assumption
2015-08-09 01:11:10 +02:00
Taryn Hill
22ffeb2a12
Use DistanceAboveTerrain in CreateEffectWarhead
2015-08-01 11:48:50 -05:00
reaperrr
89f3718aa7
Move Armor trait to Mods.Common
2015-07-27 21:12:03 +02:00
RoosterDragon
3a0eb5554e
Provide HasStance extension method for Stance enum, to avoid overhead of HasFlag method.
2015-07-15 20:40:38 +01:00
Matija Hustić
6f54fe7e5d
Upgrade granting warheads register as sources.
2015-07-14 02:54:42 +01: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
penev92
fe94b7686e
Introduce IWarhead and move Warhead to Mods.Common
2015-07-06 22:24:20 +03:00
Pavel Penev
082b1ab1c9
Merge pull request #8558 from GraionDilach/grantupgrade-warhead-checkvalidity
...
Add target validation to GrantUpgrade warheads.
2015-07-02 23:34:28 +03:00
Zimmermann Gyula
0e3ba0c72e
Add target validation to GrantUpgrade warheads.
2015-06-25 16:06:35 +02:00
penev92
fbbd9a7eaa
Add UpgradeGrantedReferenceAttribute
2015-06-21 11:06:35 +03:00
Matthias Mailänder
ea5003cd2d
add new long WRange.RangeSquared to avoid integer overflows
2015-05-31 23:51:30 +02:00