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

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1225
    • View Profile
[REQUEST] Base Defense: Aliens Have Chance to Spawn
« on: May 13, 2019, 01:34:31 am »
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.

Offline Bobit

  • Sergeant
  • **
  • Posts: 37
    • 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

  • Sergeant
  • **
  • Posts: 34
    • 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: 52
    • 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