PDA

View Full Version : DoD Bots Plugin (Not a total request)


spitfire
09-04-2006, 09:46 PM
I have been thinking about a plugin to make for amxx.

It would consist of the following
A bot menu
Have it use one of the custom flags. This way only the server admin could add remove bots.

The way the addbots would work.

It would automatically balance the teams.
It would give up its spot if a human joined.
Have a option to fill server with bots
Have a option to kick all bots
They do not speak at all
You can set there skill lvl from a scale of 1 to 5 (1 being best and 5 being worst)
And have the bots know waypoints. They could be accesed from the servers folder /dod/addons/amxmodx/bots/(folder of waypoints)

All the waypoint would be is cfg files.


The reason for making this!
To let anyone on dedicated servers be able to add bots 2!

The reason this isnt TOTALY a request is because im a coder myself so I may be able to help.

I belive this would become a widely used plugin therefore making the maker famous. And that is whoever hears this request first :)

=|[76AD]|= TatsuSaisei
09-04-2006, 11:39 PM
um.... Sturmbots... does all of that....
http://sturmbot.1dod.com/

orbit
09-09-2006, 05:49 AM
I wrote my own pluging for shrikebots (if you have that). This one does the following:

register_concmd("amx_addbot", "Addbot", ADMIN_KICK, "<Team 1-2> <Class 1-8>")
register_concmd("amx_botskill", "Botskill", ADMIN_KICK, "<1-6> Adjust the bots skill 1=best")
register_concmd("amx_botbal", "Botbal", ADMIN_KICK, "<0/1> Turn on/off bot auto team balance")
register_concmd("amx_botdontshoot", "Botdontshoot", ADMIN_KICK, "<0/1> Turn on/off bots ability to shoot")
register_concmd("amx_botfunmode", "Botfunmode", ADMIN_KICK, "<0/1> Turn on/off bot funmode")
register_concmd("amx_kickbots", "Kickbots", ADMIN_KICK, "<n> Number of humans before all bots kicked")
register_concmd("amx_maxbots", "Maxbots", ADMIN_KICK, "<n> Set max number of bots, -1 to add bots manually")
register_concmd("amx_botreaction", "Botreaction", ADMIN_KICK, "<0/1/2/3> Set the bot's reaction speed")
register_concmd("amx_botviewskill", "Botviewskill", ADMIN_KICK, "<0/1> Turn on/off bots view skill")
register_concmd("amx_botviewclan", "Botviewclan", ADMIN_KICK, "<0/1> Turn on/off bots view clan")
register_concmd("amx_botslay", "Botslay", ADMIN_KICK, "Slay all bots")

In addition, I installed the customevote plugin, so that people can vote on whether to add/kick the bots. This way, I can let the players decide for themselves whether or note they want the bots (and I don't have to do any special coding).

The above commands were the only ones I could get to work with shrikebots (regardless of what the documentation states).

If anyone wants it, I could post it in the non-developer forum. I'm sure it can be improved upon. I only did the bare minimum required to make it functional.

-O-

ps: I don't think botsdontshoot works, but its not something I really cared about. Also, I've ported it over to TFC for use on FoxBots. The plugin will also prevent you from filling the server entirely with bots (maxplayers -1) so you don't make it a 100% bot server.

jason
09-11-2006, 10:29 PM
ya shrikebots works well....you just have to customize it a bit but no biggie.

http://www.xs4all.nl/~jasp/shrikebot