Commit Graph

15 Commits

Author SHA1 Message Date
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
Arular101
64a3187fd1 Increase damage and HP by 10x 2017-12-12 23:56:25 +01:00
reaperrr
4823d5454d Disable effect warhead victim scans in D2k
They are always displayed unconditionally anyway.
2017-06-25 22:40:12 +02:00
reaperrr
6cd6cedd2c Tweak D2k debris
- Enabled shadow
- reduced maximum speed
- considerably increased 'launch angle'
- increased bounce count to 3 and toned down BounceRangeModifier
- reduced TrailInterval to 1 for Debris2
- removed explosion sounds to a) match original and b) make them less annoying
- fixed debris explosion animations to match original
- used different trail anim for Debris2 and Debris3
2017-02-14 01:56:22 +01:00
Mustafa Alperen Seki
4601331f7f Add bouncing to D2K Debris. 2017-01-24 15:04:29 +02:00
reaperrr
6d56d3485b Slim down D2k Debris weapons via inheritance 2017-01-19 22:43:30 +01:00
reaperrr
20cd2aa4ab Rename Bullet Angle to LaunchAngle 2016-10-22 17:57:32 +02:00
reaperrr
5df32e6d2a Fix smudges in D2k to not spawn or grow when hitting vehicle or structure 2016-07-07 20:51:21 +02:00
reaperrr
170fdc89e3 Rename Bullet Trail to TrailImage 2016-05-31 15:05:26 +02: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
64b4e92ab2 Tweaked D2k warhead falloffs 2015-10-25 09:15:32 +01:00
reaperrr
8e6d5bd603 Misc yaml formatting/style fixes 2015-10-21 10:07:48 +02:00
reaperrr
685be50168 Added original D2k debris 2015-09-23 19:07:07 +02:00