Have Tanya not shoot her pistols at buildings, and have her shoot pistols at barrels instead of using C4 on them

This commit is contained in:
Scott_NZ
2013-02-27 17:57:53 +13:00
parent 81c8f0360f
commit 817e6f1ec1
8 changed files with 22 additions and 8 deletions

View File

@@ -10,8 +10,8 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using OpenRA.Effects;
using OpenRA.Mods.RA.Activities; using OpenRA.Mods.RA.Activities;
using OpenRA.Mods.RA.Buildings;
using OpenRA.Mods.RA.Move; using OpenRA.Mods.RA.Move;
using OpenRA.Mods.RA.Orders; using OpenRA.Mods.RA.Orders;
using OpenRA.Traits; using OpenRA.Traits;
@@ -35,7 +35,7 @@ namespace OpenRA.Mods.RA
public IEnumerable<IOrderTargeter> Orders public IEnumerable<IOrderTargeter> Orders
{ {
get { yield return new UnitTraitOrderTargeter<Building>( "C4", 6, "c4", true, false ); } get { yield return new UnitTraitOrderTargeter<C4Demolishable>("C4", 6, "c4", true, false); }
} }
public Order IssueOrder( Actor self, IOrderTargeter order, Target target, bool queued ) public Order IssueOrder( Actor self, IOrderTargeter order, Target target, bool queued )
@@ -65,4 +65,7 @@ namespace OpenRA.Mods.RA
return (order.OrderString == "C4") ? "Attack" : null; return (order.OrderString == "C4") ? "Attack" : null;
} }
} }
class C4DemolishableInfo : TraitInfo<C4Demolishable> { }
class C4Demolishable { }
} }

View File

@@ -249,6 +249,7 @@
Sellable: Sellable:
Capturable: Capturable:
CapturableBar: CapturableBar:
C4Demolishable:
^CivBuilding: ^CivBuilding:
Inherits: ^Building Inherits: ^Building
@@ -336,6 +337,7 @@
RelativeToTopLeft: yes RelativeToTopLeft: yes
AutoTargetIgnore: AutoTargetIgnore:
Sellable: Sellable:
C4Demolishable:
^Tree: ^Tree:
Tooltip: Tooltip:

View File

@@ -257,3 +257,4 @@
Types:Building Types:Building
Sellable: Sellable:
GivesBounty: GivesBounty:
C4Demolishable:

View File

@@ -359,7 +359,7 @@ Rules:
Range: 0 Range: 0
E7: E7:
AutoTarget: AutoTarget:
InitialStance: ReturnFire InitialStance: Defend
Passenger: Passenger:
Weight: 0 Weight: 0
EINSTEIN: EINSTEIN:

View File

@@ -2875,7 +2875,7 @@ Rules:
Damage: 0 Damage: 0
E7: E7:
AutoTarget: AutoTarget:
InitialStance: ReturnFire InitialStance: Defend
Passenger: Passenger:
Weight: 0 Weight: 0
Buildable: Buildable:

View File

@@ -241,6 +241,9 @@ BARL:
Tooltip: Tooltip:
Name: Explosive Barrel Name: Explosive Barrel
AutoTargetIgnore: AutoTargetIgnore:
Armor:
Type: Light
-C4Demolishable:
BRL3: BRL3:
Inherits: ^TechBuilding Inherits: ^TechBuilding
@@ -253,6 +256,9 @@ BRL3:
Tooltip: Tooltip:
Name: Explosive Barrel Name: Explosive Barrel
AutoTargetIgnore: AutoTargetIgnore:
Armor:
Type: Light
-C4Demolishable:
MISS: MISS:
Inherits: ^TechBuilding Inherits: ^TechBuilding

View File

@@ -217,6 +217,7 @@
AcceptsSupplies: AcceptsSupplies:
GivesBounty: GivesBounty:
UpdatesPlayerStatistics: UpdatesPlayerStatistics:
C4Demolishable:
^Wall: ^Wall:
AppearsOnRadar: AppearsOnRadar:
@@ -250,6 +251,7 @@
Types:Wall Types:Wall
Sellable: Sellable:
UpdatesPlayerStatistics: UpdatesPlayerStatistics:
C4Demolishable:
^TechBuilding: ^TechBuilding:
Inherits: ^Building Inherits: ^Building

View File

@@ -7,11 +7,11 @@ Colt45:
Warhead: Warhead:
Spread: 1 Spread: 1
Versus: Versus:
Wood: 5% Wood: 0%
Light: 5% Light: 5%
Heavy: 5% Heavy: 5%
Cybernetic: 5% Cybernetic: 5%
Concrete: 5% Concrete: 0%
Explosion: piff Explosion: piff
InfDeath: 2 InfDeath: 2
Damage: 50 Damage: 50