Commit Graph

1238 Commits

Author SHA1 Message Date
Oliver Brakmann
392dd7db3f Merge pull request #11112 from reaperrr/improve-LeavesTrails
Add facings support and other controls to LeavesTrails
2016-05-21 12:36:13 +02:00
reaperrr
dbd7606667 Move SpriteEffect facing parameter to the end
To avoid potential incompatibilities with downstream projects.
2016-05-20 23:24:33 +02:00
Oliver Brakmann
149271f71e Merge pull request #11291 from reaperrr/fix-10111-para
Some WithParachute fixes
2016-05-20 20:18:53 +02:00
reaperrr
9707cd9be9 Merge pull request #11299 from reaperrr/dmgstate-upgrade
Introduce trait granting upgrades at specified DamageStates
2016-05-16 20:00:53 +02:00
reaperrr
407a061c0a Merge pull request #11176 from pchote/lobby-trait-checkbox-prep
Query lobby checkbox state via their owning traits.
2016-05-16 19:00:35 +02:00
reaperrr
d03eaaaac0 Introduce UpgradeOnDamage trait 2016-05-16 02:41:12 +02:00
reaperrr
51194059b3 Fix WithParachute shadow position on elevated terrain 2016-05-15 16:05:15 +02:00
reaperrr
c2f537a43d Move parachute shadow anim ticking from Render to Tick 2016-05-15 16:04:01 +02:00
reaperrr
a670ea4bad Remove ITraitInfo from WithParachuteInfo
ITraitInfo is already implemented by UpgradableTraitInfo, so this was redundant.
2016-05-15 16:00:51 +02:00
Matthias Mailänder
0d500f4bb2 Merge pull request #11270 from reaperrr/fix-td-fieldcrash
Make FrozenUnderFog footprint include '_'
2016-05-15 15:40:08 +02:00
reaperrr
e59c7a8b1f Make FrozenUnderFog count passable footprint cells
To avoid crashing on actors with only passable footprint cells.
2016-05-15 14:56:08 +02:00
Matthias Mailänder
26c0f1ebc0 terrain palette auto detection 2016-05-15 11:46:46 +02:00
Paul Chote
0a7c80ef6e Prepare short game code for trait-defined lobby options. 2016-05-14 18:54:44 +01:00
Paul Chote
e3bc73a168 Prepare ally build adjacency code for trait-defined lobby options. 2016-05-14 18:54:44 +01:00
Paul Chote
c412e4e86c Prepare MapCreeps code for trait-defined lobby options. 2016-05-14 18:54:44 +01:00
Paul Chote
7e49ae7eb0 Prepare DeveloperMode code for trait-defined lobby options. 2016-05-14 18:54:44 +01:00
Paul Chote
a0b5b5ce66 Move initial map exploration to Shroud. 2016-05-14 18:54:44 +01:00
Oliver Brakmann
35dfb54459 Fix trait lookup of destroyed actor in SpawnActorOnDeath
The sequence of events leading to that crash looks like this:

1. Truk enters a building.

2. `Enter.FindAndTransitionToNextState()` is running, and since `DonateSupplies` uses `EnterBehaviour.Dispose`, `Actor.Dispose()` runs for the actor, queueing a FrameEndTask.

3. Truk is then killed:

 * `Health.InflictDamage()` first calls `SpawnActorOnDeath.Killed()`, which queues a FrameEndTask during which some trait lookups happen.

 * `Health.InflightDamage()` then calls `Actor.Dispose()` as well, queueing another FrameEndTask (which will never run, the game crashes before).

