The two lines above that are supposed to do prevent turrets attacking their own vehicle.

A firing vehicle turret creates a fake npc. If this player is a fake npc and is located inside a vehicle it is a vehicle turret. The vehicle is stored in `in_veh` above the loop. If the shoot goes over that vehicle (`veh_at() == in_veh`) it skips the `map::shoot` call.