Author Topic: ability for aliens ai to use a medi-kit weapon  (Read 3612 times)

Offline kikimoristan

  • Commander
  • *****
  • Posts: 647
    • View Profile
ability for aliens ai to use a medi-kit weapon
« on: August 16, 2015, 10:49:22 pm »
pretty basic. i guess take the regular ai but make it target hurt friendlies instead. perhaps only the ability to use heal health not restore stamina or revive.

not sure how do-able this is.

ideally i'd like to be able to make some for of healing units for enemies and make medics actually act like medics.

Offline kikimoristan

  • Commander
  • *****
  • Posts: 647
    • View Profile
Re: ability for aliens ai to use a medi-kit weapon
« Reply #1 on: August 16, 2015, 10:57:30 pm »
i mean if friendly units are hurt and if you have a medi-kit with charges left then act out the ai. might be too complicated i guess.

Offline Surrealistik

  • Colonel
  • ****
  • Posts: 486
    • View Profile
Re: ability for aliens ai to use a medi-kit weapon
« Reply #2 on: August 16, 2015, 11:13:31 pm »
Yeah, would be cool to see alien medics actually acting like it; don't think it would be too hard to program; just have it move to the nearest alien with fatal wounds and use the medikit item.

Offline kikimoristan

  • Commander
  • *****
  • Posts: 647
    • View Profile
Re: ability for aliens ai to use a medi-kit weapon
« Reply #3 on: August 16, 2015, 11:20:15 pm »
well i wouldn't say is not too hard to program. probably it is. i didn't program any ai myself and although i can code i'm not pro at c++ . may be somewhat difficult / not really necessary atm.

it would deff be a nice feature to have to complete the ai by allowing enemies to do things only human players can making battles a tad bit more challenging when medics are present.

Offline Shoes

  • Commander
  • *****
  • Posts: 502
    • View Profile
Re: ability for aliens ai to use a medi-kit weapon
« Reply #4 on: August 16, 2015, 11:41:04 pm »
A good first step would have hurt aliens heal themselves. Once you can do that, you can look towards making aliens heal each other.

Offline kikimoristan

  • Commander
  • *****
  • Posts: 647
    • View Profile
Re: ability for aliens ai to use a medi-kit weapon
« Reply #5 on: August 17, 2015, 12:25:15 am »
or even if there is a hurt friendly close by (including yourself) and you have enough TU for walk to/use medi-kit [and enough charges left] then do that to the closest one rather than shoot at enemies. if by walking you meet enemy (x-com) unit then reevalue ai package for shoot rather than heal

[edited]
« Last Edit: August 17, 2015, 12:27:23 am by tollworkout »

Offline Surrealistik

  • Colonel
  • ****
  • Posts: 486
    • View Profile
Re: ability for aliens ai to use a medi-kit weapon
« Reply #6 on: August 17, 2015, 01:02:21 am »
Shooting should take precedence over healing for sure.