Page 1 of 1
AI for COM shooter
Posted: 03 Jan 2007, 05:00
by CaptainMaim
How hard would it be to make an AI for the mod "com shooter"?
Posted: 03 Jan 2007, 14:22
by AF
A number of people report already having NTai configs that work albeit not very well.
Posted: 03 Jan 2007, 15:19
by 1v0ry_k1ng
should make an NTAI setting for single unit mods like com shooter and war EV, where it just moves on a patrol route around the whole map and moves towards an enemy when one comes in range then has 1 of 2 settings, engage from max range or engage from min range (for pyros and things that need to get close as possible)
Posted: 03 Jan 2007, 17:48
by bma
For my NTAI config, I made the units move randomly, and set them to both Attacker and Scouter. They don't attack too well though ie. they must be within a certain range before they actually start attacking you, even if they have the ability to attack you from a further distance
Posted: 03 Jan 2007, 20:15
by AF
NTai units wont actively move to a far away attack point unless their group is large enough, which is impossible in fps mods atm.
Thus in the next version of toolkit you'll be able to set the initial size of the first attack group.
Posted: 04 Jan 2007, 02:31
by CaptainMaim
DO you think you can get it to navigate a maze?
My best solution so far is to take 3 braindead AI and give them a long involved path and looping through the "maze" map and then hunt them down. Since they don't fire their D-Gun like weapons it's not too hard but I still get killed by concussion...
Posted: 04 Jan 2007, 06:38
by AF
The next NTai toolkit will allow you to set the initial attack group size to 1 allowing NTai's main targetting routine to shunt the commander around when set to one. All thats needed then is an "is_base" keyword and some b_retreat b_na and b_rand_move orders scattered in a longwinded tasklist.
b_na will halt the tasklist allowing the attacking routines to carry on unhindered.
b_retreat makes it retreat to the nearest base marker. When factories are built base markers are set by them, but since this is an fps mod we need to force NTai todo it using "is_base" which will make the starting position its base.
Posted: 04 Jan 2007, 10:03
by CaptainMaim
That sounds good. Do you think it'll work on the "Maze" map? I like that one for playing FPS games, it's more fun than regular maps and if you press F2 you can see dozens of ways to get over certain barriers, but not all. Can it handle that?
Posted: 05 Jan 2007, 14:26
by AF
NTai doesnt handle pathfinding at all, thats the spring engines job atm, and the spring engine has no distinction between hills and such, just blocking and nonblocking areas.