Forum

> > Carnage Contest > An attempt for a better AI
Forums overviewCarnage Contest overviewLog in to reply

English An attempt for a better AI

13 replies
To the start Previous 1 Next To the start

old An attempt for a better AI

Kiffer-Opa
User Off Offline

Quote
In the last days, I took the Zombie AI, Ghost-AI and Gamma-AI and some of my own code to make an AI which combines the abilities of these bots. I also extended these scripts in a way so the bots are able to use similar weapons like Ghost Rocket and Gamma Gun.
Credit for these original scripts go to Vectar666 and farnsworth!

But don't think I just copied and pasted this stuff. I made lots of own additions and changes and this AI is now able to handle lot more stuff than Gamma Gun, Ghost Rocket, Brain Punch and Uppercut.

For now, this AI is able to do this:
• At the start of its turn:
It will eat apples and cookies if it is on low health.
It will use the Effect Neutralizer if it is frozen, confused or poisoned.
It will always use Stealth Ninja if it is not already invisible.

• Weapon selection
The AI is able to handle the following weapons:
• Gamma Gun
will be fired if it has one

• Laser, Plasma Gun, Plasma Blaster, Pistol, Machine Gun, Sniper, Minigun, Paintgun
will be fired if there is a free line between player and target
The aim for Laser, Plasma Gun, Plasma Blaser and Gamma Gun is near to perfect, the aiming for the other guns is a bit worse.

• Ghost Rocket, Bazooka
will be fired if the weapons above would fail. The Bazooka is fired only if it wouldn't hit the terrain only.

• Armageddon, Santa, Arrow Rain, Scales of Justicia, Flood, Winter, Pandemic, Hellfire, Anti-Gravity, Séance
will be used if the weapons above would fail. Some weapons are handled in an intelligent way:
• Flood will only be used if either at least 1 enemy drowns and no ally or if all enemies drown and at least 1 ally remains (this would mean instant victory)
• Scales of Justica will only be used if the own team health is lower than the average team healh (this would mean the own team will gain health points)
• Séance will be almost be handled like the flood, it also checks it does at least 50 enemy damage and maximum 30 ally damage, unless the usage of this weapon will bring the instant victory
• Winter and Pandemic are only used if one half of the enemies aren't already frozen/infected
• the others are just used "shoot and forget" style. It does not recognize wheather usage makes sense or not

It also makes use of these items on turn start:
• Cookie (25 HP), Apple (15 HP)
used at turn start if health is low
• Stealth Ninja
will be always be used if the player isn't already invisible
• Effect Neutralizer
will be used if the player is frozen, poisoned or confused.

And, finally, if the AI doesn't find any good weapon to use, it will use this:
• Self-Healing (50 HP)
if the health is <=50 or if the player is poisoned

• End Turn
If no weapon is selected and Self-Healing won't/can't be used.

It also is able to use Uppercut, Brain Punch and Axe, but only will use them if all other weapons would fail. Refer to Zombie AI to see how this works.
It will use the raft on the water.

This is just an attempt for a better AI. It is still rather easy to beat, especially if you know how it "thinks" (like me, of course), but it already managed to beat human players a few times.
Lots of important weapons and items aren't used and the AI doesn't walk much. Most of the AI's potential is just wasted because it is able to handle weapons which must be collected in crates first in the CC Original weaponset but isn't able yet to actively seek for crates.

> Download here: http://www.unrealsoftware.de/files_show.php?file=2902
"mirror": http://ul.to/4d5rla

extract the file to CC/scripts/AI/

Edit: Okay, I uploaded the script on US and called it "Combo AI".
edited 1×, last 04.10.10 07:47:46 pm

old Re: An attempt for a better AI

Vectarrio
User Off Offline

Quote
Farnsworth made the cookies thing, I've played on his server, but it was just randomly because of buggy ai_weapon in prev. version, but THAT is really cool!

old Re: An attempt for a better AI

DannyDeth
User Off Offline

Quote
This AI has similar aiming qualities as the AI I am making for my PaintBall-mode. One question though. Why didn't you just use the file archive here at unrealsoftware? There we could of left comments and ratings

old Re: An attempt for a better AI

Yamaxanadu
User Off Offline

Quote
Setting Gamma Guns to Infinite while Facing this AI is pretty bad , You'll get Bulleye'd repeatedly , Overall , This AI's Excellent , Host it on US

old Re: An attempt for a better AI

DannyDeth
User Off Offline

Quote
Shanghaimi -Chet- Chen has written
Setting Gamma Guns to Infinite while Facing this AI is pretty bad , You'll get Bulleye'd repeatedly , Overall , This AI's Excellent , Host it on US

NEVER give this AI inifinite Gamma Guns on sky islands type maps. But overal don;t make infinite gamma guns with this AI. I was playing on a sky islands random map and I hit the drink before I could count to three!

old Re: An attempt for a better AI

DC
Admin Off Offline

Quote
woah, pretty nice AI. Of course there are many things which can be improved but this is certainly the best CC AI I've seen so far.

we could start a contest and let AI teams fight against each other (this is possible because the game always uses the local AI script and not only the server AI script). That would be fun!

and the winner AI will become CC's official AI...

old Re: An attempt for a better AI

Nem
User Off Offline

Quote
I was on your server, this AI is awesome
dont have any other words. i just hope i'll see a better AI later

old Re: An attempt for a better AI

DannyDeth
User Off Offline

Quote
Nemesis has written
I was on your server, this AI is awesome
dont have any other words. i just hope i'll see a better AI later

I dought you will see a better one, maybe this will get better in the next update lol

EDIT: ( OMG i haave always dreamed of this )

@DC:
I ahve finally out-smarted you, we won;t be able to do a contest between to AI, because the server only has 1 AI file running at a time. You have been corrected ( omg adrenalin )

EDIT2: I have pwned my slef actually
I just realised i made epic fail up there ^ I really didnt know that CC used the local AI instead of the servers AI, that contest would be wicked. Maybe someone can start a server specially for AI battles, and then people will make AI clans, and have AI clan warrs! ( omg double adrenalin )

old Re: An attempt for a better AI

DC
Admin Off Offline

Quote
the local AI script is used, yes. people have to join and create a team and the server has to switch all teams to AI mode.

but this is going off-topic, sorry. someone can create a new thread about this if there is interest (I'll probably not be able to participate due to lag of time..)
To the start Previous 1 Next To the start
Log in to replyCarnage Contest overviewForums overview