Modding Help About guns: (Solved)

Discussion in 'Starbound Modding' started by TheWickedMesmerizer, Nov 20, 2019.

  1. TheWickedMesmerizer

    TheWickedMesmerizer Void-Bound Voyager

    • How to make my guns shoot in burst fire ?
    • its possible to remove the muzzle flash? (I'm working on silenced guns).
    I searched through the scripts, but i couldn't find a clue about how do i do these things.
  2. Zaakari

    Zaakari Pangalactic Porcupine

    I am assuming these are assault rifles (although I don't think it should matter).

    Both of those can be accomplished through the weapon's ".activeitem" file.

    Within the "primaryAbility" object, you should see a "fireType" property. This can either be set to "auto" or "burst".
    If it's set to "burst" you will also need to add the "burstCount" and "burstTime" properties.
    For example:
        "scripts" : ["/items/active/weapons/ranged/gunfire.lua"],
        "class" : "GunFire",
        "fireTime" : 0.15,
        "baseDps" : 9.5,
        "energyUsage" : 28.5,
        "inaccuracy" : 0.02,
        "burstTime" : 0.075,
        "burstCount" : 3,
        "fireType" : "burst",
    The muzzle flash has its own section within the "animationParts" object. Just set its value to an empty string to make the shot have no flash:
        "butt" : "",
        "middle" : "customrifle.png",
        "barrel" : "",
        "muzzleFlash" : ""
    TheWickedMesmerizer likes this.
  3. TheWickedMesmerizer

    TheWickedMesmerizer Void-Bound Voyager

    Thanks man, worked well on both!
  4. Zaakari

    Zaakari Pangalactic Porcupine

    You're welcome.
    Glad I could help.

Share This Page