Advertisement
Guest User

BombCodeResearchSS13

a guest
Jan 10th, 2015
2,097
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1.  
  2. Bomb code research, some values are abritary based on values provided as standard by the code.
  3. By RemieRichards
  4.  
  5. Contents:
  6. 1 - Bombs and examples (Good for Noob or Pro bomb makers)
  7. 2 - Misc Calculations and Values (Good for coders)
  8.  
  9. Bombs and examples:
  10. ---------------------------
  11. Higher temp = GOOD
  12. Lower volume of tank = GOOD
  13.  
  14. Example:
  15. Highest temperature Freezer can reach: 293.15C (566.3K)
  16. Moles = 2436.0765
  17.  
  18. Resulting Pressures:
  19. (2436.0765*8.31*566.3)/70 = 163772.30733435 //Tank
  20. (2436.0765*8.31*566.3)/3 = 3821353.8378015 //Emergency oxy tank
  21.  
  22. Resulting (raw) ranges:
  23. (163772.30733435 -5066.25)/1013.25 = 156.63070055203552923760177646188 //Tank
  24. (3821353.8378015 -5066.25)/1013.25 = 3766.3830128808290155440414507772 //Emergency oxy tank
  25.  
  26. One tank explosions::
  27. explosion(epicenter, 39, 78, 156, 234) //Tank
  28. explosion(epicenter, 941, 1883, 3766, 5649) //Emergency oxy tank
  29.  
  30. Bomber Terms:
  31. //Contains no fire_range because fire_range was added much after the standard 3 of devastation, heavy, light
  32.  
  33. 3,7,14 //Bomb cap (If these other numbers are true, I want to cry at how low this is ;_;)
  34. 39,78,156 //Tank
  35. 941, 1883, 3766 //Emergency oxy tank
  36.  
  37.  
  38. Misc Calculations and Values (Warning, Very Maths-y, Very unorganised):
  39. --------------------------------------------------------------------------------------------
  40.  
  41. Tank code:
  42. air_contents.react()
  43. air_contents.react()
  44. air_contents.react() //yes 3 of em.
  45. pressure = air_contents.return_pressure()
  46. range = (pressure-TANK_FRAGMENT_PRESSURE)/TANK_FRAGMENT_SCALE
  47. explosion(turf, round(range*0.25), round(range*0.5), round(range), round(range*1.5))
  48.  
  49. Explosion:
  50. explosion(turf/epicenter, devastation_range, heavy_impact_range, light_impact_range, flash_range, adminlog = 1, ignorecap = 0, flame_range = 0)
  51.  
  52. Defines:
  53. TANK_FRAGMENT_PRESSURE = 50*ONE_ATMOSPHERE
  54. TANK_FRAGMENT_SCALE = 10*ONE_ATMOSPHERE
  55. ONE_ATMOSPHERE = 101.325kpa
  56. R_IDEAL_GAS_EQUATION = 8.31
  57. T20C = 293.15 // 566.3K
  58. T0C = 273.15 // 546.3K
  59. MOLES_CELLSTANDARD = (ONE_ATMOSPHERE*CELL_VOLUME/(T20C*R_IDEAL_GAS_EQUATION))
  60. //moles in a 2.5 m^3 cell at 101.325 Pa and 20 degC
  61. MOLES_O2STANDARD = (MOLES_CELLSTANDARD*O2STANDARD) // O2 standard value (21%)
  62. MOLES_N2STANDARD = (MOLES_CELLSTANDARD*N2STANDARD) // N2 standard value (79%)
  63. O2STANDARD = 0.21
  64. N2STANDARD = 0.79
  65. CELL_VOLUME = 2500
  66.  
  67. Standard moles:
  68. Base = 101.325*2500/(293.15*8.31) = 2436.0765
  69. N2 = Base*0.79 = 1924.500435
  70. OXY = Base*0.21 = 511.576065
  71.  
  72. Non-standard volumes:
  73. unary tank volume = 10000
  74. canister = 1000
  75. tank = 70
  76. emergency oxygen tank = 3
  77.  
  78. Gasmixture code:
  79. return_pressure() = total_moles()*R_IDEAL_GAS_EQUATION*temperature/volume
  80. total_moles() = toxins + oxygen + othergases + trace gases
  81. volume = CELL_VOLUME //default
  82. temperature //In kelvin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement