Original Script:
https://forum.chaos-project.com/index.php/topic,9784.0.html
I modified some of the games core files to make this not have conflicting functions and variables.
You will need to replace some of the original files with these ones, and add the other script after init and before...