With a large amount of enemies/players/guns the weapon targeting causes a lag in performance. This because we scan every enemy for every revolver every frame. We can fix this by reducing the number of times we calculate the targeting, caching the nearest enemies so we don't re poll all the enemies every time, or using some sort of area detection to poll enemies in a smaller area
This is less important now that we're not spawning multiple copies of the same gun on top of each other. Still probably worth doing at some point though
With a large amount of enemies/players/guns the weapon targeting causes a lag in performance. This because we scan every enemy for every revolver every frame. We can fix this by reducing the number of times we calculate the targeting, caching the nearest enemies so we don't re poll all the enemies every time, or using some sort of area detection to poll enemies in a smaller area