Game Development Community

aiPlayer "AI" extensions question

by Nick Kossintsev · in Technical Issues · 04/28/2003 (9:29 am) · 6 replies

Hi,

I am using the AI bot extension by Stefan Beffy Moises and have noticed an interesting (albeit unwanted) effect. The bots who are out to kill you will pursue you but not attack you UNLESS you are in the air (e.g. jumping or falling). Any idea what might be causing this?
Furthermore, is it possible to get the bots to avoid you (e.g. jump or run away to avoid your shots)?

[EDIT]
Also, the bots seem to be lacking collision checking...I can't walk 'through' them, but my bullets/projectiles seem to have no effect. Also, the bots can, on occasion, occupy the same space at the same time (this looks really weird).
[/EDIT]

Thanks,

-Nick

#1
04/28/2003 (10:29 am)
Err, I dont have any of these problems, so I really dont know how to help ya... sorry... :/
What models are you using for the bots?
#2
04/28/2003 (12:23 pm)
I'm using my own player model...

The strangest thing is if I put the demo player model back in, it works fine - he runs and shoots and all that. But my own model just chases me...
Could it be that it requires some of the animations that I do not have? For example, I omitted LOOK, HEAD, LOOKSN, LOOKMS, and LOOKNW sequences.
Also, I only have one death animation - which causes a crash upon execution, but shows up correctly in the show tool.

Any ideas?
#3
04/28/2003 (3:22 pm)
Something I noticed while messing with the model for the last 3 hours: scaling it down to about 2 meters (height-wise) allows the bots to see me again...Perhaps the bots have a limit as to how far up they can aim/look?
#4
07/08/2003 (9:49 am)
The bots in my case follow me but are not shooting. I have set their inventory for ammo. I can shoot them and they die too. What could be the resaon? Can anyone please help?

edit....
I figured out. I added "%obj.setImageTrigger(0,true);" to functions Armour::OnShoot and similar ones in the aiplayer.cs file. In game.cs, in function GameConnection::onClientLeaveGame, I delete all the bots added. (just in case it might help someone :) )

end edit...

@Gabor,In Resources, search for aiplayer and you will find Stefans code there.

And has anyone tried aiplayer with the stable version, I mean no the head but latest stable version? Will I need to change/add a lot of stuff?
#5
07/08/2003 (1:56 pm)
Where i can to find this AI bot extension by Stefan Beffy Moises ?
#6
07/09/2003 (5:16 pm)
Here's the link: http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3746

@Injae Jeong: editing your post with a response to the one below is confusing, and the chances are that gabor would never have seen or read it. Just make a new post. :)