Author Topic: Chance that an opponent MVAM ship separates?  (Read 537 times)

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Chance that an opponent MVAM ship separates?
« on: June 16, 2019, 12:39:18 AM »
i completely forge right now, but i know there is a script somewhere that determines whether or not an almost-destroyed MVAM ship will separate or not, like a % chance or value or whatever that it will or might...
does this sound familiar to anyone also?

Offline KrrKs

  • Posts: 461
  • Cookies: 25
Re: Chance that an opponent MVAM ship separates?
« Reply #1 on: June 16, 2019, 11:15:15 AM »
Apparently that is controlled solely by the ship's mvam plugin in Custom\Autoload\Mvam.

There are two values:
  • AiSepAbility set to 1 allows the ai ships to seperate at all. If this is 0 they should not seperate at all
  • def CheckSeperate (pShip) contains the logic for whether or not the ai ship should seperate at the current situation

The Prometheus mvam CheckSeperate  function e.g., checks for the number or enemy ships, and hull condition. And also applies a random value to that.