Modding Help How to change weapon energy cost

Discussion in 'Starbound Modding' started by Spacedino, Dec 25, 2015.

  1. Spacedino

    Spacedino Ketchup Robot

    I seem to remember there being a way, like a cost multiplier or something.
    Of course setting the cost per shot directly would be perfect but i don't know if thats possible.
    To me it looks like the Starbound engine just calculates the cost based on fire rate and weapon damage, but since projectiles can be scripted now that system seems horribly outdated.
     
  2. C0bra5

    C0bra5 Oxygen Tank

    it's in the leveling/levelingmultipliers.functions

    though be carefull this will affect all the weapons in the game.
     
  3. Spacedino

    Spacedino Ketchup Robot

    Thats no use, I only want to change one weapon.
     
  4. lazarus78

    lazarus78 The Waste of Time

    If you use the *.activeitem format for your weapon, then it is directly changable. There is a setting for it.
     
  5. Spacedino

    Spacedino Ketchup Robot

    Guess I will have to try that. Shame that i can't just use the .gun format since its so simple to use.
     
  6. lazarus78

    lazarus78 The Waste of Time

    The activeitem format is easy too, plus it allows for alt abilities if you wish. The old format is going to be phased out over time.
     
  7. Spacedino

    Spacedino Ketchup Robot

    Is it gonna be phased out completely? For all items, so there are only activeitems?
    Hmm then it may be worth it to learn this new format.
     
  8. lazarus78

    lazarus78 The Waste of Time

    Basically, yes. I don't think they are going to remove functionality of the old way, but their plan is moving everything over to the activeitem format for consistancy.
     

Share This Page