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:

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.

The AI is able to handle the following weapons:

will be fired if it has one

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.

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

will be used if the weapons above would fail. Some weapons are handled in an intelligent way:





It also makes use of these items on turn start:

used at turn start if health is low

will be always be used if the player isn't already invisible

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:

if the health is <=50 or if the player is poisoned

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.

"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