Author Topic: ZOMBIE TANKS  (Read 5236 times)

Offline SIMON BAILIE

  • Commander
  • *****
  • Posts: 676
    • View Profile
ZOMBIE TANKS
« on: September 05, 2014, 01:36:34 pm »
Is this a glitch on OPXC or just my current game? Anytime a tank scout doesn't survive a Chrysallid attack it turns into a Zombie next turn. Has anyone else experienced this as I thought if a HWP didn't survive such an attack it was just destroyed.

Offline LeBashar

  • Colonel
  • ****
  • Posts: 119
    • View Profile
Re: ZOMBIE TANKS
« Reply #1 on: September 05, 2014, 02:46:03 pm »
It's normal, there is actually no way to avoid 1x1 square HWP to be turned into zombie by chrysalids

Offline Arpia

  • Colonel
  • ****
  • Posts: 116
    • View Profile
Re: ZOMBIE TANKS
« Reply #2 on: September 05, 2014, 02:49:21 pm »
I dont think 1x1 units are treated as HWP's...
this means it can be zombified, is 'killed' instead of 'destroyed' and can be unconscious
« Last Edit: September 05, 2014, 03:14:27 pm by Arpia »

Offline kkmic

  • Commander
  • *****
  • Posts: 582
  • Undefined
    • View Profile
Re: ZOMBIE TANKS
« Reply #3 on: September 05, 2014, 06:11:33 pm »
Can you post a savedgame and the OXC version?

Offline SIMON BAILIE

  • Commander
  • *****
  • Posts: 676
    • View Profile
Re: ZOMBIE TANKS
« Reply #4 on: September 06, 2014, 05:04:47 pm »
Here is a couple of screenshots and the saved game file as requested

Offline SonOfRainbow

  • Squaddie
  • *
  • Posts: 7
    • View Profile
Re: ZOMBIE TANKS
« Reply #5 on: September 09, 2014, 03:12:00 am »
Think LeBashar is right. From the source code - the tank armor fits the 1x1 criteria (along with the rest) so it becomes a zombie. Maybe there needs a Armor or Unit class rule such a "Biological", "Mechanical", etc.

Code: [Select]
ExplosionBState::explode()
...

if (!_item->getRules()->getZombieUnit().empty()
    && victim
    && victim->getArmor()->getSize() == 1
    && victim->getSpawnUnit().empty()
    && victim->getOriginalFaction() != FACTION_HOSTILE)
    {
        https:// converts the victim to a zombie on death
        victim->setSpecialAbility(SPECAB_RESPAWN);
        victim->setSpawnUnit(_item->getRules()->getZombieUnit());
    }

Offline kkmic

  • Commander
  • *****
  • Posts: 582
  • Undefined
    • View Profile
Re: ZOMBIE TANKS
« Reply #6 on: September 09, 2014, 02:18:58 pm »
Please make a bug report in the bug tracker. Don't forget to attach the savedgame (will make testing easier). Also, mention that this happens for 1x1 tanks.