@sektor I tested this on my server (laggy mover maps: CTF-BT-SeGear and CTF-BT-Donnie-v1) and it works beautifully. Really excellent. Thank you very much to you and Higor for your help.
If you have no objections I will post this on Github with you and Higor as the authors.
If you think of any improvements to the code, please post them here and I will update mine also.