Make EMP freeze mobile actors.

This commit is contained in:
Paul Chote
2014-10-04 13:38:46 +13:00
parent 6b54575569
commit fde963a993
3 changed files with 11 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ namespace OpenRA.Mods.RA
public object Create(ActorInitializer init) { return new DisableUpgrade(this); }
}
public class DisableUpgrade : IUpgradable, IDisable
public class DisableUpgrade : IUpgradable, IDisable, IDisableMove
{
readonly DisableUpgradeInfo info;
bool enabled;
@@ -44,5 +44,7 @@ namespace OpenRA.Mods.RA
}
public bool Disabled { get { return enabled; } }
public bool MoveDisabled(Actor self) { return enabled; }
}
}

View File

@@ -5,7 +5,7 @@
Selectable:
Priority: 3
TargetableBuilding:
TargetTypes: Ground, C4
TargetTypes: Ground, Building, C4
Building:
Dimensions: 1,1
Footprint: x
@@ -70,7 +70,7 @@
LineBuildNode:
Types: wall
TargetableBuilding:
TargetTypes: Ground, C4
TargetTypes: Ground, Wall, C4
RenderBuildingWall:
Type: wall
GivesExperience:
@@ -116,7 +116,7 @@
Selectable:
Voice: Infantry
TargetableUnit:
TargetTypes: Ground
TargetTypes: Ground, Infantry
RenderInfantry:
WithDeathAnimation:
AutoTarget:
@@ -217,7 +217,7 @@
Selectable:
Voice: Vehicle
TargetableUnit:
TargetTypes: Ground
TargetTypes: Ground, Vehicle
Repairable:
RepairBuildings: gadept
Passenger:
@@ -289,7 +289,7 @@
Selectable:
Voice: Vehicle
TargetableUnit:
TargetTypes: Ground
TargetTypes: Ground, Vehicle
Repairable:
RepairBuildings: gadept
Passenger:

View File

@@ -1130,10 +1130,13 @@ EMPulseCannon:
Warhead@target: SpreadDamage
Spread: 0
Damage: 0
PreventProne: true
ValidTargets: Vehicle
Warhead@emp: GrantUpgrade
Range: 3c0
Duration: 250
Upgrades: empdisable
ValidTargets: Vehicle
TiberiumExplosion:
Warhead@1Dam: SpreadDamage