They used 155mm howitzers and long guns in direct fire mode against tanks during the Ardennes Offensive, though definitely in an act of desperation. The "Long Tom" shot an astonishing 127 lb projectile 13 miles, so presumably a direct hit even with HE would be uncomfortable for a tank crew, even in a King Tiger.
In games like Advanced Squad Leader back in the 80's AP or HEAT ammunition for artillery was something you had to roll for, it was usually unavailable. (IIRC you had to roll something like a 3 or less on two 6 sided dice). In computer games like Combat Mission Afrika Korps it was a little more realistic, each artillery piece would have a small number of rounds equivalent to whatever the TO&E said they were supposed to have, plus or minus a few. So for an artillery piece that had 80 HE rounds it might have 5 HEAT rounds. Or it might have none.
Similarly for the tanks, the fairly rare HVAP rounds were much more effective but in a typical scenario you might only have 3 or 4 of them per tank or TD, or none. Overall fairly realistic though what they didn't have is re-armament even for a long battle.
In games like Advanced Squad Leader back in the 80's AP or HEAT ammunition for artillery was something you had to roll for, it was usually unavailable. (IIRC you had to roll something like a 3 or less on two 6 sided dice). In computer games like Combat Mission Afrika Korps it was a little more realistic, each artillery piece would have a small number of rounds equivalent to whatever the TO&E said they were supposed to have, plus or minus a few. So for an artillery piece that had 80 HE rounds it might have 5 HEAT rounds. Or it might have none.
Similarly for the tanks, the fairly rare HVAP rounds were much more effective but in a typical scenario you might only have 3 or 4 of them per tank or TD, or none. Overall fairly realistic though what they didn't have is re-armament even for a long battle.