James Dunne
03ec1f08cf
Made ResourceClaimLayer trait optional on World actor to fix cnc and d2k.
2012-06-24 21:41:16 -05:00
James Dunne
b59a0e8c0d
Fixed harvesters for AI to search the entire map when no more resources nearby.
2012-06-24 20:26:01 -05:00
James Dunne
1f0da42a15
Refineries now show which harvesters are linked by holding down ALT key.
2012-06-24 20:26:01 -05:00
James Dunne
845379e577
Harvesters no longer block each other during low-ore contention and wait for a random amount of time while idle to search for more resources.
2012-06-24 20:26:00 -05:00
James Dunne
80123b6aa4
Many harvester behavior improvements; summary below.
...
Implemented Harvester territory marking with a simple resource claim system in ResourceClaimLayer trait added to World.
Added customCost for PathSearch to support new Harvester search preferences.
Explicit delivery order forces harvester to always deliver to that refinery.
Explicit harvest order frees harvester from forced delivery refinery and allows for auto-balancing.
Harvesters auto-balance refinery choice such that no more than 3 harvesters are linked to any one refinery at a time.
Harvesters try very hard to not block the refinery dock location.
Harvesters try to avoid enemy territory when searching for resources.
Group-select harvest order intelligently disperses harvesters around the order location.
Fixed PathFinder caching to not be a sliding window. This is a correctness issue. Sliding window causes no-route paths to be cached permanently in tight move loops and doesn't allow eventual progress to be made. This may have negative performance implications.
2012-06-24 20:26:00 -05:00
James Dunne
9c49143534
New types for cell and pixel coordinate position/vectors.
2012-06-21 15:36:59 -05:00
Chris Forbes
99eb3b046d
fix #2239 - add WaitFor(predicate)
2012-06-21 09:26:05 +12:00
Curtis Shmyr
e1907364e6
Fix #2086 - don't let player capture if that same player (or friendly ally) is already capturing
2012-05-26 18:40:55 +12:00
Curtis Shmyr
45f5c054d5
Fix #2070 ; cannot sell when building is being captured
2012-04-30 21:37:09 +12:00
Curtis Shmyr
9185dc65d5
Initial pbox pax changes
2012-04-30 21:18:10 +12:00
Chris Forbes
dbd09ea843
Add building infiltrated sound to owner of spy on infiltrate
2012-04-09 10:33:39 +12:00
Chris Forbes
beb6b01796
show cashticks for DonateSupplies in spec
2012-04-06 18:14:58 +12:00
Curtis Shmyr
bc8c433a72
Modified Capturable to have a capture time; fixes #2002
2012-04-06 14:47:04 +12:00
Chris Forbes
75e32c0573
don't fetch IFacing unless we actually need it, in Attack
2012-03-04 11:17:46 +13:00
alzeih
aa9dd73fe5
Fix #1236 - Aircraft with full health landing on FIX costs the player money
...
Note: still allows a plane on full health to land on FIX.
2011-12-14 00:01:58 +13:00
alzeih
b508f7c300
Fix #1269 - Transport Helicopter Loading while in the Air
...
Note that weight is now checked for cargo (this might break things)
2011-12-13 12:38:39 +13:00
Chris Forbes
6cb8ee1f9f
expose appropriate *Inits, and make them work in editor
2011-11-06 18:17:13 +13:00
Chris Forbes
bc6af1841b
fix indents everywhere
2011-10-18 15:10:17 +13:00
Chris Forbes
c4256faf18
preserve cargo across transform
2011-10-11 14:42:35 +13:00
Chris Forbes
2bc260c833
move Activity from OpenRA.Traits.Activities namespace to OpenRA.Traits
2011-10-06 23:11:58 +13:00
Chris Forbes
1776b17205
fix busted indent in Repair.cs
2011-10-04 13:17:59 +13:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Chris Forbes
776a1aa817
fix newlines in source files
2011-09-17 11:26:17 +12:00
Chris Forbes
9480846250
remove spurious constructor from MoveAdjacentTo
2011-09-17 11:24:39 +12:00
Curtis S
c1f522db63
Fix #1157 : Removed HARV minining from cell in front / using MoveAdjacentTo in logic. Was causing harvesters to get stuck - need to revisit this.
2011-09-15 20:49:33 -06:00
Chris Forbes
a3818a6aa2
fix MoveAdjacentTo so it doesnt suck so much
2011-09-07 20:43:18 +12:00
Chris Forbes
dd306c7b7c
fixed #766 -- minelayers not entering FIX properly
2011-08-21 22:17:50 +12:00
Chris Forbes
b95f49d6f3
remove pointless null checks for owner
2011-08-21 19:34:45 +12:00
Chris Forbes
663a323f29
remove trait lookup spam everywhere for IOccupySpace.
2011-08-13 15:01:41 +12:00
Chris Forbes
89a209ff52
remove bogus FirstOrDefault + deref in Teleport; just use Trait<>
2011-08-09 08:51:36 +12:00
Paul Chote
648979c8ae
Fix a crash in Demolish
2011-07-27 13:36:40 +12:00
Paul Chote
2231940056
Harvesters harvest the cell in front of them; fix harvester target lines; split harvester activities into their own (correctly named) files.
2011-07-25 22:23:21 +12:00
Paul Chote
c79f5b5365
Ignore damage modifiers when killing a unit via actor.Kill(). Fixes surrender desync ( #460 ); Fixes invulnerable actors surviving in situations where they should be killed (bridge death, losing/surrender, etc).
2011-07-25 22:23:15 +12:00
Paul Chote
64b88819a9
Add plumbing to support ownership checks in MobileInfo.CanEnterCell.
2011-07-14 21:00:50 +12:00
Chris Forbes
2ab2ee17c1
remove duplicated HarvestThisTile function from Harvest.cs
2011-07-14 20:29:11 +12:00
Chris Forbes
e44b965785
fixed #999 -- replace order/first[ordefault] with .ClosestTo(point)
2011-07-14 20:29:07 +12:00
Paul Chote
3ec5693f69
Fix repair depot crash
2011-06-26 16:12:18 +12:00
Lawrence Wang
de5db51f25
Fixed #856 - created trait for ammo reload time, set for some aircraft
2011-06-25 11:54:12 +12:00
Paul Chote
35a5fc3356
Work around for #902 .
2011-06-24 00:40:58 +12:00
Chris Forbes
24586ac056
fixed 771 -- adds Passenger.Weight, Cargo.MaxWeight, Cargo.PipCount
2011-05-30 20:09:22 +12:00
Chris Forbes
3bbcbf4701
fix #772 -- GivesBounty uses Actor.GetSellValue
2011-05-22 20:41:37 +12:00
Paul Chote
d4baf2d757
Refactor UnitInfluence trait -> world.ActorMap
2011-05-22 19:32:53 +12:00
Chris Forbes
668dfa1f6f
don't show cashticks when there is no refund
2011-05-22 19:32:52 +12:00
Chris Forbes
00e9015671
fix minelayer going to faraway FIX
2011-05-02 21:38:16 +12:00
Chris Forbes
702f787899
fix entering helicopters
2011-05-01 15:20:35 +12:00
Chris Forbes
e829c01ee6
else after return is silly
2011-04-22 10:32:47 +12:45
Chris Forbes
c34d987e4a
remove a couple of trait lookups
2011-04-22 10:31:47 +12:45
Paul Chote
24908b7269
Split Harvest activity into saner chunks; fix pathfinding.
2011-04-18 10:47:10 +12:00
Paul Chote
a0941db61b
Fix warfactory roof glitch
2011-04-17 20:02:02 +12:00
Paul Chote
b2167adf1a
Kill QueuedActivity
2011-04-16 15:37:31 +12:00