Stage the cold launch and spool every interceptor's motor (#129)

The interceptor's launch is one sequence: the cap opens, the round is
thrown out unlit and slows under linear gas drag (`cold` ticks), the motor
lights where it has reached, it turns with a growing rate while thrust
spools up (`boost` ticks), and full guidance starts only at `cold + boost`.
A rail launch lights at once but spools over the same `boost` ticks; the
electric P1-SUN has no rocket spool or plume.

S-400/500 now hold the unlit ejection for 20/24 ticks (1.00/1.20 s at
20 Hz); IRIS-T/Tor keep shorter 8-tick throws. Ignition, its sound, flame
and recorded MotorIgnition event all use the missile's current position.
The RM48U strike follows the same 20-tick choreography, counts the throw
in its flight time and starts its recorded smoke at ignition.

Maximum speed, turn, accel, pk and every collision rule are unchanged.

Co-Authored-By: Kimi Code <noreply@kimi.com>
This commit is contained in:
2026-11-06 13:18:01 +03:00
parent a592ece6e3
commit 1261c30724
9 changed files with 399 additions and 36 deletions
+4 -2
View File
@@ -230,8 +230,8 @@ def validate_specs(data, content, events):
missile_kinds = set()
for i, entry in enumerate(data["missiles"]):
where = f"missiles[{i}]"
_exact(entry, {"kind", "model", "speed", "accel", "turn", "boost", "cold", "pk", "fuse",
"life", "scale", "flame", "rear", "seeker", "launch_sound", "voice"}, where)
_exact(entry, {"kind", "model", "speed", "accel", "turn", "boost", "cold", "eject", "eject_drag",
"pk", "fuse", "life", "scale", "flame", "rear", "seeker", "launch_sound", "voice"}, where)
kind = _text(entry["kind"], f"{where}.kind", r"[A-Z][A-Za-z0-9]*")
if kind in missile_kinds:
raise ValueError(f"{where}: duplicate missile kind {kind}")
@@ -241,6 +241,8 @@ def validate_specs(data, content, events):
_number(entry[field], f"{where}.{field}", 0)
_integer(entry["boost"], f"{where}.boost")
_integer(entry["cold"], f"{where}.cold")
_number(entry["eject"], f"{where}.eject", 0)
_number(entry["eject_drag"], f"{where}.eject_drag", 0)
_integer(entry["life"], f"{where}.life", 1)
_sound(entry["launch_sound"], f"{where}.launch_sound", events)
_exact(entry["voice"], {"event", "gain", "pitch"}, f"{where}.voice")
+2
View File
@@ -167,6 +167,8 @@ def missile_profile(entry):
f" turn: {num(entry['turn'])},",
f" boost: {integer(entry['boost'])},",
f" cold: {integer(entry['cold'])},",
f" eject: {num(entry['eject'])},",
f" eject_drag: {num(entry['eject_drag'])},",
f" pk: {num(entry['pk'])},",
f" fuse: {num(entry['fuse'])},",
f" life: {integer(entry['life'])},",