Forums » Community Projects

TurretHop - Quickly select your own turrets.

Jul 25, 2013 abortretryfail link
TurretHop - Quickly select your own turrets.

This is a small plugin that makes a user command you can use to quickly select one of your ship's turrets from the pilot's seat.

You can bind it to a key by first making an alias.

/alias turret3 "turrethop 3"
/bind x turret3
Jul 25, 2013 Pizzasgood link
Did you make a mistake on line 10, or are do we really use PurchaseMerchandiseItem() to enter a turret? That just seems a little too pants-on-head even for GS.
Jul 25, 2013 meridian link
You should add an option to kick the existing gunner from a turret so you can man it yourself.
Jul 26, 2013 Kierky link
Thanks ARF.

And yes, Rin, I used it in one of my own plugins, seems to be the only way i've found.
Jul 26, 2013 abortretryfail link
It's totally pants-on-head. :D

Anyway, v1.1 now lets you switch directly from one turret to the next so you don't accidentally /activate and jump in a fight.
Jul 27, 2013 TheRedSpy link
Local pants_on_head = PurchaseMerchaniseItem(wardrobe.headpants)


Print("when I test code, I do it in production!")
Jul 27, 2013 Lord~spidey link
/me just had a pretty good laugh
Jul 29, 2013 DE-A link
Aug 27, 2013 abortretryfail link
I've got an update in the works to make this work for /gunner invited players too, but there's some hangups.

If anyone's around who wants to help me test it, let me know in-game.
Sep 08, 2013 abortretryfail link
v1.2 is up. This one tries to keep your target when switching turrets since the game de-targets every time you enter/leave.
Chat messages also now include the equipped weapon.
Jun 07, 2015 abortretryfail link
v1.4 is up. Fixes the lockout to stop the switch between turrets from knocking your ship out of turbo.

Dunno why v1.3 didn't get posted, but this also includes whatever I fixed in that version.