Commit Graph

1128 Commits

Author SHA1 Message Date
Paul Chote
0039a2bdbf Split out an ActivityUtils class. 2016-01-19 23:34:13 +00:00
Paul Chote
e46fc644c1 Remove Util.QuantizeFacing from trait code. 2016-01-19 23:34:13 +00:00
Paul Chote
275be64f05 Remove Util.QuantizeFacing from support powers. 2016-01-19 23:34:13 +00:00
Oliver Brakmann
4f2b1f5177 Make WithRangeCircle a little more flexible
* Added ability to show the circle in the player's colour.
* Added ability to show the circle either always or only when selected.
* Added ability to configure the stances players need to see the circle.
2016-01-19 21:07:50 +01:00
Oliver Brakmann
8b5df6bf2c Improve ProximityCapturable
The following changes are made:

* Replaced the custom actor search with ProximityTriggers.
* Added a `Sticky` flag, which causes the ownership to not revert back to
  the original owner when the captor leaves.
* Added trait documentation.
2016-01-19 21:07:50 +01:00
Matthias Mailänder
fc8d35c2d4 put enter transport order targeters into respective files 2016-01-18 21:53:57 +01:00
Oliver Brakmann
a04223fcd2 Merge pull request #10143 from Phrohdoh/interface-reflection
Implement a utility command to check for explicit interface implementation violations.
2016-01-18 20:23:43 +01:00
abcdefg30
d416138cec Merge pull request #10542 from RoosterDragon/simplify
General Cleanup
2016-01-18 11:37:30 +01:00
Taryn Hill
25eddb9567 Explicitly implement ISelectionBar 2016-01-17 22:33:41 -06:00
Paul Chote
3ccbb480ad Merge pull request #10505 from Mailaender/palette-conf
Fixed parachute palette configuration for Red Alert 2
2016-01-17 21:54:56 +00:00
Oliver Brakmann
d151343216 Merge pull request #10468 from RoosterDragon/fix-dev-shroud-invalidation
Fix shroud not updating when disabled
2016-01-17 22:42:34 +01:00
RoosterDragon
8e89a6a696 Simplify names, remove unused usings, remove redundant casts. 2016-01-17 21:35:36 +00:00
Oliver Brakmann
aaeb715006 Merge pull request #10246 from penev92/terrainPalettes
Allow tile templates to define their own palette
2016-01-17 21:39:28 +01:00
Matthias Mailänder
a829baa82a Merge pull request #10521 from pchote/facing-cleanup
Remove Util.GetFacing.
2016-01-17 20:21:50 +01:00
Pavel Penev
861d1368a4 Unhardcode internal terrain palette name from all over the codebase 2016-01-17 19:02:16 +02:00
RoosterDragon
c98df23b57 Create FrozenActor.RefreshState method for better encapsulation and reuse of this logic. 2016-01-17 00:13:06 +00:00
RoosterDragon
3026bdcea5 Implement equality on TraitPair. 2016-01-17 00:13:06 +00:00
Paul Chote
3b18c7815d Remove Util.GetFacing. 2016-01-16 22:38:17 +00:00
Oliver Brakmann
addbe6d564 Merge pull request #10472 from Mailaender/guard-refactor
Cleaned up the Guard code
2016-01-16 23:09:19 +01:00
Matthias Mailänder
6900e4bad3 rename DemoTruck to AttackSuicides
generalize move to add Aircraft support
give it a description
don't require Explodes as it is just a soft dependency
use a regular self kill
2016-01-16 19:38:23 +01:00
Matthias Mailänder
f3210755c0 rename WithDockingOverlay to WithDockedOverlay 2016-01-16 13:51:06 +01:00
Paul Chote
d235dad754 Fix voxel barrel rendering. 2016-01-15 17:05:00 +00:00
Matthias Mailänder
0317c984cb fix parachute palette configuration 2016-01-13 22:34:40 +01:00
Paul Chote
62c222ebd2 Fix Cloak modifying the palette of decoration renderables. 2016-01-11 00:40:05 +00:00
Matthias Mailänder
13f20a4b56 cache the trait lookup 2016-01-10 07:28:28 +01:00
Matthias Mailänder
a74aaf73c5 Guard requires IMove 2016-01-10 07:28:19 +01:00
Matthias Mailänder
5b263e3cdb put GuardOrderGenerator in the correct namespace 2016-01-10 07:22:42 +01:00
RoosterDragon
21fd4df586 Invalidate shroud when enabling/disabled the shroud.
This ensures when shroud is toggled during a replay, the shroud renderer and radar update correctly.
2016-01-09 23:07:32 +00:00
RoosterDragon
1bc3a7395f Prevent items without size from being added to SpatiallyPartitioned.
Items with no size act unexpectedly as they can fail to be returned when querying partition bins as they do not intersect along the top or left edges of the bin. We prevent such items being added in the first place to avoid this scenario.

