Это функции с префиксом "ai_", а именно:
- ai_say(id,text) Bot says something - ai_sayteam(id,text) Bot says something to the own team
- ai_radio(id,radioid) Bot sends a radio message
- ai_goto(id,x,y,[walk]) Bot goes to tile (x|y). Set walk to 1 to let it walk (silent)
Returns 0 when failed to find path, 1 when target is reached or
2 when bot is still on its way.
- ai_move(id,angle,[walk]) Bot moves into certain direction. Set walk to 1 to let it walk.
Returns 1 when successfull or 0 when way is blocked.
- ai_respawn(id) Bot respawns (only if dead and only if game mode allows it)
- ai_findtarget(id) Returns the ID of the closest enemey or 0 for no enemy
- ai_freeline(id,x,y) Check if there is a free line between the bots and (x|y) (in pixels)
- ai_aim(id,x,y) Bot aims at (x|y) (in pixels)
- ai_iattack(id) Bot performs an intelligent attack (auto reloading & weapon switching)
- ai_attack(id,[secondary]) Bot performs a primitive attack. Set secondary to 1 to use the secondary
weapon function (=attack2) instead of the primary function
- ai_buy(id,itemtype) Bots tries to purchase a certain item (itemtype=integer id, not a string)
- ai_use(id) Bot uses the environement (like pressing use-key)
- ai_rotate(id,angle) Bot instantly turns to certain direction/angle
- ai_selectweapon(id,itemtype) Bot selects a certain weapon (needs to have this weapon)
- ai_reload(id) Bot reloads the current weapon
- ai_drop(id) Bot drops the current weapon
- ai_spray(id) Bot sprays a spraylogo
- ai_build(id,building,x,y) Bot tries to build a building at tile position (x|y). Building has to be
a building integer id, not a string. The position has to be a free tile
next to the current position of the bot.
- ai_debug(id,text) Set debug-text for bot (displayed if "debugai" is enabled)