Implementing Area of Effect damage in an explosive barrel

Could you Elaborate a bit more?