Advertisement
RCAProduction

Untitled

Jul 3rd, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1. //Notes: ct is ctype, which is what VSPK is on.
  2.  
  3. //If surrounding parts are not ZRNT, do {...}
  4.                     if (parts[r>>8].type!=PT_ZRNT)
  5.                     {
  6. //Set the surrounding to 4500 degrees, set life of VSPK to the current life - 300, set VSPK to 5000 degrees
  7.                         parts[r>>8].temp = 4500;
  8.                         parts[i].life = parts[i].life - 300;
  9.                         parts[i].temp = 5000;
  10. //if the ctype is ZRNT do {...}
  11.                         if(parts[i].ctype==PT_ZRNT)
  12.                         {
  13. //Set the temp of VSPK to 0 (273.15 because we need to account for negative temps)
  14.                             parts[i].temp = 273.15;
  15.                         }
  16.                     }
  17. //if temp of VSPK is 4500 or more, change VSPK to it's ctype, eg metl
  18.                     if(parts[i].temp>=4500)
  19.                         sim->part_change_type(i,x,y,ct);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement