Avorion

Avorion

29 ratings
Arsenal Extension - Helix Cannon
   
Award
Favorite
Favorited
Unfavorite
Mods: Mod
File Size
Posted
Updated
430.534 KB
4 Jul, 2021 @ 10:27pm
23 Jan @ 6:04am
12 Change Notes ( view )

Subscribe to download
Arsenal Extension - Helix Cannon

In 2 collections by KnifeHeart
Descent Weapons
4 items
Arsenal Extensions
12 items
Description
Adds a new weapon to the game inspired by Descent 2's Helix Cannon. The Helix Cannon is an energy weapon that alternates between firing a blast of five tightly-grouped spread of shots, then five loosely-grouped spread of shots, then five extremely loosely-grouped spread of shots. Excellent for fighting multiple enemy ships at once. Compared to Spreadfire Cannons, Helix Cannons are more rare and can be found slightly closer to the center of the galaxy.

===

Thanks to TESLA for the turret for the thumbnail! The in-game Helix Cannon will look similar to a standard plasma gun.
7 Comments
KnifeHeart  [author] 23 Jan @ 12:32pm 
Issue w/ Alliances should be fixed. Please let me know if it's not.
KnifeHeart  [author] 17 Jan @ 11:27pm 
I guess you can tell I don't use alliances much, lol. Thanks for pointing me to the specific line.
KnifeHeart  [author] 17 Jan @ 11:20pm 
I'll take a look at it sometime later this week.
[uRxP]DrChocolate 17 Jan @ 10:33pm 
Hi @KnifeHeart, @Bugget! is right - you have an issue in your code:

data\scripts\entity\merchants\fighterfactory.lua line 8:

local turret = Player():getInventory():find(idx)

If the turret is actually in the inventory of an alliance, instead of the player, this will be nil. It then passes the nil object down the chain to other consumers of the function, which causes an error.

This means that no player can build fighters from an alliance ship/inventory, clicking the button will silently fail.
Bubbet! 27 Dec, 2023 @ 9:18pm 
You need to account for alliances in your fighter factory hook, it throws with nil value on line 9 because it cant find the turret.
KnifeHeart  [author] 1 Aug, 2021 @ 5:31pm 
This mod is now 2.0 compatible.
TESLA 6 Jul, 2021 @ 1:43pm 
Cool stuff!