AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [CS:S/CS:GO] Bot Attack Control (https://forums.alliedmods.net/showthread.php?t=220118)

GoD-Tony 07-07-2013 07:40

[CS:S/CS:GO] Bot Attack Control
 
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

Despirator 07-08-2013 14:13

Re: [CS:S/CS:GO] Bot Attack Control
 
finally :)

thetwistedpanda 07-08-2013 14:54

Re: [CS:S/CS:GO] Bot Attack Control
 
I love you; this will provide a wonderful method for a Nazi Zombies port.

Furibaito 07-08-2013 22:27

Re: [CS:S/CS:GO] Bot Attack Control
 
Whoa cool stuff!
Thanks for your amazing work GoD-Tony and LIn20Cible! :)

Franc1sco 07-11-2013 10:32

Re: [CS:S/CS:GO] Bot Attack Control
 
2 Attachment(s)
Very very usefull :D

Then using this extension, this plugin would be well coded for a FFA server, right?

GoD-Tony 07-11-2013 14:38

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

Originally Posted by Franc1sco (Post 1988558)
Then using this extension, this plugin would be well coded for a FFA server, right?

Yup, simple as that.

Root_ 07-11-2013 15:17

Re: [CS:S/CS:GO] Bot Attack Control
 
Good job GoD-Tony :up:
Could you also add ability to decrease bot reaction? (aka delay when bot spotted an enemy and about to attack)

GoD-Tony 07-11-2013 15:34

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

Originally Posted by Root_ (Post 1988777)
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.

TnTSCS 07-11-2013 21:59

Re: [CS:S/CS:GO] Bot Attack Control
 
Do you know if that value can be changed dynamically with a plugin? is there some sort of prop that you've seen?

GoD-Tony 07-12-2013 05:08

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

Originally Posted by TnTSCS (Post 1989034)
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).


All times are GMT -4. The time now is 04:38.

Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.