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