Modding Help Help with gun mod

Discussion in 'Starbound Modding' started by romatschka, Jan 29, 2014.

  1. romatschka

    romatschka Orbital Explorer

    I thiink thats used in the water sword. (With the bubbles)
     
  2. Archer

    Archer Spaceman Spiff

    This is used by the watersword:
    Code:
      "firePosition" : [15.5, 4.5],
    Btw, what the watersword does is something else, I think it randomizes the projectiles from within the "swoosh" projectile.
    Code:
    {
      "projectileName" : "waterswoosh",
      "frames" : "waterswoosh.png",
      "animationCycle" : 0.2,
      "level" : 1,
      "frameNumber" : 3,
      "speed" : 0,
      "orientationLocked" : true,
      "damagePoly" : [ [-40, 24.5], [3.5, 24.5], [15.5, 21.5], [28.5, 15.5], [36.5, 7.5], [40.5, -1.5], [40.5, -12.5], [32.5, -24.5], [-12, -24.5] ],
      "animationLoops" : false,
      "piercing" : true,
      "flippable" : true,
      "damageKind" : "slash",
      "effectSources" : [ "sparkles" ],
    
    
      "actionOnReap" : [
    
        {
          "action" : "projectile",
          "type" : "bubbles",
          "fuzzAngle" : 10,
          "inheritDamageFactor" : 0.2,
          "angleAdjust" : 35
        },
        {
          "action" : "projectile",
          "type" : "bubbles",
          "fuzzAngle" : 10,
          "inheritDamageFactor" : 0.2,
          "angleAdjust" : -35
        },
        {
          "action" : "projectile",
          "type" : "bubbles",
          "fuzzAngle" : 10,
          "inheritDamageFactor" : 0.2,
          "angleAdjust" : 1
        },
        {
          "action" : "projectile",
          "type" : "bubbles",
          "fuzzAngle" : 10,
          "inheritDamageFactor" : 0.2,
          "angleAdjust" : -18
        },
        {
          "action" : "projectile",
          "type" : "bubbles",
          "fuzzAngle" : 10,
          "inheritDamageFactor" : 0.2,
          "angleAdjust" : 18
        }
    
      ]
    }
    Perhaps this will give you ideas, but you'll need a custom projectile and you need to find a setting to change its spawning location :p
     
    romatschka likes this.
  3. romatschka

    romatschka Orbital Explorer

    Ill just use acurracy --" Its too hard for me XP
     
  4. Archer

    Archer Spaceman Spiff

  5. romatschka

    romatschka Orbital Explorer

    Like that?? "firePosition" : [rand(12),rand(3)],
     
  6. romatschka

    romatschka Orbital Explorer

  7. romatschka

    romatschka Orbital Explorer

    Nope, its generic.
     
  8. Archer

    Archer Spaceman Spiff

    First one shows all variables for projectiles, second one shows all variables for guns, helpful when modding.

    The only way your minigun can be made atm I think is by faking it with a particle effect and using invisible bullets, but it wouldn't look as cool and might even look weird at times.
     
    romatschka likes this.
  9. Archer

    Archer Spaceman Spiff

    How about this:
    Code:
    Math.floor(Math.random(5)+1)
    With the 5 being any number you want, so your code would be:

    Code:
    "fireposition" : Math.floor(Math.random(5)+1),
     
    romatschka likes this.
  10. romatschka

    romatschka Orbital Explorer

    Im totally unexperienced :rofl: . Cant make particles . Ill just use accuracy and small bullets.
     
  11. romatschka

    romatschka Orbital Explorer

    lets try
     
  12. romatschka

    romatschka Orbital Explorer

    And what should i do with accuracy. Should i put it in the gun or in the proj
     
  13. romatschka

    romatschka Orbital Explorer

    nope, its green .
     
  14. Archer

    Archer Spaceman Spiff

    accuracy is for the gun ;P

    Then there's no way to do it yet as my guess.
     
    romatschka likes this.
  15. romatschka

    romatschka Orbital Explorer

    accuracy doesnt work

    or there are minimal changes
     
  16. Archer

    Archer Spaceman Spiff

    Damn, it's only supported by random guns... How awkward.

    You can do something like with the watersword, projectiles that shoot in different directions, or you can try to use
    Code:
    "spread" : 3
    with a high fire rate. It will shoot multiple bullets at the same time, but they will be randomly angled. I think it will work well for a minigun.
     
    romatschka likes this.
  17. romatschka

    romatschka Orbital Explorer

    yeppp ill try that out. An other idea: I could make a random gun. The shields are random too, so why shouldnt it work with guns?
     
    Archer likes this.
  18. Archer

    Archer Spaceman Spiff

    Might be tough to test it, but you can try that yea :p
     
  19. romatschka

    romatschka Orbital Explorer

    key i "maybe" will :rofl:
     
  20. romatschka

    romatschka Orbital Explorer

    Looks awesome. Ill send you the file so you can look at it :rofl:.
     
    Archer likes this.

Share This Page