Ive always considered putting something like this in my engine compartment. I dont think it would completely put out a major fire, but it may buy the occupants some time.

https://www.amazon.com/BlazeCut-Auto...019ZZMXAA?th=1