Jump to content
  • 11
Sign in to follow this  
Hello There

Ships calling for help die too fast

Suggestion

The event where a merchant ship is being attacked by a few pirates is a neat idea. However currently the pirates kill the ship way too fast. You do not have a chance to defeat the pirates. The ship dies before you can even see where the event spawned in the sector. It'd be helpful if you had a little more time to actually fight the pirates.

  • Like 2
  • Sad 1

Share this post


Link to post
Share on other sites

1 answer to this suggestion

Recommended Posts

  • 0

This is pretty easily solvable via script. All the devs would have to do is something like this:

local hpFactor = 10 --Or another appropriate number.
if math.random() < 0.5 then
	traderShip = ShipGenerator.createTradingShip(traderFaction, MatrixLookUpPosition(-dir, vec3(0, 1, 0), traderPos))
else
	traderShip = ShipGenerator.createFreighterShip(traderFaction, MatrixLookUpPosition(-dir, vec3(0, 1, 0), traderPos))
end
local traderDurability = Durability(traderShip)
if traderDurability then traderDurability.maxDurabilityFactor = (traderDurability.maxDurabilityFactor or 0) + hpFactor end
traderShip:addScript("deleteonplayersleft.lua")
ShipAI(traderShip.index):setPassiveShooting(true)
traderShip:registerCallback("onDestroyed", "onTraderShipDestroyed")

 

  • Like 1

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×
×
  • Create New...