Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: TrashMan on July 10, 2025, 01:02:00 pm

Title: Question regarding missiles
Post by: TrashMan on July 10, 2025, 01:02:00 pm
I'd like to make a BIIG missile/torpedo that fires off a bunch of subminitions (alto torpedos) all towards the same target, without detonating.

I tried this:

$Name:                TNM-02 Starfall
$Model File:                    M_Supernova01.pof
$Mass:                                  50.0
$Velocity:                              250.0
$Fire Wait:                             60.0
$Damage:                                10000
$Damage Type:                   Meson
$Arm radius:               1000.0                                               
$Blast Force:                   1000.0
$Inner Radius:                  100.0                                     
$Outer Radius:                  600.0                                     
$Shockwave Speed:               400
$Dinky shockwave:
   +Shockwave damage:               1000
   +Shockwave damage type:            Meson
   +Blast Force:                  500
   +Inner Radius:                  50
   +Outer Radius:                  100
   +Shockwave Speed:               100                                                 
$Armor Factor:                  1.0
$Shield Factor:               1.0
$Subsystem Factor:            1.0
$Lifetime:                      60.0
$Energy Consumed:               0.0                                     
$Cargo Size:                    500.0                                     
$Homing:                        YES
   +Type:                              ASPECT                                    
   +Turn Time:                         1.0
   +View Cone:                         360.0
$Swarm:                               3
   +SwarmWait:                     1
$Free Flight Time:                  3.0
$Free Flight Speed Factor:            2   
$LaunchSnd:                             97                                             
$ImpactSnd:                         101
$FlyBySnd:                              -1
$Rearm Rate:                    1.0                                     
$Flags:                                 ( "Big Ship" "Huge" "supercap" "Bomb" "cycle" "no lifeleft penalty" "Spawn StarfallBaby,20" )     
$Trail:                                                                             
   +Start Width:           10.0                                           
   +End Width:             20.0                                           
   +Start Alpha:         1.0
   +End Alpha:            0.0
   +Max Life:              3.0                                           
     +Bitmap:                missiletrail01                 
$Icon:                                  iconmissile08
$Anim:                                  LoadMissile06
$Impact Explosion: ExpMissileHit1
$Impact Explosion Radius:               200.0
$Spawn Angle:          90
$Spawn Minimum Angle:    70
$Spawn Interval:      0.5
+Delay:               5.0   
$Weapon Hitpoints:                  300




;------------------------------------------------------------
$Name:                                  StarfallBaby
$Model File:                     M_HellfireM.pof
$Mass:                           25.0
$Velocity:                       200.0
$Fire Wait:                      0.0
$Damage:                         7500
$Damage Type:                     Explosive_Huge
$Arm distance:                   1000                                                                                                     
$Blast Force:                    1000.0
$Inner Radius:                   50.0                                       
$Outer Radius:                   250.0                                       
$Shockwave Speed:                80                                       
$Armor Factor:                   1.0
$Shield Factor:                  1.0
$Subsystem Factor:               0.8     
$Lifetime:                       40.0                                       
$Energy Consumed:                0.0
$Cargo Size:                     100.0
$Homing:                         YES
   +Type:                           HEAT         
   +Turn Time:                      1.2
   +View Cone:                      360.0                                 
$Swarm:                          2
$Free Flight Time:               3
$LaunchSnd:                      96
$ImpactSnd:                      88
$FlyBySnd:                       -1
$Rearm Rate:                     0.05
$Flags:                                 ("child")
$Trail:                                                                             
   +Start Width:            0.25                                           
   +End Width:            0.75                                           
   +Start Alpha:      1.0
   +End Alpha:      0.0
   +Max Life:                          1.0                                             
   +Bitmap:                        missiletrail02                 
$Icon:                                  iconmissile08
$Anim:                                  LoadMissile06
$Impact Explosion:                      ExpMissileHit1
$Impact Explosion Radius:       25.0



Weapon doesn't fire. Is it even possible?
Title: Re: Question regarding missiles
Post by: 0rph3u5 on July 10, 2025, 04:26:45 pm
This is a turret weapon, no?

Then you want the "smart spawn"-flag on the primary munition, and the "inherit parent target"-flag on the sub munition. Otherwise the AI might consider the targeting conditions never met.

The turret should also have the "no subsystem targeting"-flag to ease targeting.