I'll make it.
EDIT: What about nitroglycerine. Blow up some nitro with hydrogen and it makes ammonia and some water. (if there is enough hydrogen around, otherwise it would just make oxygen)
No, using a flammable element is not advisable, as any time the reaction couldn't happen, excessive heat will be created.
EDIT: Damn, HYGN is flammable. That makes this a lot more difficult.
I came up with a difficile solution. Let me hear what you think.
Whenever something is burned, the FIRE keeps the element it was created from as its ctype, and the initial temperature as tmp. This is used to check later if it can react with something.
Or, rather, take a step away from realism and use something unflammable instead of HYGN.
You have it backwards. Fire does use it's tmp to detect reactions. And it imparts ctype fire, not takes a ctype.
(make water from h2 + O2?)
if ((parts[i].tmp&0x3) == 3){
sim->part_change_type(i,x,y,PT_DSTW);
parts[i].life = 0;
parts[i].ctype = PT_FIRE;
}
I haven't figured out what the 0x3 pointer is. But, I think that must be where the tmp comes from. How it gets there I don't know, must be generated when it senses H2 + O2. (if that's what this does)
EDIT: nevermind, it can take ctypes
EDIT: I have discovered the process. Fire somehow colaberates with itself and the reactants to create a reaction. The fire checks that there is enough fire (might just be the heat) and the reactants send values to the fire. The fire totals this up and gives itself a tmp based on what it is to turn into. (for water this is 3) Some of the fire turns to plasma but the rules still apply. So when the life gets to 0 it turns into the target element. So, fire tmp 3 should turn into water. This target element still has the same tmp and a ctype of fire.
Yes, I've made cold reactions in my mod. But thats cold, and between only two particles. I just checked, current particles do not count the reactants and the number of particles generated is random. I just got 1H2 + 1O2 = 3 water. O_O...looks grim.
Yes and no. Yes, it would theoretically be possible, if only CFLM had a brain. But, no, it doesn't. CFLM does not have any functions and therefor, no way to update any functions. I could add a function update system, but I don't know how that would affect it.
What about having ammonium nitrate (AMMN), and when water is added, its temperature drops below freezing very quickly, just like instant cold packs. It could also be used as a strong oxidizer, and if you add DESL (deisel) it makes ANFO (Ammonium Nitrate Fuel Oil), a low-ish explosive.