Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bomb code research, some values are abritary based on values provided as standard by the code.
- By RemieRichards
- Contents:
- 1 - Bombs and examples (Good for Noob or Pro bomb makers)
- 2 - Misc Calculations and Values (Good for coders)
- Bombs and examples:
- ---------------------------
- Higher temp = GOOD
- Lower volume of tank = GOOD
- Example:
- Highest temperature Freezer can reach: 293.15C (566.3K)
- Moles = 2436.0765
- Resulting Pressures:
- (2436.0765*8.31*566.3)/70 = 163772.30733435 //Tank
- (2436.0765*8.31*566.3)/3 = 3821353.8378015 //Emergency oxy tank
- Resulting (raw) ranges:
- (163772.30733435 -5066.25)/1013.25 = 156.63070055203552923760177646188 //Tank
- (3821353.8378015 -5066.25)/1013.25 = 3766.3830128808290155440414507772 //Emergency oxy tank
- One tank explosions::
- explosion(epicenter, 39, 78, 156, 234) //Tank
- explosion(epicenter, 941, 1883, 3766, 5649) //Emergency oxy tank
- Bomber Terms:
- //Contains no fire_range because fire_range was added much after the standard 3 of devastation, heavy, light
- 3,7,14 //Bomb cap (If these other numbers are true, I want to cry at how low this is ;_;)
- 39,78,156 //Tank
- 941, 1883, 3766 //Emergency oxy tank
- Misc Calculations and Values (Warning, Very Maths-y, Very unorganised):
- --------------------------------------------------------------------------------------------
- Tank code:
- air_contents.react()
- air_contents.react()
- air_contents.react() //yes 3 of em.
- pressure = air_contents.return_pressure()
- range = (pressure-TANK_FRAGMENT_PRESSURE)/TANK_FRAGMENT_SCALE
- explosion(turf, round(range*0.25), round(range*0.5), round(range), round(range*1.5))
- Explosion:
- explosion(turf/epicenter, devastation_range, heavy_impact_range, light_impact_range, flash_range, adminlog = 1, ignorecap = 0, flame_range = 0)
- Defines:
- TANK_FRAGMENT_PRESSURE = 50*ONE_ATMOSPHERE
- TANK_FRAGMENT_SCALE = 10*ONE_ATMOSPHERE
- ONE_ATMOSPHERE = 101.325kpa
- R_IDEAL_GAS_EQUATION = 8.31
- T20C = 293.15 // 566.3K
- T0C = 273.15 // 546.3K
- MOLES_CELLSTANDARD = (ONE_ATMOSPHERE*CELL_VOLUME/(T20C*R_IDEAL_GAS_EQUATION))
- //moles in a 2.5 m^3 cell at 101.325 Pa and 20 degC
- MOLES_O2STANDARD = (MOLES_CELLSTANDARD*O2STANDARD) // O2 standard value (21%)
- MOLES_N2STANDARD = (MOLES_CELLSTANDARD*N2STANDARD) // N2 standard value (79%)
- O2STANDARD = 0.21
- N2STANDARD = 0.79
- CELL_VOLUME = 2500
- Standard moles:
- Base = 101.325*2500/(293.15*8.31) = 2436.0765
- N2 = Base*0.79 = 1924.500435
- OXY = Base*0.21 = 511.576065
- Non-standard volumes:
- unary tank volume = 10000
- canister = 1000
- tank = 70
- emergency oxygen tank = 3
- Gasmixture code:
- return_pressure() = total_moles()*R_IDEAL_GAS_EQUATION*temperature/volume
- total_moles() = toxins + oxygen + othergases + trace gases
- volume = CELL_VOLUME //default
- temperature //In kelvin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement