Right, now whenever a spawn weapon spawned its child weapons, the children would home in on whatever was in view as long as it was red. So i figured we can change this, and the change was actually really easy. So now, you have the option of having the child weapons home in on whatever the parent weapon was homing on, basically this allows you to create multi stage missiles, or swarm torpedos, or a cloud of death.
The code is really simple. Basiclly you just add the flag "inherit parent target" in the child weapon and you're all set. You just need to make sure the parent weapon and child weapon homes too. Depending on this thread discussion, i may rename the flag to "pass lock to child" and have the flag appear in the parent weapon. I don't know which one would be preferred.
EXTRA BOLD -- TAKE NOTEtest build is here:
http://www.hard-light.net/forums/index.php/topic,45175.0.html#Secondary Weapons
$Name: Piranha
+nocreate
$Homing: YES
+Type: HEAT
+Turn Time: 1.0
+View Cone: 80.0
$Spawn Angle: 30
$Name: Cluster Baby
+nocreate
$Flags: ("inherit parent target")
#End