make infantry die instantly to tesla

This commit is contained in:
Bob
2010-05-13 17:55:04 +12:00
parent 01af30d0a9
commit 8aad7f8350
3 changed files with 19 additions and 0 deletions

View File

@@ -91,6 +91,7 @@
<Compile Include="Spy.cs" />
<Compile Include="SpyPlanePower.cs" />
<Compile Include="SupportPowers\NukePower.cs" />
<Compile Include="TeslaInstantKills.cs" />
<Compile Include="Thief.cs" />
<Compile Include="Crates\ResetRadarCrateAction.cs" />
<Compile Include="TraitsInterfaces.cs" />

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRA.Traits;
namespace OpenRA.Mods.RA
{
class TeslaInstantKills : INotifyDamage
{
public void Damaged( Actor self, AttackInfo e )
{
if( e.Warhead.InfDeath == 5 )
self.Health = 0;
}
}
}

View File

@@ -27,6 +27,7 @@
Passenger:
HiddenUnderFog:
RevealsShroud:
TeslaInstantKills:
^Ship:
Category: Ship