i found cool lua script on http://c4.x10.mx/lua-scripts.html
it can generate arbitary maps on fly on running server - all code in pure lua
and have sample scipts:
RANDOM MAZE generator what makes maze of any sizes and complexity from 2x2 to 100000x100000 and more
WALL CONVERTOR sample script what makes all walls on map destructibe , and it can make maps with itself (automatic).
there is some example of maze maps :
[1]
[2]
[3]
there is link of lua scripts :
Quote
there is steps to use/work this script :
1.put lua files on root game directory, near cs2d.exe
(not to sys/lua, it can be placed anywhere, but you need edit dofile path in sample files)
2.Start server and enter in console:
lua dofile("maze.lua")
OR
lua dofile("convertwalls.lua")
3.than check new map in maps directory
4. and now you can mapchange to new maps, or start editor and add some modifications
1.put lua files on root game directory, near cs2d.exe
(not to sys/lua, it can be placed anywhere, but you need edit dofile path in sample files)
2.Start server and enter in console:
lua dofile("maze.lua")
OR
lua dofile("convertwalls.lua")
3.than check new map in maps directory
4. and now you can mapchange to new maps, or start editor and add some modifications
maze maps have only one right way to exit point.
PS:
original creators of script: ........C-4........ server admins
edited 6×, last 02.05.13 09:54:21 am