View Single Post
Author Message
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 07-07-2013 , 07:40   [CS:S/CS:GO] Bot Attack Control
Reply With Quote #1

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(botplayer, &bool:result); 
Download: BotAttackControl-1.0.3.zip
Updated gamedata: botattackcontrol.games.txt

Source code: Mercurial | zip | bz2 | gz
Attached Files
File Type: zip BotAttackControl-1.0.3-src.zip (20.8 KB, 817 views)
__________________

Last edited by GoD-Tony; 10-17-2020 at 03:22. Reason: Attached source code
GoD-Tony is offline