Fractal Softworks Forum

Starsector => Mods => Modding => Topic started by: Wolvaras on May 06, 2020, 06:12:16 AM

Title: Disabling ship control whilst firing a weapon
Post by: Wolvaras on May 06, 2020, 06:12:16 AM
Hey everyone!

I'm dipping my toes into the modding scene by editing the fantastically fun IBB Yamato ship. Specifically, its Wave Motion Gun. My goal is to make it more of a devestating siege weapon like in the anime, but still within the gameplay context of Starsector.
To that end I have found and edited the required .wpn and weapon_data file. Now I'm looking to have it disable ship weapons, shields, and engines whilst it's charging and firing, to simulate all power being diverted to the gun.

My question: How can I achieve this? Is there function already available for it? If not, how would I go about to script it in myself?

Thank you.  :D

EDIT: After some researching on my own, I believe the best way is to couple the Wave Motion Gun to a Ship System and set the restrictions there. Though with little Java coding experience I'm still trying to figure that part out.
Title: Re: Disabling ship control whilst firing a weapon
Post by: Histidine on May 06, 2020, 06:38:00 PM
A weapon every frame script should be capable of the task, although that also requires Java coding.
Title: Re: Disabling ship control whilst firing a weapon
Post by: ShadowDragon8685 on May 07, 2020, 10:58:15 AM
The big ***-off siege ship from Sylphon works like that, IIRC. You could take a look at that.
Title: Re: Disabling ship control whilst firing a weapon
Post by: Wolvaras on May 07, 2020, 01:22:39 PM
Thanks for the heads-up! I checked it out and it does seem to be doing what I had in mind. I'll try and rig something up with this new knowledge  :)