Wow.
So how can I modify the existing py script in the tactical projectiles pathway for the photon torpedoes to allow it to use power per launch?
I'm a little confused on how you did it...
From your original post, you wanted to fire a modified torpedo from your pulse cannons?
The power cost example:
def GetPowerCost():
return(35.0)That number "
35.0" is the power cost percentage of launching that weapon.
All you have to do, get a existing pulsephaser.py script like from a Defiant class. Apply the conversions like the example posts above. Your basically making a micro-torpedo, and there are examples of that in the community, like DKealt's weapons pack.
You will also have to change the designated pulsephaser texture in the projectile.py script, to the one from your modified torpedo.
In theory it should work.