Modding Help Particle orientation

Discussion in 'Starbound Modding' started by Otterbot1, Jul 12, 2019.

  1. Otterbot1

    Otterbot1 Aquatic Astronaut

    Hey there, I've been making a weapons mod for Starbound, and started working on a Raygun from Call of Duty Zombies, but I'm having an issue with the particles left behind by the projectile.
    [​IMG]
    See, what I want is for those green particles to line up in the direction that the projectile is moving, but they kinda just rotate wherever they want. Is there a way to fix this?

    rayguntrail.particle:
    Code:
    {
      "kind" : "rayguntrail",
      "definition" : {
        "type" : "animated",
        "animation" : "/animations/rayguntrail/rayguntrail.animation",
        "position" : [0, 0],
        "finalVelocity" : [0, 0],
        "approach" : [50, 50],
        "destructionAction" : "shrink",
        "destructionTime" : 0.85,
        "fade" : 1,
        "size" : 1,
        "layer" : "back",
        "timeToLive" : 0.45,
        "variance" : {
          "initialVelocity" : [2.0, 2.0],
          "rotation" : 180
        }
      }
    }
    I tried messing with "rotation" by setting it to zero, but that just made them orient parallel to the ground.

    raygunblast.projectile:
    Code:
    {
      "projectileName": "raygunblast",
      "image": "raygunblast.png",
      "animationCycle": 0.4,
      "frameNumber": 4,
      "damageKindImage": "icon.png",
      "lightColor": [ 134, 255, 40 ],
      "pointLight": true,
      "actionOnReap": [
        {
          "action": "config",
          "file": "/projectiles/explosions/tacticalexplosions/raygunexplosion.config"
        }
      ],
    
      "statusEffects": [],
      "emitters": [ "rayguntrail" ],
      "flippable": true,
      "power": 1.0,
      "speed": 80.0,
      "acceleration": 0,
      "physics": "laser",
      "damageType": "NoDamage",
      "damageKind": "mann"
    }
     
  2. Otterbot1

    Otterbot1 Aquatic Astronaut

    Anyone got anything? Still no solution found...
     

Share This Page