Set up tran husks, and stop husk placement causing crashes

This commit is contained in:
Scott_NZ
2012-07-30 20:20:41 +12:00
committed by Chris Forbes
parent 192af5d60f
commit 48f934f188
3 changed files with 26 additions and 2 deletions

View File

@@ -33,8 +33,8 @@ namespace OpenRA.Mods.RA
public Husk(ActorInitializer init)
{
var self = init.self;
location = init.Get<LocationInit, CPos>();
PxPosition = init.Get<CenterLocationInit, PPos>();
location = init.Get<LocationInit, CPos>();
PxPosition = init.Contains<CenterLocationInit>() ? init.Get<CenterLocationInit, PPos>() : Util.CenterOfCell(location);
Facing = init.Contains<FacingInit>() ? init.Get<FacingInit,int>() : 128;
var speed = init.Contains<HuskSpeedInit>() ? init.Get<HuskSpeedInit,int>() : 0;

View File

@@ -212,6 +212,20 @@ TRAN:
IronCurtainable:
FallsToEarth:
Explosion: UnitExplode
TRAN.Husk1:
Inherits: ^Husk
Tooltip:
Name: Husk (Transport Helicopter)
RenderUnit:
Image: tran1husk
TRAN.Husk2:
Inherits: ^Husk
Tooltip:
Name: Husk (Transport Helicopter)
RenderUnit:
Image: tran2husk
HELI:
Inherits: ^Helicopter

View File

@@ -952,6 +952,16 @@ tran:
unload: tran2
Start: 32
Length: 4
tran1husk:
idle:
Start: 0
Length: *
tran2husk:
idle:
Start: 0
Length: *
v2:
idle: