Bot Attack Control
Allows plugins to control which players bots should attack. Useful for forcing bots to properly play "Free For All" type gamemodes. Supports CS:S and CS:GO.
Most of this is a port from
LIn20Cible's research. Credit to him!
PHP Code:
/**
* @brief Called when bots determine if a player is an enemy.
*
* @param bot Client index of the bot.
* @param player Client index of the player.
* @param result Contains the original result. Can be changed.
* @return Plugin_Changed to use the result param, Plugin_Continue otherwise.
*
* @note Called several times per tick with bots in the server.
*/
forward Action:OnShouldBotAttackPlayer(bot, player, &bool:result);
Download:
BotAttackControl-1.0.3.zip
Updated gamedata:
botattackcontrol.games.txt
Source code: Mercurial | zip | bz2 | gz