12Me21:
(add to update function of SPRK)
IF ctype == SUCO THEN
IF emp < -150C THEN resistance = 0 ELSE resistance = 150 + temp 'Calculate resistance
IF RND * 5000 > esistance THEN type = SUCO 'Remove spark
END IF
It's written in BASIC so people can read t, but it could be easily translated into C++
EDIT: C++ code:
case PT_SUCO:tp = parts[i].tempresist = tp + 123.15;parts[i].temp = tp + 125 * resistif (rand() % 5000 > resist)sim->create_part(i,x,y,PT_SUCO); //not sure if this is right...break;/strong>
(I haven't tested it, but it should work maybe with some small odification. You will also need to add code for the element itself, but that will be very simple, identical to most other metals xcept in color and name)
I'll try to make a mod that adds this, but I'm not sure how. Are here any tutorials?
Videogamer555:
It needs to be super specific if it is to be implemented. Notice hat with METL, it doesn't just "melt when it gets too hot", instead it "melts when it reaches 1000degC"....You are right, this makes it MUCH easier to write code!