mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-14 07:47:13 +00:00
SG_TARGET.lua, the targets' server script: at the last waypoint of its path (onArrived with isLastPoint, which the client's PushToLua 0x00b1a910 sets for a moving platform's Arrived as for a waypoint follower's) a target notifies the cannon, FinishedPath, and sg_cannon.lua spawns the next one as after a hit (checkSpawn). A target set to despawn there then dies silently after 1 s, a moving platform after 2 s. Here ships and subs sat at the end of their path until the game ended, and nothing came after them. The script cannot load (the targets have a script row of their own), so the cannon does it: - the respawn is split out of RegisterHit (CheckSpawn), and the die callback only registers a hit when the death is not the silent one; - a moving platform target tells through PlatformAtLastWaypoint, a waypoint follower through a new MovementAIComponent waypoint callback. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>