Hey, thanks for the clean up!
Not sure if the hook is the wrong choice or something but textures only appear after 30 seconds or so, presumably due to the lower intervals at which UpdateBlips runs. I also had to change the initial check for the colouring section of the function to just
for it to start colouring, but even then it updates only sporadically and without the intended flashing updates for dead or in combat blips.