Monthly Target: $400 Donations: $166
 41% 

[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.1.zip

Source code: Mercurial | zip | bz2 | gz
__________________

Last edited by GoD-Tony; 09-27-2014 at 04:26.
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, 145 views)
File Type: sp Get Plugin or Get Source (bots_FFA.sp - 217 views - 483 Bytes)
__________________
Sincerely,

Veteran scripter. Doing private plugins and server configuration requests. PM me or add me in steam

Last edited by Franc1sco; 07-12-2013 at 09:42.
Franc1sco is online now
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
SourceMod 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 20:27.


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