Jump to content

[MOD]better mining and salvage turrets with extended range


weedworm31

Recommended Posts

hello since i haven't seen a mod exactly like this put up before i decided to post my changes for mining and salvage turrets.

 

what this mod does is up the range and damage of mining and salvage turrets by 4x while also editing the inventoryitemprice.lua so that the cost of mining and salvage turrets doesn't multiply by 8 since the damage and range up the item price a lot. with this setup you will have a 3 range or higher turret that also works 4x faster for roughly the same cost as vanilla turrets. 

 

an unfortunate side effect of upping salvage laser damage is that they become pretty good early game weapons vs non shielded ships but overall they really arn't much better than a real weapon at titanium level+

 

to install simply copy the data folder from the file into the avorion directory. you may want to make a backup of the inventoryitemprice.lua and turretgenerator.lua for saftey.

 

so far ive had no issues with it on version 0.19 and the new 0.20

 

:edit: forgot to mention these changes dont apply to the drone lasers or the 2 mining lasers you start the game with you have to buy newly generated ones or find them as drops

bmaster_mod.zip

Link to comment
Share on other sites

  • 2 weeks later...

Really useful change, thanks for this!

 

One thing I noticed is that extending the range of salvaging lasers can mess with the salvaging AI: it only searches a range of 1.5 km around itself for loot drops because it thinks that should be more than enough with the default short lasers.  That means it sometimes leaves behind loot it salvages when moving on to other wrecks.

 

You can fix this by editing data/scripts/entity/ai/salvage.lua (in 0.20+), at the lines:

 

for _, loot in pairs(loots) do
        if loot:isCollectable(ship) and distance2(loot.translationf, ship.translationf) < 150 * 150 then
            if stuckLoot[loot.index.string] ~= true then
                minedLoot = loot
                return
            end
        end
    end

 

and changing the 150 to something more appropriate to the new laser range.

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...