Custom ammo flight_type?

Discussion in 'Mod Support' started by elodea, May 22, 2015.

  1. elodea

    elodea Post Master General

    Messages:
    1,694
    Likes Received:
    3,040
    Shot in the dark, is there a way to make custom flight_type behaviours?

    Trying to make torpedoes actually work like torpedoes by hugging the waterline and simply damaging anything they collide. Can't get them to do this with direct and ballistic type. And staged and seeking cause all the torpedoes to die at the last known location of their target.
    stuart98 likes this.
  2. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Does it have both these fields?

    Code:
      "physics": {
      "add_to_spatial_db": true,
      "radius": 1
      },
  3. exterminans

    exterminans Post Master General

    Messages:
    1,881
    Likes Received:
    986
    I think @elodea means true "torpedo type" weapons which are following the water level (so no ballistic curve, nor beam), and which are also allowed to overshoot their target.

    Missiles can't do the latter one, they selfdestruct when they miss their target. There is also no setting to prevent that.

    So while you could use a missile with homing properties "disabled" (by settings corrective steering capabilities low enough), you can't make them behave like ballistic projectiles.

    Missiles still don't have a "re-home" property, do they? Which would tell them to select a new target upon missing?
    elodea likes this.
  4. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Missiles don't self destruct when they miss their target, they simply spin around the target until their lifetime expires.
    elodea likes this.
  5. elodea

    elodea Post Master General

    Messages:
    1,694
    Likes Received:
    3,040
    Well they end up self destructing one way or another xD
  6. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    In any case setting the turn rate to 0 should make it behave as you want it to behave.
  7. exterminans

    exterminans Post Master General

    Messages:
    1,881
    Likes Received:
    986
    That would make it unable to hit, like at all. For missile type projectiles, the weapon bones aren't being aligned completely as corrective steering is presumed.

    It would also prevent the torpedo from holding the elevation, as it won't be able to follow the curvature of the planet. Not to mention that it does aim at the center of mass of the target, which can be different from the water surface.
    elodea likes this.

Share This Page