Ai is oftenly very expensive on the speed ...
for a CounterStrike style bot, you'd want them to be simple and effective within a single function if possible based on thier Bot Sheet
for this reason you'll use alot of calculated randomness to do set routines, for example cover...
you have intelligent 0-10 ...
you'd check what action you do based on intelligence and time it on that too - so if he is like 5 then
fCurrent# = timer()
fCheck# = fDuration# + fCurrent# / 1000
fIntel# = IntelArray(1,0) / 10
if fCheck# = fIntel#
then bAction = 1
endif
fDuration# = fCurrent#
and then it'd have the program take miliseconds to reacte - however longer to reacte is still more time to shoot them
you could have aim as a Random number to offset the normal aim, so if its 0 then its perfect aim and 10 would be barnyard shooting
bots need just alot of random factors, and you can make them quite fun to play against
Anata aru kowagaru no watashi!