OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: PSPSoldier534 on 08 Feb 2009, 04:42:38

Title: Questionable AI
Post by: PSPSoldier534 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.)
Title: Re: Questionable AI
Post by: Mr.Peanut 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.
Title: Re: Questionable AI
Post by: Walter_E_Kurtz 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.
Title: Re: Questionable AI
Post by: Mr.Peanut 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.