Guest User

Untitled

a guest
Nov 15th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. #include "simulation/Elements.h"
  2. //#TPT-Directive ElementClass Element_LGAS PT_LGAS 167
  3. Element_LGAS::Element_LGAS()
  4. {
  5. Identifier = "DEFAULT_PT_LGAS";
  6. Name = "LGAS";
  7. Colour = PIXPACK(0xFFFF33);
  8. MenuVisible = 1;
  9. MenuSection = SC_LIQUID;
  10. Enabled = 1;
  11.  
  12. Advection = 1.0f;
  13. AirDrag = 0.01f * CFDS;
  14. AirLoss = 0.98f;
  15. Loss = 0.95f;
  16. Collision = 0.0f;
  17. Gravity = 0.1f;
  18. Diffusion = 0.0f;
  19. HotAir = 0.0f * CFDS;
  20. Falldown = 2;
  21.  
  22. Flammable = 20;
  23. Explosive = 0;
  24. Meltable = 0;
  25. Hardness = 5;
  26.  
  27. Weight = 15;
  28.  
  29. Temperature = R_TEMP+0.0f +273.15f;
  30. HeatConduct = 42;
  31. Description = "Liquid gas. You might find this in a car.";
  32.  
  33. State = ST_LIQUID;
  34. Properties = TYPE_LIQUID;
  35.  
  36. LowPressure = IPL;
  37. LowPressureTransition = NT;
  38. HighPressure = 30.0;
  39. HighPressureTransition = PT_FIRE;
  40. LowTemperature = ITL;
  41. LowTemperatureTransition = NT;
  42. HighTemperature = 393.0;
  43. HighTemperatureTransition = PT_FIRE;
  44.  
  45. Update = &Element_LGAS::update;
  46.  
  47. //TPT-directive ElementHeader Element_LGAS static int update(UPDATE_FUNC_ARGS)
  48. int Element_LGAS::update(UPDATE_FUNC_ARGS)
  49. {
  50. if (1>rand()%1000)
  51. create_part(i,x,y,PT_FUME);
  52. return 0;
  53. }
  54. }
  55. }
  56.  
  57. Element_LGAS::~Element_LGAS() {}
Advertisement
Add Comment
Please, Sign In to add comment