Mostly implemented Sonar Pulse

This commit is contained in:
Paul Chote
2010-01-25 00:28:43 +13:00
parent 8ffb000e2e
commit e6ded0e491
8 changed files with 158 additions and 98 deletions

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using OpenRa.Traits;
namespace OpenRa.Mods.RA
{
class InfiltrateForSonarPulseInfo : StatelessTraitInfo<InfiltrateForSonarPulse> { }
class InfiltrateForSonarPulse : IAcceptSpy
{
public void OnInfiltrate(Actor self, Actor spy)
{
Game.world.LocalPlayer.PlayerActor.traits.Get<SonarPulsePower>().Give(1.0f);
}
}
}

View File

@@ -52,6 +52,7 @@
<Compile Include="Activities\Steal.cs" />
<Compile Include="C4Demolition.cs" />
<Compile Include="EngineerCapture.cs" />
<Compile Include="InfiltrateForSonarPulse.cs" />
<Compile Include="Mine.cs" />
<Compile Include="MineImmune.cs" />
<Compile Include="Minelayer.cs" />