more positional sound
This commit is contained in:
@@ -54,7 +54,7 @@ namespace OpenRA.Traits.Activities
|
|||||||
self.Health = 0;
|
self.Health = 0;
|
||||||
self.World.Remove( self );
|
self.World.Remove( self );
|
||||||
foreach (var s in sounds)
|
foreach (var s in sounds)
|
||||||
Sound.PlayToPlayer(self.Owner, s);
|
Sound.PlayToPlayer(self.Owner, s, self.CenterLocation);
|
||||||
|
|
||||||
var a = self.World.CreateActor( actor, self.Location + offset, self.Owner );
|
var a = self.World.CreateActor( actor, self.Location + offset, self.Owner );
|
||||||
a.Health = newHealth;
|
a.Health = newHealth;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ namespace OpenRA.Traits.Activities
|
|||||||
() => self.World.AddFrameEndTask(w => DoUndeploy(w,self)));
|
() => self.World.AddFrameEndTask(w => DoUndeploy(w,self)));
|
||||||
|
|
||||||
foreach (var s in self.Info.Traits.Get<BuildingInfo>().SellSounds)
|
foreach (var s in self.Info.Traits.Get<BuildingInfo>().SellSounds)
|
||||||
Sound.PlayToPlayer(self.Owner, s);
|
Sound.PlayToPlayer(self.Owner, s, self.CenterLocation);
|
||||||
|
|
||||||
started = true;
|
started = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ namespace OpenRA.Traits
|
|||||||
var building = w.CreateActor( order.TargetString, t, order.Player );
|
var building = w.CreateActor( order.TargetString, t, order.Player );
|
||||||
if( playSounds )
|
if( playSounds )
|
||||||
foreach( var s in building.Info.Traits.Get<BuildingInfo>().BuildSounds )
|
foreach( var s in building.Info.Traits.Get<BuildingInfo>().BuildSounds )
|
||||||
Sound.PlayToPlayer( order.Player, s );
|
Sound.PlayToPlayer( order.Player, s, self.CenterLocation );
|
||||||
playSounds = false;
|
playSounds = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -59,7 +59,7 @@ namespace OpenRA.Traits
|
|||||||
{
|
{
|
||||||
var building = w.CreateActor( order.TargetString, order.TargetLocation, order.Player );
|
var building = w.CreateActor( order.TargetString, order.TargetLocation, order.Player );
|
||||||
foreach (var s in building.Info.Traits.Get<BuildingInfo>().BuildSounds)
|
foreach (var s in building.Info.Traits.Get<BuildingInfo>().BuildSounds)
|
||||||
Sound.PlayToPlayer(order.Player, s);
|
Sound.PlayToPlayer(order.Player, s, self.CenterLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
var facts = w.Queries.OwnedBy[self.Owner]
|
var facts = w.Queries.OwnedBy[self.Owner]
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ namespace OpenRA.Traits
|
|||||||
anim.PlayBackwardsThen( "make", null );
|
anim.PlayBackwardsThen( "make", null );
|
||||||
|
|
||||||
foreach (var s in self.Info.Traits.Get<BuildingInfo>().SellSounds)
|
foreach (var s in self.Info.Traits.Get<BuildingInfo>().SellSounds)
|
||||||
Sound.PlayToPlayer(self.Owner, s);
|
Sound.PlayToPlayer(self.Owner, s, self.CenterLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Sold(Actor self) {}
|
public void Sold(Actor self) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user