Modding Discussion So I think i figured something out.

Discussion in 'Starbound Modding' started by Thor, Dec 13, 2013.

  1. Thor

    Thor Void-Bound Voyager

    Im guessing certain properties can only be applied to certain item types.

    for example:

    Code:
    "itemName" : "flashlight",
      "inventoryIcon" : "flashlighticon.png",
      "dropCollision" : [-4.0, -3.0, 4.0, 3.0],
      "rarity" : "Rare",
      "maxStack" : 1,
      "description" : "A handy flashlight! Seems to be powered by my energy pool.",
      "shortdescription" : "Flashlight",
      "largeImage" : "flashlightlarge.png",
      "inspectionKind" : "gun",
      "image" : "flashlight.png",
      "recoilTime" : 0.1,
      "handPosition" : [-2, 0],
      "firePosition" : [12, 3],
      "fireTime" : 0.5,
      "twoHanded" : false,
      "lightPosition" : [4, 0],
      "lightColor" : [255, 255, 255],
      "beamWidth" : 0.1,
      "ambientFactor" : 10.5,
     
      "projectileType" : "bullet-1",
      "projectile" : {
    
        "color" : [10, 255, 10]
      },
     
        "muzzleEffect" : {
        "animation" : "/animations/muzzleflash/bulletmuzzle3/bulletmuzzle3.animation",
        "fireSound" : [ { "file" : "/sfx/gun/pistol2.wav" } ]
      }
    }
    
    That will shoot things when it's named flashlight.gun, but light will not shine.

    If you rename it flashlight.flashlight, light doth shine.


    ;-; theregoesmyideas.
     
  2. JStheguy

    JStheguy Void-Bound Voyager

    So we are stuck with Doom 3 guns?
     

Share This Page