Hi, thanks for the suggestions and examples. I'm often tinkering with this so I'll update with any tweaks I like in the future.
This mod is made with ZScript which is only compiled at runtime, so the source is in the PK3 itself (zscript.txt in this case).