4. After the tick, the first FrameEndTask disposes of the actor. The second FrameEndTask would spawn the crate from the truk, but the trait lookups then fail and throw an exception.
2016-05-07 14:21:41 +02:00
reaperrr
62aabffed9 Make LeavesTrails loop through a list of offsets
Instead of the unflexible 'AlternateOffset' approach.
2016-05-01 23:01:07 +02:00
reaperrr
04d075ca9f Add control over whether trails should spawn with or without delay 2016-05-01 23:01:07 +02:00
reaperrr
866e0b3577 Add facings support, start delay and offset controls to LeavesTrails 2016-05-01 23:01:07 +02:00
reaperrr
ca7a17ea06 Add facings support to SpriteEffect 2016-05-01 23:01:07 +02:00
Matthias Mailänder
4e9a48d253 Summarize the rendering parts to generate a beacon. 2016-05-01 12:29:39 +02:00
Matthias Mailänder
a8dd67a231 ParatroopersPower also supports beacons. 2016-05-01 12:29:38 +02:00
Matthias Mailänder
59fbfbc851 Don't enforce beacons to be player palettes. 2016-05-01 12:29:38 +02:00
Matthias Mailänder
9f4cdb9843 Unhardcode player beacons for documentation and lint testing. 2016-05-01 12:27:02 +02:00
Matthias Mailänder
76124b7c79 Unhardcode beacon sprites for documentation and lint testing. 2016-05-01 12:21:13 +02:00
Oliver Brakmann
cc9f84f136 Merge pull request #11199 from reaperrr/fix-para-nre
Fix potential NRE in Parachutable
2016-04-30 13:53:04 +02:00
reaperrr
b87b2c010f Fix potential NRE in Parachutable 2016-04-29 12:56:05 +02:00
Paul Chote
21989acd28 Fix a crash when multi-turreted units leave a transport. 2016-04-29 04:05:33 +01:00
reaperrr
b497869993 Cache IMove in Repairable's ctor
Instead of looking it up on every repair order.
2016-04-24 20:12:49 +02:00
Matthias Mailänder
fb53890636 Merge pull request #11144 from pchote/fix-start-game-frozen-explored-map
Generate frozen actor renderables for all map-placed actors.
2016-04-23 16:26:27 +02:00
reaperrr
521a8a66d2 Enable Targetable to handle multiple Cloak traits 2016-04-22 13:01:02 +02:00
Paul Chote
08100dc49b Fix initial render state for walls. 2016-04-21 17:21:29 +01:00
Paul Chote
183e5ae7ab Generate initial frozen renderables for all map-placed actors. 2016-04-21 17:21:29 +01:00
Oliver Brakmann
357d50679c Fix looking up un-required trait in Targetable ctor 2016-04-19 22:39:36 +02:00
Paul Chote
c68ef3d25f Preserve editor actor order. 2016-04-17 20:25:20 -04:00
Oliver Brakmann
6323f763f1 Merge pull request #11122 from reaperrr/traits-render
Move Render traits to Traits.Render namespace
2016-04-17 21:48:32 +02:00
Matthias Mailänder
3d1fadf24a Merge pull request #11014 from dtluna/can_undeploy
Added CanUndeploy property
2016-04-17 10:37:44 +02:00
Matthias Mailänder
7209bc474d Merge pull request #11120 from teees/fix-barrels
Fix barrel recoil being set immediately, not when actually firing
2016-04-17 09:52:06 +02:00
Paul Chote
d59488d496 Merge pull request #11076 from obrakmann/low-funds-warning-2
Fix issues with the insufficient funds warning
2016-04-16 18:00:40 +01:00
reaperrr
a1ce5bd978 Move VeteranProductionIconOverlay to Traits.Render 2016-04-16 14:26:26 +02:00
reaperrr
fd5a597966 Move Render traits to Traits.Render namespace 2016-04-15 20:43:04 +02:00
Paul Chote
e54917a0b2 Fix depth-enabled shroud rendering. 2016-04-15 09:42:29 -04:00
Paul Chote
2915db67c4 Add depth buffer support to sprites and sequences. 2016-04-15 09:42:29 -04:00
teees
3c4d9b4c84 Fix barrel recoil being set immediately, not when actually firing 2016-04-15 14:06:21 +02:00
Oliver Brakmann
2fbea092bc Fix submarines not being attackable when surfaced
This will also fix the issue of all pre-placed subs playing the submerging sound during the start of a map.
2016-04-12 21:17:04 +02:00
Oliver Brakmann
c68e03366c Merge pull request #11097 from Mailaender/group-sound-traits
Grouped the sound traits together
2016-04-12 18:46:08 +02:00
reaperrr
6239aad070 Merge pull request #11017 from Mailaender/radar-refactor
Grouped the radar traits together
2016-04-12 17:07:01 +02:00
Oliver Brakmann
87e1acfc9f Re-implement the insufficient funds warning in a simpler manner 2016-04-11 19:06:18 +02:00