Akaito/reassembly-ai-mod-example

ONESHOT block feature (block self-destructs after firing once)

Owlfeathers asked for this feature 6 months ago — 8 comments

Owlfeathers commented 6 months ago

Would be useful for multi-stage missiles, exotic warhead missiles, consumable weaponry, and single-shot drones.

manylegged commented 6 months ago Admin

Owlfeathers - Yesterday at 10:26 PM I'd say just go with ONESHOT, but set it up so that if ONESHOT is applied to a weapon which has burstyness/roundsPerBurst/pulsesPerBurst defined, it self-destructs after one full burst rather than one shot. I can't really think of any time where you'd want to make a weapon burst fire, but self-destruct before a burst completes, so just bundling that into ONESHOT instead of making a separate ONEBURST probably shouldn't cause any problems?(edited)

| CalipsoTheNymph commented 6 months ago

Hey, @manylegged, I have an example of when a burstfire would be good! ONESHOT would be a great tool to jettison off parts of your ship that you don’t want anymore, or if a ship has multiple cores you could purposefully split it. If your ONESHOT block takes 10s to regrow and has a burst of fire that takes 10sec to complete, then you could use it to jettison a piece of your ship every 20sec. This can be done manually, but would be automated with the ALWAYSFIRE tag suggested in another thread. Thanks for reading!

Abstrusle commented 6 months ago

I think what he is saying is that you could just use ONESHOT to do what Owlfeathers is asking. If it's firing once anyways, there's no reason to make the burst shot not finish itself, otherwise just don't add a burst shot.

Abstrusle commented 6 months ago

We already have this feature. Just use ONESHOT.

| Owlfeathers commented 6 months ago

Yes, what I was suggesting in the post Arthur quoted is that if ONESHOT is applied to a weapon which fires in bursts, it should cause the block to self-destruct only once the entire burst is completed.

manylegged commented 6 months ago Admin

I appear to have implemented this at some point but it is called ONEUSE. Uh, give it a try? It does appear to handle bursts correctly but I haven't tested it very much.

manylegged commented 6 months ago Admin

implemented, closing.

Join the discussion!

Sign-in with GitHub to comment