18 Jul 13, 04:55PM
Alternatively you can throw it all together into a script so you only need to execute a single command:
[cubescript]botmodes = 7 // bot team deathmatch
botskills = good // good is default bot difficulty
custombotmap = [
if $numargs [
cstmap = $arg1
if (> $numargs 1) [
tmsize = $arg2
] [ tmsize = 0 ]
if (<= $tmsize 0) [
tmsize = 4
]
curtm = (curteam)
if (&& (! (strcmp $cstmap [])) (|| (= $curtm 0) (= $curtm 1))) [
addOnLoadOnce [
loop i 2 [
addnbot (- $tmsize (= $i $curtm)) (at [CLA RVSF] $i) $botskills
]
]
votemap $botmodes $cstmap
]
]
]
docident [custombotmap] [Loads a custom map in a bot mode, and automatically adds bots to it.];
docargument [M] [The map to use.] [] [0];
docargument [S] [The size for each team.] [4 would put four bots onto one team, and three bots onto the other team for an even match.][/cubescript]
In game, execute the /custombotmap command to load any map in bot team deathmatch and automatically add bots to it. For example:
![[Image: 2mnephx.png]](http://i39.tinypic.com/2mnephx.png)
Makes this happen:
![[Image: 2e30fgw.png]](http://i44.tinypic.com/2e30fgw.png)
Hope this helped.
[cubescript]botmodes = 7 // bot team deathmatch
botskills = good // good is default bot difficulty
custombotmap = [
if $numargs [
cstmap = $arg1
if (> $numargs 1) [
tmsize = $arg2
] [ tmsize = 0 ]
if (<= $tmsize 0) [
tmsize = 4
]
curtm = (curteam)
if (&& (! (strcmp $cstmap [])) (|| (= $curtm 0) (= $curtm 1))) [
addOnLoadOnce [
loop i 2 [
addnbot (- $tmsize (= $i $curtm)) (at [CLA RVSF] $i) $botskills
]
]
votemap $botmodes $cstmap
]
]
]
docident [custombotmap] [Loads a custom map in a bot mode, and automatically adds bots to it.];
docargument [M] [The map to use.] [] [0];
docargument [S] [The size for each team.] [4 would put four bots onto one team, and three bots onto the other team for an even match.][/cubescript]
In game, execute the /custombotmap command to load any map in bot team deathmatch and automatically add bots to it. For example:
![[Image: 2mnephx.png]](http://i39.tinypic.com/2mnephx.png)
Makes this happen:
![[Image: 2e30fgw.png]](http://i44.tinypic.com/2e30fgw.png)
Hope this helped.