Hi guys
I came up with an element idea for my mod, that, when it burns, set fire ctype to potassium (PTSM), and make the fire purple, I've looked through the graphics codes, but not found anything that can help me. Is it possible to do something like this, and how?
Thanks
Tommig
if (cpart->tmp == PT_PTSM)
{
*firea = 255;
*firer = (unsigned char)flm_data[caddress+1];
*fireg = (unsigned char)flm_data[caddress+2];
*fireb = (unsigned char)flm_data[caddress+1];
}
else
{
*firea = 255;
*firer = (unsigned char)flm_data[caddress];
*fireg = (unsigned char)flm_data[caddress+1];
*fireb = (unsigned char)flm_data[caddress+2];
}
Thanks! Time to get cracking!
error:
I put the code into fire.c and was given this error
1>facialturd-the-powder-toy-7f850ad\src\elements\fire.c(11): error C2181: illegal else without matching if
But there's definitely an if there...
if (cpart->ctype == PT_PTSM)
{
*firea = 255;
*firer = (unsigned char)flm_data[caddress+1];
*fireg = (unsigned char)flm_data[caddress+2];
*fireb = (unsigned char)flm_data[caddress+1];
}
else
{
*firea = 255;
*firer = (unsigned char)flm_data[caddress];
*fireg = (unsigned char)flm_data[caddress+1];
*fireb = (unsigned char)flm_data[caddress+2];
}
All the glow effects are red. Unless I put loads down, at that point it can glow yellow