Commit Graph

3032 Commits

Author SHA1 Message Date
Paul Chote
39d2095e54 Remove PPos overload of ClosestTo. 2013-07-20 15:34:27 +12:00
Paul Chote
c1a0836640 Convert HackyAI to world coords. 2013-07-20 15:34:26 +12:00
Paul Chote
6201d7bfe2 Convert mission scripts to world coords. 2013-07-20 15:34:26 +12:00
Matthias Mailänder
77ff985dcd Merge pull request #3574 from ScottNZ/superweapons
Add atom bomb and gps public superweapon timers to RA
2013-07-17 08:25:25 -07:00
ScottNZ
b519c915ca Add public atom bomb and gps timers to RA 2013-07-17 14:52:50 +12:00
Matthias Mailänder
667aee095f Merge pull request #3571 from pchote/split-shadows
Add support for TS/RA2 split-shadows.
2013-07-15 09:18:35 -07:00
Matthias Mailänder
60d97ef5fb Merge pull request #3567 from cjshmyr/capturing
Remove unused interface INotifyOtherCaptured
2013-07-15 08:58:58 -07:00
Paul Chote
a642b8298e Move harvester animation z offset to sequences. 2013-07-15 20:58:24 +12:00
Paul Chote
15688eed13 Allow Animation to generate its own Renderables. 2013-07-15 20:54:02 +12:00
Nico
d3e760659a fix #3569 , and possible many other bugs... if the place is not close to the base, instead of returning the error, continue to see if there is another place to build 2013-07-14 23:31:09 -03:00
Nico
01f72f4f44 Revert "allow the AI to base-walk without restrictions"
This reverts commit d08d3d6e23.
2013-07-14 23:14:09 -03:00
Curtis Shmyr
a1f05fd017 Remove unused interface INotifyOtherCaptured 2013-07-14 11:53:15 -06:00
ScottNZ
8bec40eb9b Move SupportPowerInstance out of SupportPowerManager 2013-07-14 22:40:38 +12:00
Paul Chote
c7c9b8710e Fix cached paths in PathFinder. Fixes #3557. 2013-07-14 17:08:36 +12:00
ScottNZ
7ead562349 Use correct sound for teleporting chronotanks 2013-07-14 00:24:11 +12:00
Paul Chote
55653c3f1f Add lobby support for configuring starting units. 2013-07-13 19:18:27 +12:00
Paul Chote
db22f3568d Remove obsolete DefaultStartingUnits parameter.
It was only actually used by bomber-john. Everything
else also removed SpawnMPUnits, making it redundant.
2013-07-13 19:18:27 +12:00
Paul Chote
7376cccf4d Smarter unit spawn logic. Fixes #3496. 2013-07-13 19:18:27 +12:00
Paul Chote
2091a386fb Improve support for picking a valid actor spawn cell. 2013-07-13 19:18:26 +12:00
Andrew Aldridge
8287c5c872 Use static empty pathfinding path when possible 2013-07-12 09:43:35 -04:00
Andrew Aldridge
259e121307 Substantial performance improvement in DomainIndex
* Get rid of HashSets
      * Cache CanTraverseTile()'s terrain offsets
2013-07-12 09:40:59 -04:00
Andrew Aldridge
3fed98fcb1 Add support for bridge construction
Each movement class is given a crude transientDomain graph.  Whenever a bridge state
changes, the domain index rebuilds the relevant cells, setting its domain and creating
a transient domain connection.

This graph is searched as a fallback if the straightforward domain comparison is false.
Behavior needs to be double-checked, and ideally destructing connections would be supported,
but so far performance and behavior on allies-02 seems good.
2013-07-12 09:40:59 -04:00
Andrew Aldridge
ba885907ba Use MobileInfo.GetMovementClass for domain indexing, clearing path for caching and smarter behavior
* Move DomainIndex from being a manual hard-coded hook in World to an IWorldLoaded trait.
2013-07-12 09:40:55 -04:00
Andrew Aldridge
6fb01c7ab8 Properly deal with FindUnitPathToRange
This fixes boats attacking land targets.
2013-07-12 09:37:01 -04:00
i80and
d4cead2187 Initial terrain domain work 2013-07-12 09:37:00 -04:00
i80and
1fe2418e22 Factor out the CVec direction list. 2013-07-11 20:32:42 -04:00
Paul Chote
086b0a62e9 Merge pull request #3533 from Mailaender/stylecop
Added StyleCop Support
2013-07-11 15:01:30 -07:00
Matthias Mailänder
9a6e7f749b Merge pull request #3545 from pchote/infantry-range-fix
Infantry range fix
2013-07-11 11:45:15 -07:00
Matthias Mailänder
a35a046ede disable more StyleCop rules based on @pchote's wishlist 2013-07-11 20:29:00 +02:00
Matthias Mailänder
95d8c17d71 Merge pull request #3548 from pchote/regression-fixes
Regression fixes
2013-07-11 11:13:46 -07:00
Paul Chote
823a502873 Tidy RadarWidget. 2013-07-11 19:59:07 +12:00
Paul Chote
93ee46ba52 Default radar bin to enabled. Fixes observers and replays. 2013-07-11 19:59:07 +12:00
Paul Chote
6a37808dae Fix RadarWidget eating input outside its bounds. 2013-07-11 19:59:06 +12:00
Paul Chote
11cebddaa9 Convert Sound.Play* to WPos. 2013-07-11 17:37:27 +12:00
Paul Chote
a263fd879d Account for sub-cell offsets in FindUnitPathToRange. Fixes #2417. 2013-07-10 21:23:30 +12:00
Paul Chote
b10a5d27a0 Tidy up Move. 2013-07-10 20:34:19 +12:00
Paul Chote
0326d2bbd0 Use WRange for Follow. 2013-07-10 20:03:53 +12:00
Paul Chote
ee188ededd Fix Follow formatting. 2013-07-10 20:01:04 +12:00
Paul Chote
91698678a2 Use WRange for Mobile.MoveWithinRange. 2013-07-10 19:59:03 +12:00
Paul Chote
ae987b3c10 Tidy AttackFrontal. 2013-07-10 19:24:49 +12:00
Paul Chote
935b829532 Tidy TargetableUnit and subclasses. 2013-07-10 19:22:11 +12:00
Paul Chote
bed2745c61 Tidy TargetableBuilding. 2013-07-10 19:09:49 +12:00
Paul Chote
9b9952dcdf Change ITargetable TargetableCells -> TargetablePositions. 2013-07-10 19:09:28 +12:00
Chris Forbes
401ffaff17 rename BuildSpeedModifier back to BuildSpeed 2013-07-10 16:34:43 +12:00
Chris Forbes
10e0f367a8 fix a timing bug in LegacyCaptureActor 2013-07-09 08:15:03 +12:00
Matthias Mailänder
bd4434d8db spaces → tabs for @NukemBro's latest missions 2013-07-08 19:44:15 +02:00
Matthias Mailänder
8bb5b5700b added StyleCop support
with some rules we disagree with disabled
2013-07-08 19:42:32 +02:00
Matthias Mailänder
a90b3a9cd3 Merge pull request #3525 from pchote/ra-widget-cleanup
Widget fixes
2013-07-08 10:39:25 -07:00
Matthias Mailänder
f0f64010ec Merge pull request #3531 from pchote/world-targets
Convert more things to world coordinates
2013-07-08 10:33:25 -07:00
Paul Chote
2cff2d8bbe Improve Leap behavior:
* Configurable jump speed.
* Configurable jump angle.
* Configurable attack sound (uses weapon report).
* Don't accidentally eat tanks.
2013-07-08 23:40:22 +12:00