Commit Graph

31 Commits

Author SHA1 Message Date
Paul Chote
75f78f8d27 Remove bogus undefined/unused trait property definitions.
None of these exist in current bleed, so this
won't change any in-game behaviour.
2018-06-14 13:40:18 +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
reaperrr
9b629a8f39 Remove dysfunctional TS yaml hacks
In addition to now being redundant due to Armament-side cycling through LocalOffsets, these didn't work because Burst is reset once ReloadDelay is reached, so that equal BurstDelay never really had the intended effect.
2017-12-29 15:28:34 +00:00
Arular101
ede72410ff Increase damage and HP by 100x 2017-12-28 10:12:52 +01:00
reaperrr
c4bfb052d9 Apply BurstDelays rename to TS 2017-08-20 20:48:25 +02:00
reaperrr
ace353cb84 Upgrade rule for Missile.TerrainHeightAware 2017-07-15 17:36:20 +02:00
reaperrr
5cd8acada4 Adapt TS effect warheads to CEWH refactor 2017-07-13 20:58:47 +02:00
reaperrr
ba1279aa93 Disable some effect warhead victim scans in TS 2017-06-25 22:40:12 +02:00
Paul Chote
552cf83951 Fix missile characteristics. 2017-05-07 13:49:50 +01:00
reaperrr
882b5da20d Make TS explosions and muzzle flashes 'glow' on darker maps
The new effectglow palette is not affected by global lighting, making effects 'glow' at full light on darker maps.
Exception: pistol/rifle/machine gun piffs.
2017-04-12 19:11:24 +02:00
reaperrr
2ee47ff5cf Fix Falloff and Spread of TS missiles 2017-02-02 19:32:16 +01:00
reaperrr
a41cfc50a8 Enable water splash for TS AA missile
On the unlikely off chance that the missile might fall into water.
2017-01-22 12:27:48 +01:00
reaperrr
bbff2b3fd4 Remove unnecessary smudge warhead removals
The smudge WH code now exits early when exploding above ground, so this is no longer necessary.
Also renamed the default smudge WH identifier since the number is (currently) no longer correct and not necessary, either.
2017-01-22 12:27:48 +01:00
reaperrr
2036ed55d7 Remove air-only explosions from TS missiles
The original didn't differentiate, and the audiovisual contrast is also a bit too strong (and the air explosion sound was a bit annoying).
2017-01-22 12:27:48 +01:00
Zimmermann Gyula
bf810cd934 Enable missile snapping in TS. 2016-11-28 17:14:43 +01:00
reaperrr
457dc647f6 Reduce TS missile.yaml footprint and tweak flight behavior to be much closer to original
- much lower launch speed and maximum speed
- much higher launch angle and cruise altitude, doubled vertical rate of turn to make up for it
- increased RangeLimit, especially for AA-only missiles
- fixed Bike warhead Spread to match other missiles
- fixed SAm site missile explosion to match original
- fixed damage warheads of AA-only missile to be valid against ground as well (to avoid not damaging aircraft that just landed after the missile was launched)
2016-09-30 05:53:11 +02:00
reaperrr
e2cf6fdb9a Do not spawn smudges under buildings and vehicles in TS
Exceptions are intentional.
2016-07-07 20:51:21 +02:00
reaperrr
1258ddde7f Refactored Missile.RangeLimit from ticks to WDist
Changed default from 'unlimited' fuel to weapon range.
2016-04-30 16:02:15 +02:00
reaperrr
e75cda66ec Upgrade TS missile rules 2016-02-14 13:41:27 +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
9f7f759da4 Fix filename case on weapon reports. 2016-01-17 19:24:40 +00:00
Paul Chote
4f1d8b7ac9 Remove spurious final newline from mod files. 2016-01-02 20:06:53 +00:00
Matija Hustić
12b4f8ccf4 Programatic YAML upgrade 2015-10-11 22:03:06 +02:00
OmegaBolt
55d55b3723 removed ImpactTypes changes 2015-09-06 19:47:16 +01:00
Zimmermann Gyula
4521157901 Fix TS water effect palettes.
Also copied over the waterpiffs from RA because TS equvivalent has no
fitting palette/only singular piff exists - w_piffs didn't.
2015-08-02 23:30:51 +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
0efce0e94a Brings TS weapons more in line with the original's rules
Adds trails to missiles.
2015-04-01 23:48:59 +02:00
reaperrr
fbfc38fe1b Fix TS weapon names to match the original 2015-04-01 22:42:01 +02:00
reaperrr
ca67407358 Split TS weapons.yaml into several categorized yamls 2015-04-01 22:42:01 +02:00