Most of the code is by --CHA0S_TEST--, I just remixed this to fix a problem with rendering in the other players for them.