The bugs for it being easy to shoot anyone, unable to use a knife, and enemy rotation are all due to the spotvis array not being correctly set (the raycaster would update this per frame).