stable, incomplete c4 action
This commit is contained in:
@@ -138,6 +138,7 @@ namespace OpenRa.Game
|
||||
switch( s )
|
||||
{
|
||||
case "Attack": return Cursor.Attack;
|
||||
case "C4": return Cursor.C4;
|
||||
case "Move":
|
||||
if (movement.CanEnterCell(location))
|
||||
return Cursor.Move;
|
||||
|
||||
@@ -23,5 +23,6 @@ namespace OpenRa.Game
|
||||
public static Cursor Enter { get { return new Cursor("enter"); } }
|
||||
public static Cursor DeployBlocked { get { return new Cursor("deploy-blocked"); } }
|
||||
public static Cursor Chronoshift { get { return new Cursor("chrono"); } }
|
||||
public static Cursor C4 { get { return new Cursor("c4"); } }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,8 @@ namespace OpenRa.Game.Traits
|
||||
{
|
||||
class C4Demolition : IOrder
|
||||
{
|
||||
public C4Demolition(Actor self) { }
|
||||
|
||||
public Order IssueOrder(Actor self, int2 xy, MouseInput mi, Actor underCursor)
|
||||
{
|
||||
if (underCursor == null) return null;
|
||||
|
||||
@@ -580,7 +580,7 @@ LongDesc=Infiltrates enemy refineries & \nsilos, and steals money stored there.\
|
||||
[E7]
|
||||
Description=Tanya
|
||||
Voice=TanyaVoice
|
||||
Traits=Unit, Mobile, RenderInfantry, AttackBase, TakeCover, SquishByTank, AutoTarget
|
||||
Traits=Unit, Mobile, RenderInfantry, C4Demolition, AttackBase, TakeCover, SquishByTank, AutoTarget
|
||||
LongDesc=Elite commando infantry, armed with \ndual pistols and C4.\n Strong vs Infantry, Buildings\n Weak vs Vehicles\n Special Ability: Destroy Building with C4
|
||||
[MEDI]
|
||||
Description=Medic
|
||||
|
||||
Reference in New Issue
Block a user