Author Topic: [DONE] [REQUEST] Base Defense: Aliens Have Chance to Spawn  (Read 5940 times)

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1512
    • View Profile
Feature request: add mod ability--in a base defense mission, the spawn chance of each alien is multiplied by the fraction of remaining HP of the craft when it touched down. For example, if it has 30% remaining HP after getting past base defenses, then each alien which would have otherwise spawned has a 70% chance to fail to spawn.


Purpose: To give base defense more granularity; where previously, failing to completely destroy the craft resulted in zero value of defense facilities, now any damage helps. The result is a gradient of effect as opposed to the binary result of the ship either coming in whole or not at all.

Example code:
Code: [Select]
facilities:
  - type: STR_MISSILE_DEFENSES
    defenseProgressiveDamage: true

Potential uses:
 - A.) To make sure that an inadequate defense facility setup still has some value, and that weaker defense types have some reason to ever be used.

 - B.) Weaken defense facilities and essentially ensure UFOs will land. The purpose of defenses is only to reduce the incoming fight.

 - C.) Hard-difficulty mod--To punish player for not having adequate defenses by a certain time frame. Increasingly larger and sturdier ships attack the player's base over time. Punishment level is dependent on how lacking the defenses are.
« Last Edit: September 18, 2019, 10:37:09 am by Meridian »

Offline Bobit

  • Colonel
  • ****
  • Posts: 186
    • View Profile
Re: [REQUEST] Base Defense: Aliens Have Chance to Spawn
« Reply #1 on: May 15, 2019, 06:54:55 am »
This would be a  nice feature to have. Current ways to implement it are:

1) Simply have scripts that check for items that the defense facilities have and if so kill aliens.

2) Just give defense facilities some useful automated turrets. It's not exactly what you want but serves a similar purpose. Mines for example would be very likely to simply result in a fixed amount of killed enemies. Or you can even set them to have enemy spawn points where the enemies are instantly killed.

3) Use the missile strike system, where some UFOs just destroy facilities without base defense, as outlined at https://openxcom.org/forum/index.php/topic,6668.0.html
« Last Edit: May 15, 2019, 06:57:51 am by Bobit »

Offline Finnik

  • Commander
  • *****
  • Posts: 508
  • Finnik#0257
    • View Profile
Re: [REQUEST] Base Defense: Aliens Have Chance to Spawn
« Reply #2 on: May 15, 2019, 12:44:02 pm »
I like that idea, it would be great to have it. id like to have some low-level defense for that period, when I can't afford powerful enough to destroy the ufo

Offline animal310

  • Captain
  • ***
  • Posts: 54
    • View Profile
Re: [REQUEST] Base Defense: Aliens Have Chance to Spawn
« Reply #3 on: June 11, 2019, 01:44:01 am »
Yeah this would be a great option. Base defences seems to be the one area that continues to be neglected but I think could have great potential. Unfortunately most of the base defences are usless at the moment. Another great proposal for base defences is the following by rev but unfotunatley seems never to have been used  :'(

https://openxcom.org/forum/index.php/topic,3513.45.html

Offline Finnik

  • Commander
  • *****
  • Posts: 508
  • Finnik#0257
    • View Profile
Re: [REQUEST] Base Defense: Aliens Have Chance to Spawn
« Reply #4 on: July 27, 2019, 06:48:07 pm »
we can have it as a global option, say, allowDefenseProgressiveDamage
If true, on the base defense map generations there will be fewer aliens, as a function of damage in % of its health. Or maybe something more interesting with calculating its health under shields, so damage to shields only doesn't reduce aliens counts spawned

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: [REQUEST] Base Defense: Aliens Have Chance to Spawn
« Reply #5 on: July 27, 2019, 09:31:24 pm »
Added.

Code: [Select]
lessAliensDuringBaseDefense: true    # default false

Offline Finnik

  • Commander
  • *****
  • Posts: 508
  • Finnik#0257
    • View Profile
Re: [REQUEST] Base Defense: Aliens Have Chance to Spawn
« Reply #6 on: July 27, 2019, 11:02:16 pm »
Added.

Code: [Select]
lessAliensDuringBaseDefense: true    # default false

Oh, thanks!

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1512
    • View Profile
Re: [REQUEST] Base Defense: Aliens Have Chance to Spawn
« Reply #7 on: July 29, 2019, 12:52:41 am »
Thanks so much!!