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:
@@ -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,12 +35,12 @@ 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 )
|
||||||
{
|
{
|
||||||
if( order.OrderID == "C4" )
|
if (order.OrderID == "C4")
|
||||||
return new Order("C4", self, queued) { TargetActor = target.Actor };
|
return new Order("C4", self, queued) { TargetActor = target.Actor };
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
@@ -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 { }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -257,3 +257,4 @@
|
|||||||
Types:Building
|
Types:Building
|
||||||
Sellable:
|
Sellable:
|
||||||
GivesBounty:
|
GivesBounty:
|
||||||
|
C4Demolishable:
|
||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user