Page 1 of 1

Decent AI Bot for DXMP

PostPosted: Tue Dec 04, 12 11:05 pm
by Tejas
Ive seen Poor's bots on his cagematch server and was wondering if its possible to make one of his bots move similar to a real player?

PostPosted: Wed Dec 05, 12 2:04 am
by Aidan
I'm sure it's very possible. Just requires a lot of time and coding. If the bots could recognize safe points, or surrounding cover based on how tall/wide walls, and other objects are.

Some other factors to consider when coding is the bot's health; When the bot is low on legs or head/torso, to find a medkit based on priority.

Ammunition: Finding an appropriate time to replenish ammunition when it is low.

Basically, you would have to create an algorithm for every combat situation you would face yourself.

if {this} > then {that} Most Bots

if {this} > then {that} > or {that} > not {this} because of {that} > or {that} > or {that} or....... Human-Like Bot

The more "or," and "not this because of" the better your bot will be (for the sake of being basic in terms). It's giving the bot options to deal with an opponent, and deducting foolish options that will easily get it killed.

As humans we make decisions. Many decisions for many situations. The more options your give your bot (and make sure the reasons suit the situation); The more life-like your bot will be.


Then you can work on creating response dialogue just like in Q3 :P

PostPosted: Sat Dec 08, 12 3:26 am
by Tejas
Nice. So lets say Health/Energy/Ammo were not a complication and just wanted a good moving target for 1 vs 1.
On movement alone making the bot always face you and move left to right randomly and never stop moving im assuming shouldn't be to difficult to do?

PostPosted: Sat Dec 08, 12 6:25 am
by Aidan
If you're only looking for it to do that... Then no, it shouldn't be too hard.

PostPosted: Sun Dec 09, 12 7:53 am
by Tejas
Glad to hear that i dont know anything about coding so i figured id ask here first, Any links to help out " for DXMP " if i decide to go ahead and do this?

PostPosted: Mon Dec 10, 12 9:51 pm
by Tejas
Already fixed.

PostPosted: Tue Dec 11, 12 2:47 am
by Aidan
Well if you don't know anything about coding, I suggest you start with the basics. There is no sense of jumping right into something you might not understand.

http://www.dxalpha.com/forum/viewtopic.php?t=16480

Credits to Shinobi for this thread 8)