If I recall correctly, at Yorktown McClellan had some units (regiments or brigades) march along the line of the Warwick and had his engineers take note of where the guns were firing at them from, possibly because while you can fake a cannon you can't exactly fake an incoming cannonball...