BunnymodXT
BunnymodXT copied to clipboard
Facility to quickly test save warping
Inspired by hlstuff's SWT which is a testing tool to quickly save warp from one map to another without the need to manually specify the intermediate maps and landmarks.
In order to figure out the intermediate steps, BXT must have knowledge of an undirected graph linking all maps together. The graph should be stored in a file and specified by
bxt_save_warp_graph filename
The file should contain an undirected graph with maps as vertices and landmarks associated with the edges. It is yet undecided as to what format the file might take.
When save warping, BXT should by default take the path with the least intermediate steps. However this may not always be desirable. Therefore we can consider adding a command that generates an indexed list of all possible paths sorted by the number of steps.
bxt_save_warp_paths dest
This should generate a list that looks like this:
[0] map1 -> map2 -> map5
[1] map1 -> map3 -> map4 -> map5
[2] map1 -> map6 -> map7 -> map8 -> map4 -> map5
To actually save warp, we might have a command that takes the destination map name and an optional index to the path list.
bxt_save_warp dest [index]
Note that this is a cheat command. It should only be enabled with sv_cheats 1
.
At which point would the map graph be built?
I'm not sure what should be responsible of building the graph. It'd either be BXT itself or some external tool.
I think building the graph at first invocation of the save warp command would make sense.