Did a bunch of sweeping code changes and optimizations; includes a fix for the change on 2022-07-29 that removes unnamed, orphaned
point_spotlight entities.
This is based off the source in the original post, but with the following changes:
- point_spotlight entites are now given the targetname lightColorsNoDelete to prevent removal as of the recent update.
- Entity references are now passed across timers.
- Commands are now using the admin system and defaulted to root access.
- In disco mode, lights that are not potentially visible to any players will be skipped and rechecked on the next cycle.
You will also need the translation file from the original post.