Add SAM interception FX (#830)

## Description:
Add SAM interception animation:


https://github.com/user-attachments/assets/5bfae4f2-f040-41cb-8fba-790538091807

Previously an intercepted nuke detonated with the regular nuke
explosion, which was confusing.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

IngloriousTom
This commit is contained in:
DevelopingTom
2025-05-22 17:11:31 -04:00
committed by GitHub
parent 9302af868d
commit 85c03d659c
11 changed files with 94 additions and 10 deletions
+4 -1
View File
@@ -180,7 +180,10 @@ export class SAMLauncherExecution implements Execution {
this.sam.owner().id(),
);
// Delete warheads
mirvWarheadTargets.forEach((u) => u.delete());
mirvWarheadTargets.forEach((u) => {
u.setInterceptedBySam();
u.delete();
});
} else if (target !== null) {
target.setTargetedBySAM(true);
this.mg.addExecution(
@@ -66,6 +66,7 @@ export class SAMMissileExecution implements Execution {
this._owner.id(),
);
this.active = false;
this.target.setInterceptedBySam();
this.target.delete(true, this._owner);
this.SAMMissile.delete(false);