Raised This Month: $7 Target: $400
 1% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
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, 809 views)
__________________

Last edited by GoD-Tony; 10-17-2020 at 03:22. Reason: Attached source code
GoD-Tony is offline
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 07-08-2013 , 14:13   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #2

finally
Despirator is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 07-08-2013 , 14:54   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #3

I love you; this will provide a wonderful method for a Nazi Zombies port.
__________________
thetwistedpanda is offline
Furibaito
Member
Join Date: Aug 2012
Location: Colossal Titan
Old 07-08-2013 , 22:27   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #4

Whoa cool stuff!
Thanks for your amazing work GoD-Tony and LIn20Cible!
__________________
フリー

Currently making : ZRiot - like mod in CS:GO - - 45%

Can do private plugins or private community maps for small money.
Furibaito is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 07-11-2013 , 10:32   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #5

Very very usefull

Then using this extension, this plugin would be well coded for a FFA server, right?
Attached Files
File Type: smx bots_FFA.smx (1.8 KB, 1129 views)
File Type: sp Get Plugin or Get Source (bots_FFA.sp - 1263 views - 483 Bytes)
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 07-12-2013 at 09:42.
Franc1sco is offline
Send a message via MSN to Franc1sco
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 07-11-2013 , 14:38   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #6

Quote:
Originally Posted by Franc1sco View Post
Then using this extension, this plugin would be well coded for a FFA server, right?
Yup, simple as that.
__________________
GoD-Tony is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 07-11-2013 , 15:17   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #7

Good job GoD-Tony
Could you also add ability to decrease bot reaction? (aka delay when bot spotted an enemy and about to attack)
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 07-11-2013 , 15:34   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #8

Quote:
Originally Posted by Root_ View Post
Could you also add ability to decrease bot reaction? (aka delay when bot spotted an enemy and about to attack)
If I remember correctly, that can be changed in the BotProfile.db file.
__________________
GoD-Tony is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 07-11-2013 , 21:59   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #9

Do you know if that value can be changed dynamically with a plugin? is there some sort of prop that you've seen?
__________________
View my Plugins | Donate
TnTSCS is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 07-12-2013 , 05:08   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #10

Quote:
Originally Posted by TnTSCS View Post
Do you know if that value can be changed dynamically with a plugin? is there some sort of prop that you've seen?
It looks like it has to be done with an extension. Is using botprofile.db + bot_add <profilename> not dynamic enough in this case?

While I don't mind adding it, I only ask because the gamedata for this feature would be a little hacky (many functions are inlined).
__________________
GoD-Tony is offline
Reply


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 10:03.


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