Commit Graph

26 Commits

Author SHA1 Message Date
Hellhake
b6410bc1e0 Fix StyleCop warnings in OpenRA.Mods.RA 2015-01-02 14:39:49 +01:00
reaperrr
d074fb4471 Move *ResourceWarheads to Common, move warheads to Common.Warheads namespace 2014-12-26 21:38:50 +01:00
reaperrr
9dfd369446 Move some Building traits and related elements to Mods.Common 2014-12-26 21:38:49 +01:00
reaperrr
ffca040c47 Moves traits from Common and Power namespaces to Common.Traits namespace 2014-12-11 23:21:31 +01:00
reaperrr
7470391c5d Move RA World traits, FrozenUnderFog Modifier and various other traits into Traits 2014-12-03 12:52:17 +01:00
atlimit8
bbd54cb32f Added IDisabledTrait & rewrote upgrade code using a level-based approach.
Upgradeable traits are notified whenever an upgrade of their declared types are granted or revoked.  The traits maintain their own internal level counter, which is then used to enable or disable the trait functionality.  A trait can register for multiple upgrade types which then all affect the internal level counter.

	IDisabledTrait for identifying (and filtering) disabled traits
	UpgradableTrait provides an abstract base for traits to support upgrade levels
	Added IDisabledTrait support to GlobalButtonOrderGenerator

	Includes rework by pchote with alterations.
2014-11-26 05:45:26 -06:00
reaperrr
52bb0e8c6b Move some Warheads to Mods.Common 2014-11-07 15:15:47 +01:00
Paul Chote
5050748afe Fix invalid targets invalidating GrantUpgradeWarhead for all nearby actors. 2014-10-07 20:21:28 +13:00
reaperrr
c741fcedec Move Smoke effect, ContrailFader effect, SmudgeLayer and LeaveSmudgeWarhead to Mods.Common 2014-10-04 18:48:07 +02:00
reaperrr
a7d3ff973e Move Explosion effect to Mods.Common 2014-10-03 23:08:41 +02:00
Paul Chote
bb44d76762 Add a GrantUpgradeWarhead and initial TS EMP implementation. 2014-10-01 21:29:21 +13:00
Paul Chote
3c2383ebc6 Don’t crash if a warhead smudge extends outside the map. Fixes #6548. 2014-09-24 22:34:02 +12:00
Paul Chote
32e099d60a Fix inner range filtering in HealthPercentageDamageWarhead. 2014-08-23 17:14:12 +12:00
Paul Chote
50fea12a80 Remove now-redundant AbsoluteSpreadDamageWarhead. 2014-08-23 17:14:11 +12:00
Paul Chote
97c28e1353 Remove fp calculations from SpreadDamageWarhead. 2014-08-23 17:14:11 +12:00
Paul Chote
227a523878 Further warhead streamlining. 2014-08-23 17:14:10 +12:00
Paul Chote
57ba1b54b4 Convert weapon plumbing to use integer damage modifiers. 2014-08-23 17:14:10 +12:00
Paul Chote
8e8e02dae8 Move warheads into mod code. 2014-08-23 17:14:10 +12:00
Paul Chote
34ca30c9f1 Remove more unnecessary plumbing. 2014-08-23 17:14:10 +12:00
UberWaffe
0ebe1c2c6a Made Effect, Resource and Smudge warheads return 0% effective against actors. 2014-08-16 10:58:04 +02:00
reaperrr
ef54f011bb Change ImpactTypes from array to bitfield approach. 2014-08-13 11:45:58 +02:00
reaperrr
09b887abf2 Streamline isValid check. 2014-08-05 13:19:26 +02:00
reaperrr
8be7f127d9 Fix descriptions. 2014-08-05 13:11:30 +02:00
reaperrr
8798658b35 New Explosion system code changes. 2014-08-04 23:24:51 +02:00
UberWaffe
0f8023217d #6030 Regression fix. CreateEffectWarhead effect location and water impact sound. 2014-08-04 18:09:52 +02:00
UberWaffe
c972b39687 Custom Warheads refactor
Changes included:

Warhead code split out of weapon code and refactored.
Warhead functionality now split into several classes, each handling one effect/impact.

Additional custom warheads can now be defined and called via yaml.
Custom warheads inherit the abstract class Warhead,
which provides target check functions.

Custom warheads have to define their own impact functions,
and can also define their own replacement for check
functions.
2014-08-03 17:10:44 +02:00