To be honest, this probably would have been a lot easier to implement as a UberASM script rather than a standalone patch, since you could just run it in the level you wanted to run it in, and without worrying about freespace or overwriting existing code:
https://www.smwcentral.net/?p=section&a=details&id=19982
But it's a neat idea nonetheless, and works well either way.