Home   Help Search Login Register  

Author Topic: Questionable AI  (Read 1257 times)

0 Members and 1 Guest are viewing this topic.

Offline PSPSoldier534

  • Members
  • *
Questionable AI
« on: 08 Feb 2009, 04:42:38 »
Just wondering if it would be possible to upgrade the AI. I've seen several AI upgrade mods, and they work, but they aren't very intelligent (as in a soldier just sits picking his nose :D while I'm dead in his face just standing there.)

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Questionable AI
« Reply #1 on: 14 Feb 2009, 18:51:47 »
No, not really. You could have a script running either for each enemy unit or looping through all enemy units, that calculates the distance between all enemy and all friendly units, and whether one unit is facing another, and then reveal the unit. For either a large number of enemies, or a large number of friendlies, this would probably cause an unacceptable amount of lag. It also would not be able to tell when one unit has a clear line of sight to the other.

If was possible, someone would have done it by now. Instead I suggest turning up the enemy skill to full, and giving the enemy HD weapons/ammo.
urp!

Walter_E_Kurtz

  • Guest
Re: Questionable AI
« Reply #2 on: 15 Feb 2009, 02:19:09 »
You could try increasing the

sensitivity= ... ;    <- all units including vehicles have this attribute
sensitivityEar= ... ;    <- applies only to men / soldiers

values in the config.cpp by a couple of points.


If a soldier is set to 'careless' and doesn't spot you, that was his last problem.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Questionable AI
« Reply #3 on: 17 Feb 2009, 16:35:40 »
Should be noted that Kurtz' solution is addon based i.e. you have to unpbo a file, edit the config.cpp and then re-pbo it. Don't know which file has the base man classes in it. If you want to persue this avenue, post a question in the OFP Addons board.
urp!