also borrowing chunks of code from https://modworkshop.net/mod/12736 (PD2 mod), although various alterations were necessary and very many features don't work yet, making this port a very basic one
Please do NOT bother the authors of these other mods. It is much more likely I broke something or you did something wrong.