The cannon gives its targets scripts/ai/ACT/SG_TARGET.lua as their
custom_script_server, but their own script row is the empty script, which
won. A custom server script now replaces the empty script too, and the
target script is ported:
- explode factor 2.5 at startup;
- its score is its spawn data's (the cannon scores a hit with it);
- at the last waypoint of its path it tells the cannon (FinishedPath, the
cannon spawns the next one, as after a hit) and, when its spawn data
says so, dies silently 1 s later (2 s on a moving platform), which is
no hit;
- at the other waypoints it may change speed (spawn data chance, whole
numbers between its least and most speed; only an object following
waypoints takes it).
The cannon's own end-of-path handling is gone; it now answers the
target's FinishedPath. The waypoint PlayAim action is not ported: no
path in the game has one. The spawn data has no time score.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>