Space Engineers

Space Engineers

Whip's Weapon Salvo Script
465 件のコメント
Kara Vaki 4月20日 21時16分 
Holy shit, I just set the custom data for the railguns to be 8 RPS and it went YEET
Kara Vaki 4月20日 19時10分 
neat!
Whiplash141  [作成者] 4月20日 17時58分 
You can certainly change the rate of fire to something faster via arguments or custom data. I personally do a 6 shot burst at 360 RPM for my cruiser
Kara Vaki 4月20日 17時24分 
I do wonder tho if I could make it fire in a rapid pulse of 8 shots per second.
Kara Vaki 4月20日 17時21分 
That I have very much noticed since one of my capital ships has a total of 24 railguns, with 8 being in the bow and the rest as twinrail turrets. all of them being large grid btw.
Whiplash141  [作成者] 4月20日 11時39分 
Lol that tracks. The default ROF that the script computes is what is needed for a "continuous" firing. It just so happens that large grid railguns take around 60 seconds between shots (20 for small grid railguns), so unless you have a bunch, there will be several seconds between shots.
Kara Vaki 4月20日 11時36分 
Nevermind I figured it out, the rate of fire is just SLOW AS MOLASSES XD
Kara Vaki 4月20日 11時04分 
I'm using the latest version
Whiplash141  [作成者] 4月20日 0時41分 
What version are you running? The most recent version should work fine with vanilla railguns with default settings,
Kara Vaki 4月19日 21時35分 
Safe to say it seems like I need to set up a few things for it to get a proper salvo going instead of it sputtering.
Kara Vaki 4月19日 21時25分 
As in when I pull the trigger by holding mouse 1, I have a ship that has a total of 8 railguns on the bow and when I hold down mouse 1 o fire them in sequence they kinda just, turn off way too fast to fire the full salvo.
Whiplash141  [作成者] 4月19日 21時04分 
"from the toolbar" meaning toggle fire?
Kara Vaki 4月19日 18時19分 
If I may ask, how does one get Railguns to fire in a salvo from the toolbar? cause when I tried it with it's base settings it did not seem to work.
McCloud Jr 4月13日 18時41分 
Just throwing this out there but this works great with Vanilla+ Framework and the Star Wars Weapon Pack (Vanilla+)

I've had zero issues
butcherbrood2 4月13日 16時01分 
@Whiplash141
Dang... guess i have to do it all manually then
Whiplash141  [作成者] 4月13日 15時56分 
That is correct. Weapon core is not compatible with the regular script API sadly
butcherbrood2 4月13日 15時20分 
@Whiplash141
I believe so, is weaponcore not compatible?
Whiplash141  [作成者] 4月13日 11時16分 
Are those weapons modded weapon core guns?
butcherbrood2 4月11日 13時45分 
@Whiplash141
it says 'Salvo group 1'
-ERROR: no weapons in group
it seems that the missiles i am trying to use aren't registering as weapon blocks.
WardenWolf 4月10日 18時35分 
Ah, makes sense.
Whiplash141  [作成者] 4月10日 0時19分 
"it actually does work with custom turret controllers if you just salvo the weapons on the controller, even though your notes say otherwise"

Salvo definitely works with CTCs that don't have extra rotors.

The issues come when you have a salvo group on a CTC that has a extra rotor setup controlled by TCES. Because of the limitations of the script API, I can't determine when the CTC is shooting, only when the individual weapons are being fired. I only give the CTC direct control over the weapons on the main rotors because, otherwise, the CTC could select a weapon on a different rotor as an aiming reference. What this means though is that the CTC only sends fire commands to a subset of your weapons. TCES tries to mirror the firing state of the weapons controlled by the CTC to the weapons on your extra rotors, but this means that the salvo script will not *see* that you have stopped firing until the script cycles to a weapon controlled by the CTC.
WardenWolf 4月9日 18時50分 
@Whiplash141, it actually does work with custom turret controllers if you just salvo the weapons on the controller, even though your notes say otherwise. I built one recently with 16 small railguns just to test, and it worked flawlessly during a meteor storm, scoring 3 hits in one firing sequence. Absolutely flawless, this and the other times it's fired.
WardenWolf 4月9日 12時43分 
@butcherbrood2, capitalization matters for a lot of things like this. Make sure it's exactly the same everywhere.
Whiplash141  [作成者] 4月8日 9時02分 
that doesnt sound like the script is even running. What does the the script display in terminal? Any errors?
butcherbrood2 4月8日 5時31分 
@Whiplash141 it fires all weapons at the same time; I have done the same thing with other turrets and it fires in bursts of 1, but it fires all weapons at the same time when I only want to fire one weapon when i press left click.
Whiplash141  [作成者] 4月7日 21時51分 
@butcherbrood2:

