From 83f03f31ec40e8d5d55931b41155b1aa65535abd Mon Sep 17 00:00:00 2001 From: KJeff01 Date: Tue, 16 Apr 2024 13:39:24 -0500 Subject: [PATCH] Alert the player to the Lassat being ready Plays a sound and shows a console message. --- src/structure.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/structure.cpp b/src/structure.cpp index ad0561050b3..acfec81dd40 100644 --- a/src/structure.cpp +++ b/src/structure.cpp @@ -2970,6 +2970,11 @@ static void aiUpdateStructure(STRUCTURE *psStructure, bool isMission) && gameTime - psStructure->asWeaps[0].lastFired > weaponFirePause(*psStructure->getWeaponStats(0), psStructure->player) && psStructure->asWeaps[0].ammo > 0) { + if (psStructure->player == selectedPlayer) + { + addConsoleMessage(_("Laser Satellite is ready to fire!"), CENTRE_JUSTIFY, SYSTEM_MESSAGE); + audio_PlayTrack(ID_SOUND_UPLINK); // This is about the best sound available for this. + } triggerEventStructureReady(psStructure); psStructure->asWeaps[0].ammo = 0; // do not fire more than once }