Calculate distances while generating (Dijkstra?), limit dead-end lengths.to be checked: alpha blending on displacements.to be checked: what else apart from overlays and cubemaps needs IDs to operate.fully automated nav mesh generation ("pointer" crosshair is not updated with setpos - player interaction needed).Support for rectangular shaped map tiles of arbitrary size.Support for doors in arbitrary position.Support for more than one door per direction.Create additional tiles or new tile sets (see below).In case the final map cannot be added, try a different setting or tweak the map in Hammer.Edit combiner.py and change the seed and/or NUMBER_OF_TILES for different maps.Continuing to strike + will do nothing but printing "Finished" to the console. Keep striking it until the level loads for the second time and cheats are disabled again. This will let the game generate the nav mesh. Press the + key on your keypad repeatedly.Execute the config file combined.cfg by entering exec combined in the console.Start L4D2 with the console enabled (using -console and -dev as command-line parameters is recommended) and load the map (direct execution by Hammer is fine, too).Open the resulting map source file combined.vmf in the Hammer Editor with the appropriate configuration (for L4D2 Hammer is started from the L4D2 Authoring Tools).The script was tested with Python 3.7.0 and NumPy 1.17.4. Hold shift while performing a right-click in the directory and open a PowerShell or command-line here.Put the files into the directory …\Steam\SteamApps\common\left 4 dead 2\sdk_content\mapsrc\mcs.You can see the map, but due to a reportedly troublesome navigation mesh, the the map is "unplayable" in Left 4 Dead 2 as no zombies will spawn. The map generation itself is fine, but it looks like the navigation mesh generation was changed.
#Left 4 dead 2 steam code generator generator#
Note: As of 2019, this generator is not fully operative. Knowledge of Python programming required. Pick it up, if you like!Ĭreated by Mc$core, ask him for help. It is intended to create levels from random map tiles for Left 4 Dead 2. This is a proof of concept random map generator for Source Based games.