Improved visuals, added WormSign norification

This commit is contained in:
penev92
2014-11-30 01:39:07 +02:00
parent c4efd269d4
commit 61cb74adb4
10 changed files with 37 additions and 63 deletions

View File

@@ -27,6 +27,8 @@ namespace OpenRA.Mods.D2k
[Desc("Average time (seconds) between worm spawn")]
public readonly int SpawnInterval = 180;
public readonly string WormSignNotification = "WormSign";
public readonly string WormSignature = "sandworm";
public readonly string WormOwnerPlayer = "Creeps";
@@ -71,6 +73,8 @@ namespace OpenRA.Mods.D2k
new LocationInit(spawnLocation)
}));
wormsPresent++;
AnnounceWormSign(self);
}
CPos GetRandomSpawnPosition(Actor self)
@@ -82,6 +86,12 @@ namespace OpenRA.Mods.D2k
{
wormsPresent--;
}
void AnnounceWormSign(Actor self)
{
if (self.World.LocalPlayer != null)
Sound.PlayNotification(self.World.Map.Rules, self.World.LocalPlayer, "Speech", info.WormSignNotification, self.World.LocalPlayer.Country.Race);
}
}
[Desc("An actor with this trait indicates a valid spawn point for sandworms.")]