Modding Help Multiple muzzleEffects

Discussion in 'Starbound Modding' started by HalcyonXIII, Dec 16, 2013.

  1. HalcyonXIII

    HalcyonXIII Big Damn Hero

    Hi. I've recently started creating a mod for Starbound, a familiar gun with a power projectile.
    This is the relevant part of it:
    Code:
    ...
    "fireOnRelease" : true,
    
    "projectileType" : "plasmadud",
    "powerProjectileType" : "plasmaburst",
    "powerProjectileTime" : [1.5, 2.8],
    "projectile" :
    {
    "power" : 150,
    "powerCurve" : "bfgTimeMultiplier",
    "speed" : 20,
    "speedCurve" : "bfgTimeMultiplier",
    "color" : [10, 255, 55]
    },
    
    "muzzleEffect" :
    {
      "animation" : "/animations/muzzleflash/plasmamuzzle6/plasmamuzzle6.animation",
      "fireSound" : [ { "file" : "/sfx/gun/plasma_sniper4.wav" } ]
    },
    ...
    I have two projectiles here; the normal 'plasmadud', and the power 'plasmaburst'. As it is, the same muzzleEffect is used when either are spawned.
    What I would like to do is define a different muzzleEffect for each of the two projectile types. Is this possible?
     
  2. Nightmares

    Nightmares Scruffy Nerf-Herder

    "muzzleFlashes" : [
    "/animations/muzzleflash/bulletmuzzle1/animation1.animation",
    "/animations/muzzleflash/bulletmuzzle2/animation2.animation",
    "/animations/muzzleflash/bulletmuzzle3/animation3.animation"
    ],

    "fireSound" : [ "/sfx/gun/mp5.wav" ],

    Edit: still will probably only play one of them, come to think of it
     
    Last edited: Dec 17, 2013

Share This Page