How many shots does it fire? One from each weapon in your salvo group in sequence? All at once? How many weapons are in the group and does the script see the right number of them?
butcherbrood2 4月7日 14時21分 
how can i fire a single missile (mod weapon not subgrid) with this? the argument is ["salvo group 3" --burst 1] but it fires all missiles. can someone help?
WardenWolf 2月10日 22時54分 
Oh, one thing you might want to add to your description: this works with custom turrets, too. I just tested a railgun turret with SALVO. It worked flawlessly. It fired individual shots instead of the whole thing all at once.
Whiplash141  [作成者] 2月8日 12時19分 
You can absolutely fire both groups simultaneously with the mouse. I do it all the time. You do not need to trigger them with a timer.

Also, even if you did want to manually trigger them, you still don't need a timer. You can create a (non salvo) group that contains both of your salvo groups and fire them using that container group.

My Weapons Group
-- Salvo Group 1
-- Salvo Group 2

My Weapons Group -> shoot once, etc.
WardenWolf 2月7日 7時10分 
Because then you have to trigger them separately and they won't have the same timing. I mean, you could do two groups and trigger them with Shoot on a timer block, but not quite the same as holding down the mouse button and shooting.
Whiplash141  [作成者] 2月7日 0時45分 
What is wrong with two salvo groups? Provided they have the same number if weapons, they should remain in sync
WardenWolf 2月6日 15時35分 
Darn. Was hoping you could do something like 1-1 and 1-2 or 1:0 and 1:1 to group weapons within a salvo.
Whiplash141  [作成者] 2月6日 1時09分 
Just have two separate salvo groups in that instance
WardenWolf 2月5日 20時23分 
Is it possible to have sets of weapons within the group? Like 2 and 4 fire at the same time, then 1 and 2 at the same time?
Whiplash141  [作成者] 1月24日 19時53分 
alphabetically, if you have twin digits, prefix that single digit numbers with a 0: 01 02 03 etc.
Cap Arcona 1月24日 18時45分 
Also, how does it determine firing order? It seems like it goes in the order that the blocks are listed in the control panel. This is a little bothersome because the control panel orders weapons categorically (ie, 1,10-19, 2, 20-29, 3, 30-39, etc). Having them fire in a specific order can reduce odd yaw and pitch moments for lower-mass ships that have an absurd number of guns.
Cap Arcona 1月24日 18時25分 
I've figured out a lot of stuff, but is it possible to set burst limits to mouse-click firing? I know how to pass the argument via timer block but... yeah.
Whiplash141  [作成者] 1月20日 9時00分 
yes, it should
CDClone 1月18日 18時19分 
could this work in combination with the turret controller? aka have home made turrets act automaticly like normal, but firering in salvo ?
Fake 1月17日 19時28分 
Thank you for the response
Whiplash141  [作成者] 1月17日 17時34分 
yes, it should
Fake 1月17日 17時32分 
Does this work with the weapons used on a CUSTOM made turret since theyre made with static weapons anyways?
ticklemyiguana 1月12日 11時42分 
Hey! I just wanted to share my appreciation for your work on these scripts. I've used several in recent builds and they even greatly improved quality of life as well as helped output some significant damage. Here's me sharing my most recent.

https://www.reddit.com/r/spaceengineers/s/j4roCahnzB

Thanks again!
miniccaveman2k2 2024年10月13日 7時35分 
what does the "Burst Count" part actually do? does it mean I can set actual firing bursts? such as 2rnd, 3rnd etc?
Whiplash141  [作成者] 2024年9月11日 10時07分 
No, but you can chain calls by triggering a timer that runs multiple separate arguments in its actions
Strong Hoov ✅ 2024年9月11日 1時28分 
Ah! Funny how some of the others dosen't require the ( -- ) part...
Also Whip if you wouldn't mind. Could I requsest an addition for your script?

I have this "Big ol fuck off" custom naval cannon design. that uses multible small grids cannons as it's main firepower. Could you add in a custom option to be able to group up those groupss as a "Single fire" unit? So i can use as the main fire.
(Basicly. I wanna be able to Group up X amounts of guns
"Say 18 cannons into as 1 Single group unit"
And then be able to use said groups of those together as a "Salvo Group" type)

Example:/ 12 cannons together as 1 "CustomTag" group // CustomNameTags=Cannon 1 2 and 3//
"Salvo Group Cannon 1+Cannon 2+Cannon 3 --burst 3"
Whiplash141  [作成者] 2024年9月2日 9時37分 
It is 100% necessary. The arguments require the format shown above in the table.
Strong Hoov ✅ 2024年9月2日 9時18分 
didn't think the -- was nessercy since i didn't require it with RPM/ RPS
Whiplash141  [作成者] 2024年9月2日 9時17分 
you aren't typing the -- like I did and like the instructions above show
Strong Hoov ✅ 2024年9月2日 7時37分 
Ya! That's what I thought. BUT.
The script dosen't wanna do any burst fire of (insert number) of shots... It's just fires normally.

example/ Salvo Group Cannons burst 4