Fix cargo loading/unloading.

- Fix the unloading subcell bug, letting us have units move to directly adjacent cells.
- Have the cursor change to a deploy-blocked cursor if the transport can't unload due to terrain type.
- Add RenderTransport for transport door opening.
- Remove turning/opening in general.
This commit is contained in:
ScottNZ
2014-02-10 22:49:41 +13:00
parent ea1d1320be
commit 025de83d3a
11 changed files with 182 additions and 97 deletions

View File

@@ -80,7 +80,7 @@ Actor.Hunt = function(actor)
end
Actor.UnloadCargo = function(actor, unloadAll)
actor:QueueActivity(OpenRA.New("UnloadCargo", { unloadAll }))
actor:QueueActivity(OpenRA.New("UnloadCargo", { actor, unloadAll }))
end
Actor.Harvest = function(actor)

View File

@@ -66,8 +66,7 @@ tran:
Start: 32
Length: 4
unload: tran2
Start: 32
Length: 4
Start: 35
icon: tranicon
Start: 0

View File

@@ -47,6 +47,7 @@ lst:
open:
Start: 1
Length: 4
Tick: 150
unload:
Start: 4
icon: lsticon

View File

@@ -177,7 +177,7 @@ apc:
Start: 0
Length: 6
Facings: 8
close:
open:
Start: 32
Length: 3
unload: