Mostly implemented Sonar Pulse
This commit is contained in:
17
OpenRa.Mods.RA/InfiltrateForSonarPulse.cs
Normal file
17
OpenRa.Mods.RA/InfiltrateForSonarPulse.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user