Improved visuals, added WormSign norification
This commit is contained in:
@@ -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.")]
|
||||
|
||||
Reference in New Issue
Block a user