As a side effect - we must now prevent any Immobile items that do not have size from being added to the screen map.
2016-01-09 16:51:13 +00:00
teees
b7a3a446e1 Unload passengers on death 2016-01-08 08:50:35 +01:00
Matthias Mailänder
27eeaf3d41 Merge pull request #10112 from DnAp/PowerTooltip
Closes #6011
2016-01-07 20:57:14 +01:00
teees
f46185b85f Reworked cloaking behaviour 2016-01-07 13:44:16 +01:00
Matthias Mailänder
aa9ef48737 Revert "Don't attack actors that you can't see"
This reverts commit d235ea3a52.
2016-01-04 23:02:03 +01:00
abcdefg30
e9d76011c5 Merge pull request #10388 from RoosterDragon/auto-target-perf
Speed up AutoTarget.ChooseTarget among groups of allied units.
2016-01-04 17:48:33 +01:00
atlimit8
e4f4c578f6 Merge pull request #10376 from RoosterDragon/repulse-perf
Speed up Aircraft.Repulse.
2016-01-04 01:26:03 -06:00
RoosterDragon
adc7e902e3 Speed up AutoTarget.ChooseTarget among groups of allied units.
Most auto target scans will be conducted among groups of allied units unable to target each other because they are allied and their weapons only target enemies. Since they cannot target each other, the scan will be repeated constantly. Realising this, we can significantly reduce the performance impact of auto target scanning by bailing early in this scenario to avoid carrying out expensive targeting checks on friendly units which we know will fail anyway.
2016-01-04 07:07:26 +00:00
Paul Chote
8ce274ed79 Overhaul and rename WithActiveAnimation -> WithIdleAnimation. 2016-01-03 01:17:29 +00:00
Paul Chote
adaa1fa70e Add multiple sequence and upgrade support to LeavesTrails. 2016-01-03 01:17:29 +00:00
Paul Chote
6af377030c Add sequence parameter to SpriteEffect. 2016-01-03 01:17:29 +00:00
Paul Chote
f8b0674ccc Add extra configuration options for trails. 2016-01-02 12:25:52 +00:00
Matthias Mailänder
fb62b40848 Merge pull request #10252 from penev92/removeToP
Remove obsolete TransformOnPassenger trait
2016-01-02 12:49:01 +01:00
RoosterDragon
53ede338de Speed up Aircraft.Repulse.
Avoid LINQ in the repulsion force calculation, and cache a trait lookup used when determining movement speed.
2016-01-02 06:48:12 +00:00
Pavel Penev
51281e2546 Remove obsolete TransformOnPassenger trait
The upgrade system has made this obsolete. Units like the RA2 IFV are better done that way.
2016-01-02 02:01:46 +02:00
teees
ce5c8fde5c fix hovers trait to use heightmap 2016-01-01 21:04:17 +01:00
Matthias Mailänder
be235eb9fb Merge pull request #10210 from pchote/other-enter-traits
Add enter behaviour field to Infiltrates/EngineerRepair/RepairsBridges.
2016-01-01 12:01:26 +01:00
Matthias Mailänder
b3c474ebf9 Merge pull request #9452 from atlimit8/CreateFrozenActorsInFrozenUnderFogConstructor
Move FrozenActor creation to Created in FrozenUnderFog
2016-01-01 11:45:08 +01:00
DnAp
c4b925ffc3 Make trait PowerTooltip 2015-12-31 18:20:55 +03:00
atlimit8
4744f436d3 Move FrozenActor creation to Created in FrozenUnderFog 2015-12-31 00:53:26 -06:00
RoosterDragon
208b51feb1 Speed up GlobalLightingPaletteEffect.
Perform everything in integer arithmetic using some bit twiddling to avoid the performance cost of converting to and from floating point values.
2015-12-31 06:26:05 +00:00
abcdefg30
f364a306f3 Merge pull request #10201 from teees/discardexcessresources
Optionally discard resources when silo capacity has been reached
2015-12-30 22:43:15 +01:00