I shortened this code to make it easier to display, but it should give you an idea of a really easy way to make maps without having to get a napkin and write down numbers.
This is in a file i made called hellmines.cs :
function makemap(%action)
{
if(%action == "make") {
say(0, "#spawndis mine8 hellmines1 349.4 -1010 272.5 0 0 -3.14");
// Add more Items for the map here
}
if(%action == "destroy") {
say(0, "#deldis hellmines1");
// For every item you make add the delete line here
}
if(%action == "addbots") {
say(0, "#loadout pitdemon CLASS ranger LVL 666 LCK 10 kailsbow 1 darrow 500");
// Add all your bots here.
}
if(%action == "killbots") {
say(0, "#kill PitDemon1");
// Add a kill line for each bot here.
}
}
Now that looks complicated but once you understand what it does, it makes adding new areas in game really easy. I just keep a copy of notepad and tribes open. Then when ive got the shape where i want it, i alt-tab out and paste the command i used in the appropriate spot.
To add a new line to it put this :
say(0, "what you typed here");
then file->save. then i go back to the game, go to console( the ~ key) and type exec("filename.cs");
for me its hellmines.cs so i type exec("hellmines.cs");
(will only work if your file is in your /config folder) in order to make it load the newer saved copy.
To run the script in game, pull down your console (~ key) then type makemap("make"); or makemap("addbots"); and itll perform the part that matches what you typed.
Also as a function "makemap" it has 4 things that %action can be.
"Make" I put all my code for making the area here
"Destroy" I put all my code for deleting the whole thing here
"addbots" I put all my code for spawning the bots here
"killbots" I put all my code to kill off all the bots here.
You could even expand it by making a new action called "healall", where it heals all the bots in your zone, to do this :
if(%action == "healbots") {
say(0, "#sethp 99999 PitDemon1");
// Add a heal line for each bot here.
}
and then makemap(healbots); will heal all your bots
Im hoping that by showing you a new part to it, that it might make your understand more how it works.
Then i used my binded keys to spawn and delete items on the base.you can replace f1 with a key of your choice.
bindCommand(keyboard0, make, "f1", TO, "makemap("make")");
And you'll find your coding goes by much faster with that.
May not make sense , but if it does, im sure itll speed you up alot. Im hoping that if you understand how to map that running this script wont be too much work.