make infantry die instantly to tesla
This commit is contained in:
@@ -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" />
|
||||
|
||||
17
OpenRA.Mods.RA/TeslaInstantKills.cs
Executable file
17
OpenRA.Mods.RA/TeslaInstantKills.cs
Executable 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27,6 +27,7 @@
|
||||
Passenger:
|
||||
HiddenUnderFog:
|
||||
RevealsShroud:
|
||||
TeslaInstantKills:
|
||||
|
||||
^Ship:
|
||||
Category: Ship
|
||||
|
||||
Reference in New Issue
Block a user