Commit Graph

19766 Commits

Author SHA1 Message Date
Paul Chote
b0bd252343 Move Util to Mods.Common. 2016-01-19 23:35:18 +00:00
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
3b675c9bad Merge pull request #10547 from Mailaender/passenger-refactor
Small code cleanup in the Passenger trait
2016-01-19 19:07:47 +01:00
abcdefg30
3c8be18a73 Merge pull request #10507 from pchote/fix-locked-color-validation
Disable color validation for locked colors.
2016-01-19 18:18:09 +01:00
abcdefg30
0804f97deb Merge pull request #10538 from pchote/fix-report-case
Fix filename case on weapon reports.
2016-01-19 18:12:16 +01:00
Oliver Brakmann
332d61c2c0 Merge pull request #10397 from pchote/ts-map-importer
Add the "gen2" map importer.
2016-01-18 22:00:48 +01:00
Matthias Mailänder
fc8d35c2d4 put enter transport order targeters into respective files 2016-01-18 21:53:57 +01:00
Paul Chote
c581283c9a Add the TS map importer. 2016-01-18 20:52:35 +00: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
Oliver Brakmann
afdc6bc0ae Merge pull request #10546 from abcdefg30/madTarget
Fix the TargetTypes of the Mad Tank
2016-01-18 19:53:36 +01:00
abcdefg30
d416138cec Merge pull request #10542 from RoosterDragon/simplify
General Cleanup
2016-01-18 11:37:30 +01:00
abcdefg30
50e4cc84d0 Fix the TargetTypes of the Mad Tank
"Vehicle" was missing, which lead to tanya shooting at it.
Tanya's weapon (Colt45) has InvalidTargets: Vehicle defined,
so adding just "Vehicle" to the TargetTypes fixed the bug.
2016-01-18 11:00:37 +01:00
Matthias Mailänder
40debbde28 Merge pull request #10508 from pchote/cancel-tooltip-on-menu
Cancel tooltips when opening the ingame menu.
2016-01-18 07:30:11 +01:00
Taryn Hill
25eddb9567 Explicitly implement ISelectionBar 2016-01-17 22:33:41 -06:00
Taryn Hill
e3229f4cd8 Add explicit interface checking to 'make check' 2016-01-17 17:31:36 -06:00
Taryn Hill
2e861c6d65 Implement a utility command to check for explicit
interface implementation violations
2016-01-17 17:31:36 -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
Paul Chote
cac2d82e5a Fix filename case for TS voices. 2016-01-17 19:31:25 +00:00
Paul Chote
9f7f759da4 Fix filename case on weapon reports. 2016-01-17 19:24:40 +00: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
288de5284e Fix TerrainTemplatePreviewWidget to use proper palettes 2016-01-17 19:02:18 +02:00
Pavel Penev
861d1368a4 Unhardcode internal terrain palette name from all over the codebase 2016-01-17 19:02:16 +02:00
Pavel Penev
0c51d73be9 Enable use of "custom" palettes per tile Templates
Keep the tileset's palette as default, defined on the tileset, but override it for any tile templates that may want to do so with a palette defined on the template.
2016-01-17 19:02:15 +02:00
Oliver Brakmann
7cf98c5e26 Merge pull request #10324 from RoosterDragon/change-frozen-actor-removals
GPS updates frozen actors that change owner
2016-01-17 13:37:53 +01:00
Matthias Mailänder
457dca25b4 Merge pull request #10506 from pchote/fix-flying-mcvs
Remove some hardcoded trait assumptions from HackyAI.
2016-01-17 08:18:04 +01:00
RoosterDragon
dc99dbef2a Add an upgrade rule for FrozenUnderFogUpdatedByGps. 2016-01-17 00:15:08 +00:00
RoosterDragon
3c930c3ef9 Introduce FrozenUnderFogUpdatedByGps and IOnGpsRefreshed.
This trait uses the new interface to register with the GpsWatcher to get notified when the GPS state changes. It needs to register as if the actor is destroyed, the GpsWatcher can no longer query actors in the world to get the trait. This is no good as the trait needs to perform actions after the death of its parent actor.

When the GPS is enabled, the trait will track ownership changes and update the frozen actor (just like if there was only a GPS dot, it would change colour) and it will also remove frozen actors if the real actor dies or is sold.
2016-01-17 00:13:06 +00:00
RoosterDragon
a232eff7fd Replace IRemoveFrozenActor with FrozenActorLayer.Remove.
The IRemoveFrozenActor interface is replaced with a Remove method on FrozenActorLayer. IRemoveFrozenActor is a performance problem for FrozenActorLayer.Tick as it incurs a large cache miss penalty in order to load and enumerate the array of these interfaces for every frozen actor. Instead, we invert control and allow traits to remove frozen actors directly which eliminates the performance penalty.
2016-01-17 00:13:06 +00: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
bee77db1e3 Rename variables for clarity. 2016-01-17 00:02:49 +00:00
Paul Chote
bec059a3c7 Remove unnecessary assumption about non-mobile. 2016-01-17 00:02:49 +00:00
Paul Chote
d4815407f2 Remove hardcoded trait assumptions from MCV and ConYards. 2016-01-17 00:02:49 +00:00
Paul Chote
e026a0f00f Create proper data structures for hardcoded AI classes. 2016-01-17 00:02:49 +00:00
Paul Chote
3b18c7815d Remove Util.GetFacing. 2016-01-16 22:38:17 +00:00
Paul Chote
a0979634bb Use .Yaw.Facing in Map. 2016-01-16 22:38:17 +00:00
Paul Chote
8a8368b97b Use .Yaw.Facing in Missile. 2016-01-16 22:38:17 +00:00
Paul Chote
46bf58b520 Introduce WVec.Yaw and WAngle.Facing. 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
Oliver Brakmann
aeafa3383d Merge pull request #10516 from reaperrr/shp-compress
Recompressed a number of shp(td) files with shapeset
2016-01-16 22:59:41 +01:00
Oliver Brakmann
29e8396863 Merge pull request #10531 from pchote/fix-tileset-case
Fix case mismatches in TS tileset importer.
2016-01-16 22:43:02 +01:00
Oliver Brakmann
9de239e246 Merge pull request #10371 from Mailaender/demotruck-detonates
Generalized the DemoTruck trait for Tiberian Sun
2016-01-16 19:46:37 +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
Oliver Brakmann
01a873218d Merge pull request #10364 from Mailaender/unload-overlay
Added the Tiberian Sun harvester unload overlay
2016-01-16 19:30:19 +01:00
abcdefg30
b593063057 Merge pull request #10519 from RockyTV/rockytv
Decrease Engineer and Medic priority
2016-01-16 14:35:41 +01:00