Counter-strikes collide, persist and record their flights (#106 #108 #109 #113)

Co-Authored-By: Kimi <noreply@moonshot.ai>
This commit is contained in:
2026-11-01 02:34:39 +03:00
parent 1a693763fd
commit 31d967b036
10 changed files with 646 additions and 70 deletions
+8
View File
@@ -145,6 +145,7 @@ fn strike_word(result: StrikeResult) -> &'static str {
StrikeResult::Missed => "промах",
StrikeResult::Intercepted => "ракета сбита ПВО противника",
StrikeResult::Halted => "пуски прекращены (вне карты)",
StrikeResult::Blocked => "разбилась о рельеф",
}
}
@@ -501,6 +502,12 @@ impl Player {
out.engine(key, event, at, vel, gain, pitch, false);
}
}
What::Strike => {
// A counter-strike's motor from its launch, as the live flight has it (#109).
if let Some((event, pitch)) = DroneKind::Kalibr.engine_voice() {
out.engine(key, event, at, vel, 0.8, pitch, false);
}
}
}
}
}
@@ -930,6 +937,7 @@ impl Player {
What::Drone(kind) if kind.spec().decoy => (0x70A0A0A0, 0xFFC0C0C0),
What::Drone(_) => (0x90FF4040, 0xFFFF6060),
What::Missile(..) => (0x90FFD040, 0xFFFFE070),
What::Strike => (0x90FFA040, 0xFFFFC060),
};
let upto = ((self.t - tr.first as f64) / STEP as f64).floor();
if upto < 0.0 {