A nose mounted machine gun would be better.
CASA would find a way to have a WoS system to prevent the gun being fired while on the ground.
So you would not be able to get airborne because of the drone in in the vicinity and the gun, for which you have paid megabucks, cannot be fired whilst on the ground
Catch 22!