Commit Graph

2719 Commits

Author SHA1 Message Date
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
Paul Chote
4fbed810dc Redo husk particle physics using LerpQuadratic. 2013-07-08 23:40:22 +12:00
Paul Chote
1e7f1ab225 Convert Explosion to world coords. 2013-07-08 23:40:22 +12:00
Paul Chote
8fe0eb73e2 Ensure a valid target in move. 2013-07-08 23:40:21 +12:00
Paul Chote
87361df043 Centralize weapon validity check into WeaponInfo. 2013-07-08 23:40:21 +12:00
Paul Chote
89fd889cf4 Convert Target positions to world coords. 2013-07-08 21:52:28 +12:00
Paul Chote
d0bed06765 Use WVec overload of Util.GetFacing where possible. 2013-07-08 21:52:27 +12:00
Paul Chote
7883b1bd7f Convert Combat.DoExplosion to world coords. 2013-07-08 21:52:27 +12:00
Paul Chote
0fdffd7b6a Convert Drag to world coords. 2013-07-08 21:52:27 +12:00
Paul Chote
9eaeeffae9 CenterLocation.ToCPos() -> CenterPosition.ToCPos(). 2013-07-08 21:52:26 +12:00
Paul Chote
f9ec5fd9b7 Add WPos.ToCPos(). 2013-07-08 21:52:25 +12:00
Paul Chote
561cb6cfe0 Rewrite Leap activity to be more robust.
The dog will now always leap to the target
subcell (even if the target dies or moves),
and will kill whatever happens to be in the
target cell when it lands.
2013-07-08 21:52:25 +12:00
Paul Chote
82b7854ed7 Make MobileInfo.SubCellOffsets static. 2013-07-08 21:52:25 +12:00
Paul Chote
34df1ab705 Remove Combat.IsInRange(). Closes #3433. 2013-07-08 21:52:25 +12:00