Author Topic: Please Stop Destroying Civil Ships!  (Read 570 times)

GOForce3

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    24
    • View Profile
on: July 13, 2018, 06:24:19 PM
One easy (or I think it would be easy) fix that would solve a major problem for me is if there will be a behavior setting to tell your ships NOT to attack civil ships that way if they're escorting you or your fighters are defending you they don't go off and destroy a civil ship and ruin your rep with a friendly faction.  Kind of like the behavior setting in the inventory tab where you can choose whether or not to pick up stolen goods, but I would probably put the setting in question in the menu where you can see all your ships.

It would also be really nice because you can tell your ships to patrol a sector and not worry about them attacking every transport from an enemy faction and wreck your rep, just attack military ships, Xsotan and pirate ships.  Or maybe even have a third option to only attack Xsotan and pirate ships and not other faction ships. 



h0yer

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    24
    • View Profile
on: July 24, 2018, 11:19:42 AM
I'm having the same issue over and over again:

My escorting vessels launch their fighters when enemies are around and they attack both enemies and friendlies.
They seem to stop attacking friendlies a few seconds after the last enemy exploded, if the friendlies haven't turned red already^^
Pursue Happyness With Diligence
-Mastodon



Shrooblord

  • Hero Member
  • *****
  • Status:
    Offline
    Posts:
    523
    • View Profile
on: July 26, 2018, 12:27:06 PM
This should be incredibly easy to mod in. There's already code in-place to check whether a certain ship is a Civilian craft, i.e. ship.isCivil() iirc. The only thing you'd need to do is to modify the target-acquiring functions in the patrol.lua and related scripts to first check whether the "enemy" ship is Civilian, and if it is, not to attack it.

To make this behaviour toggleable by the user at run-time will require more effort, as you then also have to build in some UI elements somewhere. But making "don't attack Civilians unless I expressly make you" the default is a cakewalk.

Anyone interested in taking on this task? I'm currently still very much engaged turning player Warp Gates into a reality.
Shrooblord



GOForce3

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    24
    • View Profile
on: July 26, 2018, 11:12:23 PM
Good idea.  I've never modded this game before, but I'll take a look at that and see if I can figure that out.  But for someone who's an experienced modder, this would be a pretty easy project, including adding the UI options.