Raised This Month: $12 Target: $400
 3% 

[CS:S/CS:GO] Bot Attack Control


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode