Medicris

DOOM GUN RPM SHIT

Mar 11th, 2015
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. **********************************************************************
  2. Calculating Approx Doom Gun RPM and DPS
  3.  
  4. Some quick figures first.
  5. RPM:
  6. 35 tics / tics between shots = Rounds per second.
  7. RPS * 60 = Rounds per minute.
  8. There's 2100 tics per minute.
  9.  
  10. Average DPS:
  11. ((Max damage - Min damage) * Numbullets) / 2 + Min damage = Rough avg damage per shot.
  12. Average damage per shot * RPS = Average DPS
  13.  
  14. Reloads per Minute:
  15. 35 * 60 = 2100 Tics per minute.
  16. (Tics per shot * Magazine size) + Reload Time = Tics to Cycle
  17. 2100 tics / Tics to Cycle = Number of reloads per minute.
  18.  
  19. Average DPS including reloading:
  20. Magazine size * Avg dmg per shot = Avg dmg done per magazine
  21. Avg dmg done per magazine * Reloads per minute = Average dpm
  22. Average dpm / 60 = Average dps including reloading
  23.  
  24. **********************************************************************
  25. Example: MA75B RPM
  26. 35 / 3 = 11.667rps
  27. 11.667 * 60 = 700rpm
  28.  
  29. MA75B DPS:
  30. 35 / 3 = 11.667rps
  31. ((15 - 9) * 1 ) / 2 = 3. 3 + 9 = 12 avg dmg
  32. 12 * 11.667 = 140 avg dps not counting reloads. Thing shreds.
  33. Alternatively:
  34. 9 * 11.667 = 105 min dps
  35. 15 * 11.667 = 175 max dps
  36.  
  37. Reloads per Minute:
  38. (3 * 52) = 156 tics to empty a magazine
  39. 156 + 31 tics to reload and be ready to fire = 187 tics to cycle
  40. 2100 / 187 = 11.23 reloads per minute.
  41.  
  42. Average DPS including reloading:
  43. 52 * 12 = 624 avg dmg per mag
  44. 624 * 11.23 = 7007.52 avg dpm w/ reloads
  45. 7007.52 / 60 = 116.79 Average dmg per second including reloading
  46.  
  47.  
  48. **********************************************************************
  49. Creating a Doom gun with a specific RPM:
  50. So say we want a 1200rpm gun in Doom, like porting Serious Sam's Minigun.
  51. 2100 Tics per minute / 1200 rounds per minute = 1.75 tics per round
  52. Sheeit. How do we make that?
  53.  
  54. Basically, what we do is insert an extra tic every x tics.
  55. 1200rpm, for example, can be done like this:
  56.  
  57. Multiply the TPR until you get as close of a reasonably whole number you
  58. you can get. For us, it's easy:
  59. 1.75 * 4 = 7 tics per 4 shots. Okay, that's easier to understand.
  60.  
  61. Then round it out so that it fires off four shots every 7 tics. It will
  62. stutter a bit if it makes a sound for every fire, but you can
  63. use a looping sound effect with the real RPM to get around this.
  64. Let's go back to the 1.75 tics per round.
  65. 1.75 rounded up = 2. Leftover from 7 we have 5.
  66.  
  67. What this means is that after every 5 shots, we have an extra tic:
  68.  
  69. 11111 2 11111 2 11111 2 11111 2
  70.  
  71. OR vice versa:
  72.  
  73. 222 1 222 1 222 1
  74.  
  75. Point is, it fires 4 shots in 7 tics. Both methods will sound different.
  76.  
  77. I can't think of a smoother method, really.
  78.  
  79. **********************************************************************
Advertisement
Add Comment
Please, Sign In to add comment