New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for playing a "LoseNotification" to the old owner through CaptureNotification #11142
Conversation
We don't need the LocalPlayer check if we only play the sound to the new owner, and captor.Owner == newOwner in this case.
Game.Sound.PlayNotification(self.World.Map.Rules, captor.World.LocalPlayer, "Speech", info.Notification, faction); | ||
Game.Sound.PlayNotification(self.World.Map.Rules, newOwner, "Speech", info.Notification, faction); | ||
|
||
var looseFaction = info.NewOwnerVoice ? newOwner.Faction.InternalName : oldOwner.Faction.InternalName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wants to be info.LooseNewOwnerVoice
I assume.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Derp, right.
Fixed. |
I think you guys want "Lose" not "Loose".
|
Yeah, already fixed that, just not the descriptions and commit messages... |
… CaptureNotification
👍 |
We want this for at least ra2: OpenRA/ra2#187 (comment)
The default being
null
won't cause trouble asPlayNotification
already catches that.