Commit Graph

48 Commits

Author SHA1 Message Date
Smittytron
b8b1a4930c Change BarrelExplode CreateEffect to large_napalm 2021-02-05 23:41:03 +01:00
Smittytron
d7a40f3bdb Change BarrelExplode to use FireDeath 2021-02-05 23:41:03 +01:00
abcdefg30
dbe824d4e5 Correct "offseted" to "offset" 2020-08-16 15:02:56 +02:00
Pavel Penev
c2e3806a77 Added a FlashPaletteEffect to RA nukes and removed from D2k 2020-07-10 13:22:54 +02:00
reaperrr
f132bac80d Add Tree armor type and remove tree-only warheads
This simplifies #12467.
Using a tree-exclusive amor type is far more efficient
than adding more warheads, which cost performance
due to their huge Spread

This also restores the 100% efficiency vs. trees for
some of the incendiary nuke warheads (which have
reduced efficiency vs. Wood since #13643).

Note: Atomic had two tree-only warheads with a Delay
of 15, I believe the first one to be a copy-paste error
and moved the damage to the regular SpreadDamage
with a Delay of 10.
2020-05-26 22:51:29 +02:00
reaperrr
109ea4fe5b Fix Barrel explosion damage 2020-05-26 22:46:26 +02:00
reaperrr
eff91108f4 Make RA ships show both explosion and splash
...when destroyed, to imply sinking.
2020-05-24 13:26:40 +02:00
reaperrr
e40c0516e6 Adapt RA warheads to new target types 2020-05-24 13:26:40 +02:00
reaperrr
c580a94ab7 Fix RA weapon ValidTargets 2020-05-24 13:26:40 +02:00
Paul Chote
1614cba99e Fix warhead removal lint warnings. 2019-05-31 20:55:38 +02:00
Punsho
336cfedf84 Mines will no longer damage each other 2019-05-18 20:08:42 +02:00
Smittytron
01d10f392d Fix RA death animations 2018-07-04 23:01:47 +02:00
Alexis Hunt
08ad7d7f4e Refactor handling of hit radii in projectiles.
penev discovered that the RulesetLoaded functions of projectiles were
never being called, meaning that their blocking calculations were not
properly accounting for actors with large hitboxes.

The best fix for this is to change FindActorsOnLine to always account
for the largest actor's hit radius, rather than forcing callers to pass
the largest radius. Per the comment in Util.cs, as a result, move this
computation to ActorMap. I decided to simplify by not making a separate
calculation for actors that block projectiles only; this may cause a
small performance degradation as the search space is a bit larger.

Similarly to this, I've removed the ability to specify a search radius
manually. Because this is only a search radius, setting a value smaller
than the largest eligible actor makes no sense; that would lead to
completely inconsistent blocking. Setting a larger value, on the other
hand, would make no difference.

CreateEffectWarhead was the only place in core code any of these search
radii were set, and that's because 0 was a mysterious magic value that
made the warhead incapable of hitting actors. I replaced it with a
boolean flag that more clearly indicates the actual behaviour.

Fixes #14151.
2018-02-21 23:26:41 +01:00
Mustafa Alperen Seki
a021bd4584 Remove ^Tank default from RA mod 2018-01-06 12:08:25 +01:00
FrameLimiter
61df53ea82 Fixes civilian panic from civ building explosion
The Civilian building explosions were not making the civilians panic.
2017-12-31 03:26:17 +01:00
Arular101
a429a62bf9 Adjust values to match current damage 2017-12-12 20:50:27 +01:00
Arular101
e049452f22 Increase damage and HP by 100x 2017-12-12 20:50:27 +01:00
Arular101
3efce265a8 Reduce barrel explosion damage vs wood armor 2017-11-15 15:17:08 +00:00
abc013
3092927a7f Added a visual explosion to e4 2017-11-12 18:34:03 +00:00
abc013
c8b2a7dc04 Changed Aircraft explosion 2017-10-14 13:59:59 +02:00
reaperrr
b68c935807 Fix water splash on bridge in RA
On bleed, both the explosion as well as the water splash warhead of weapons triggered on bridges, since they have both the Ground and Water target types.

Ground cannot be made invalid for water splashes without causing regressions elsewhere, so a new Bridge target type is introduced to explicitly make bridges invalid targets for water splash effect warheads.
2017-09-10 18:10:24 +02:00
reaperrr
20efd1fc29 Fix RA effect waheads
- take Trees into consideration (they don't have Ground TargetType)
- fixed the delayed effect warheads on Vulcan
2017-08-07 11:01:21 +02:00
SoScared
9097837e6d Adjust AoE damage vs Wood in relation to HitShapes 2017-07-18 00:59:25 +02:00
reaperrr
db16165261 Adapt RA explosions, supers and other weapons to CEWH refactor 2017-07-13 20:58:47 +02:00
reaperrr
e0abf8ed27 Disable effect WH victim scans in RA where sensible
AA missiles, flame weapons and nukes, pretty much, because they always
display the effect regardless of what they hit.
2017-06-25 22:40:12 +02:00
reaperrr
7251572eb6 Streamlined RA explosions.yaml 2017-02-08 23:05:55 +01:00
reaperrr
6fe223ba0e Streamline cosmetic RA building explosions 2017-01-23 21:11:00 +01:00
reaperrr
12b9c97f0b Rename and in a few cases move around warheads in RA explosions.yaml
To make inheriting easier down the road.
2017-01-23 21:11:00 +01:00
reaperrr
e75e6ce614 Move nuke explosions to end of RA explosions.yaml 2017-01-23 21:11:00 +01:00
SoScared
d314b22203 nukemoretrees 2016-12-11 19:21:41 +01:00
reaperrr
eb34621ce8 Use Explodes instead of WithBuildingExplosion in RA 2016-12-10 13:45:12 +01:00
abc013
e4354ce08c Added SpawnActorOnDeath: Civilians to ^CivBuilding 2016-11-12 14:45:49 +01:00
SoScared
b821ec6e72 Revert Nuke Truck Damage nerf vs Air 2016-07-29 14:40:44 +02:00
reaperrr
1886bad107 Make smudges in RA not spawn/grow below vehicles and structures
Also walls, trees and husks in most cases.

Note: Differences between warheads are intentional.
Note2: Some smudge WHs were removed instead when the weapon was purely anti-air or anti-water.
2016-07-07 20:51:21 +02:00
D'Arcy Rush
60441765aa V2s and barrels can now ignite trees 2016-06-05 20:05:43 +01:00
Matthias Mailänder
a85a8f09c7 Add burning trees to Red Alert. 2016-05-29 23:26:56 +02:00
reaperrr
2444491fc6 Fix exploding V2RL sound
You could here the 'Report' of the V2 weapon when the launcher exploded. Added V2-exclusive explosion weapon to fix that.
2016-05-15 20:58:02 +02:00
HenrytheSlav
aedd135c45 Reduce effectiveness of demo truck against air targets 2016-05-10 20:52:40 +02:00
Oliver Brakmann
38ccc4aff9 Change nukes to be able to damage submerged submarines 2016-03-13 15:53:33 +01:00
Pavel Penev
489ee9fc54 Add support for multiple impact sounds to CreateEffectWarhead
Have the engine pick one impact sound at random from the provided list.
2016-01-31 16:22:47 +02:00
Pavel Penev
7e3ec91d30 Add support for multiple explosions to CreateEffectWarhead
Have the engine pick one explosion at random from the provided list.
2016-01-31 16:22:09 +02:00
Paul Chote
4f1d8b7ac9 Remove spurious final newline from mod files. 2016-01-02 20:06:53 +00:00
reaperrr
a06cb8fccb Tweaked RA and TD artillery explosion
Renamed RA UnitExplode to AmmoExplode, added new UnitExplode with 1/10
damage.
Reduced TD UnitExplode damage to 1/10 of old value.

Now artillery always explodes, but there's only a 75% chance it explodes
violently and only when it has ammo.
If either condition isn't met, it explodes with the (now less violent) UnitExplode.
2015-08-02 15:18:30 +02:00
Oliver Brakmann
3f7ab07c2d Make all of mininuke's SpreadDamage warheads affect the parent 2015-06-23 18:54:10 +02:00
penev92
1c44fcbad4 Add upgrade rules to remove DamageWarhead.DeathType
and replace it with proper DamageTypes
2015-05-24 00:15:09 +03:00
penev92
ea01439377 Add an upgrade rule for DamageWarheads 2015-04-26 14:29:10 +03:00
reaperrr
1cc900b269 Yaml style fixes to reduce future --upgrade-mod "noise" a little 2015-03-27 00:11:32 +01:00
reaperrr
477dbbd532 Splits RA weapons.yaml into multiple roughly categorized files 2015-03-01 22:11:45 +01:00