only play 'unit lost' etc to owner
This commit is contained in:
@@ -30,6 +30,7 @@ namespace OpenRA.Traits
|
|||||||
{
|
{
|
||||||
var eva = self.World.WorldActor.Info.Traits.Get<EvaAlertsInfo>();
|
var eva = self.World.WorldActor.Info.Traits.Get<EvaAlertsInfo>();
|
||||||
if (e.DamageState == DamageState.Dead)
|
if (e.DamageState == DamageState.Dead)
|
||||||
|
if (self.Owner == self.World.LocalPlayer)
|
||||||
Sound.PlayVoice("Lost", self);
|
Sound.PlayVoice("Lost", self);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user