Decent AI Bot for DXMP

All multiplayer related discussion.

Moderator: Forum Guards

Decent AI Bot for DXMP

Postby Tejas » Tue Dec 04, 12 11:05 pm

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?
Loyalty-Honor-Respect - Cant be bought it comes from within urself.

Rank: 1 of 100514 players
http://66.150.214.147/stats/hlstats.php ... s&game=css
User avatar
Tejas
Poster
 
Posts: 165
Joined: Sat Aug 28, 10 6:35 am
Location: Texas

Postby Aidan » Wed Dec 05, 12 2:04 am

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
Last edited by Aidan on Wed Dec 05, 12 2:10 am, edited 4 times in total.
Psychokiller, spelled incorrectly.
User avatar
Aidan
CandyMan
 
Posts: 6270
Joined: Wed Aug 02, 06 8:57 am
Location: True North Strong & Free

Postby Tejas » Sat Dec 08, 12 3:26 am

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?
Loyalty-Honor-Respect - Cant be bought it comes from within urself.

Rank: 1 of 100514 players
http://66.150.214.147/stats/hlstats.php ... s&game=css
User avatar
Tejas
Poster
 
Posts: 165
Joined: Sat Aug 28, 10 6:35 am
Location: Texas

Postby Aidan » Sat Dec 08, 12 6:25 am

If you're only looking for it to do that... Then no, it shouldn't be too hard.
Psychokiller, spelled incorrectly.
User avatar
Aidan
CandyMan
 
Posts: 6270
Joined: Wed Aug 02, 06 8:57 am
Location: True North Strong & Free

Postby Tejas » Sun Dec 09, 12 7:53 am

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?
Last edited by Tejas on Sun Dec 09, 12 8:13 am, edited 1 time in total.
Loyalty-Honor-Respect - Cant be bought it comes from within urself.

Rank: 1 of 100514 players
http://66.150.214.147/stats/hlstats.php ... s&game=css
User avatar
Tejas
Poster
 
Posts: 165
Joined: Sat Aug 28, 10 6:35 am
Location: Texas

Postby Tejas » Mon Dec 10, 12 9:51 pm

Already fixed.
Loyalty-Honor-Respect - Cant be bought it comes from within urself.

Rank: 1 of 100514 players
http://66.150.214.147/stats/hlstats.php ... s&game=css
User avatar
Tejas
Poster
 
Posts: 165
Joined: Sat Aug 28, 10 6:35 am
Location: Texas

Postby Aidan » Tue Dec 11, 12 2:47 am

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)
Psychokiller, spelled incorrectly.
User avatar
Aidan
CandyMan
 
Posts: 6270
Joined: Wed Aug 02, 06 8:57 am
Location: True North Strong & Free


Return to Multiplayer

Who is online

Users browsing this forum: No registered users and 2 guests
cron