Currently, CO2 is not very effective at stopping coal fires, because the coal will keep burning after the CO2 is removed.
I think this code should work: (in the code for CO2, right after line 73)
if ((r&0xFF)==PT_COAL){
parts[r>>8].life=110;
if(!(rand()%30)){
sim->kill_part(i);
return 1;
}
}
or maybe
if ((r&0xFF)==PT_COAL && (rand()%20)){
parts[r>>8].life=110;
if(!(rand()%30)){
sim->kill_part(i);
return 1;
}
}
first sentence: yeah, but CO2 should work better than that.
second sentence: yeah...