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

View File

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

View File

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