.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Help request (http://forums.bots-united.com/forumdisplay.php?f=37)
-   -   Key Bind to add multiple bots pressing just 1 key? (http://forums.bots-united.com/showthread.php?t=2256)

matd 10-07-2004 16:01

Key Bind to add multiple bots pressing just 1 key?
 
hi,

I use RealBot a lot, but it would be a lot easier if i could bind a key or add an entry in commandmenu.txt to add a certain number of Terrorist and Counter-Terrorists rather than having to go through commandmenu and selecting them one at a time.

I have tried both setting up a bind in config.cfg :-

bind "PGDN" "rcon realbot add 1 5;rcon realbot add 1 5;rcon realbot add 1 5;rcon realbot add 1 5;rcon realbot add 1 5;rcon realbot add 1 5;"

And also in commandmenu.txt :

"3" "Add 9 CT and 9 T" "rcon realbot add 1 5; rcon realbot add 1 5; rcon realbot add 1 5; rcon realbot add 1 5; rcon realbot add 1 5; rcon realbot add 1 5; rcon realbot add 1 5; rcon realbot add 1 5; rcon realbot add 1 5; rcon realbot add 2 5; rcon realbot add 2 5; rcon realbot add 2 5; rcon realbot add 2 5; rcon realbot add 2 5; rcon realbot add 2 5; rcon realbot add 2 5; rcon realbot add 2 5; rcon realbot add 2 5"
}

But both just add 3 terrorists and nothing else?.....

Is there a character length limit on realbot commands or am i doing somthing wrong?

I know there is internet mode for realbot but i'd like to have total control over the skill and numbers added to each team and just be able to press 1 key to set this up when playing a game.

Any help greatly appreciated :-)

V or 'Tex 10-07-2004 19:30

Re: Key Bind to add multiple bots pressing just 1 key?
 
You are doing local games or dedicated server?

Why not do this:

alias RBCT "realbot add 2"

alias CT2 "RBCT;RBCT"

alias CT4 "CT2;CT2"

alias CT8 "CT4;CT4"

alias CT16 "CT8;CT8"


Likewise for terrorists. And you can make it even easier if you use ratios at a higher level, lets say...

alias rbadd1 realbot add [?]
alias rbadd2 realbot add [?]
alias rbadd3 realbot add [?]
etc

alias Addbots "rbadd1;rbadd2;rbadd3;rbadd4"

alias Bots8 "Addbots;Addbots"

alias Bots16 "Bots8;Bots8"

etc..

matd 10-07-2004 23:14

Re: Key Bind to add multiple bots pressing just 1 key?
 
Thank you V or 'Tex!

Thats just what i wanted, it works very well =)


All times are GMT +2. The time now is 18:33.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.