creating maps
#1
How to make a map and play it with bots?
I made a map and saved it, then i wanted to play it with bots.
it was saved to "my documents", name was: myfirstmap.cgz
I loaded the map by typing: "/map myfirstmap" in ac then i just can edit it.
how to play the map that i created with bots?
please help.
Thanks given by:
#2
Look at the "Custom maps" section here.
Thanks given by:
#3
(18 Jul 13, 08:17AM)jamz Wrote: Look at the "Custom maps" section here.

Thank you jamz. :D
Thanks given by:
#4
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]

Makes this happen:

[Image: 2e30fgw.png]

Hope this helped.
Thanks given by:
#5
(18 Jul 13, 04:55PM)Bukz Wrote: 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]

where to type this code?
Thanks given by:
#6
Copy and paste it into your /config/autoexec.cfg with a text editor. Save the file and you should be good to go.
Thanks given by:
#7
(18 Jul 13, 07:01PM)Bukz Wrote: Copy and paste it into your /config/autoexec.cfg with a text editor. Save the file and you should be good to go.

Thank you, it helped me a lot.
Thanks given by: