aliens

Author Topic: AI unit immune to zombification?  (Read 1365 times)

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
AI unit immune to zombification?
« on: April 24, 2024, 12:16:08 am »
Are AI units (both civilian and hostile) hardcoded immune to zombification?
Tried to I explicitly define
Code: [Select]
zombiImmune: false, but still immune.
What am I missing?
Thanks

edit: hostile only. civilian are zombified as expected
« Last Edit: April 24, 2024, 12:23:44 am by robin »

Offline CrazedHarpooner

  • Colonel
  • ****
  • Posts: 101
    • View Profile
Re: AI unit immune to zombification?
« Reply #1 on: April 24, 2024, 12:55:48 am »
Based on this https://openxcom.org/forum/index.php?topic=11259.msg161586#msg161586
they can be zombified, however it's not possible if the attacking unit is an MC hostile that you're forcing to attack another hostile.

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: AI unit immune to zombification?
« Reply #2 on: April 24, 2024, 02:13:38 am »
Not immune, more "zombifaction do not apply". If alien try apply this effect on another alien effect is canceled.
Any other combination should work, player vs alien, civilian vs alien, player vs civilian.
If this behavior is not wanted, scripts can always override it (`to_transform`)  or even replace by custom logic (`unit.setSpawnUnit`).

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: AI unit immune to zombification?
« Reply #3 on: April 24, 2024, 11:35:20 pm »
I confirm that: player VS alien --> no zombification (at least in my mod).
I can live with that.
scripts are waaay beyond my brain.