The explosion is simply triggered by the 'health' of an explodable entity dropping to zero.
Place a script on the barrel which checks the health, when it drops to zero do the activate bit.
i.e. if g_Entity[e].health == 0 then
Been there, done that, got all the T-Shirts!