system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: how do artillerymen know how to dish out accurate counter artillery fire? How do they figure out where the hostile fire is coming from?
gpt
Counter-battery radar. The radar detects and tracks artillery shells and rockets, and a computer then locates the enemy battery by tracing the projectile's path back to its source.

Before radar artillery directors used sound, intelligence reports, aerial surveillance, and reports from scouts to locate enemy guns.