Advertisement
Chronos_Ouroboros

Untitled

Nov 23rd, 2014
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. script "FDDemonModeAltDamage" (void) {
  2. // Pray to the RNG god
  3. int BaseDamage = Random (1, 8);
  4. int Randomizer1 = Random (1, 10);
  5. int Randomizer2 = Random (0, 2);
  6. int Result = 0;
  7.  
  8. int x = Randomizer1 * BaseDamage;
  9. if (Randomizer2 == 1) {
  10. Result = (x * Random (2, 4)) + ((x / Random (2, 5)) * Random (1, 2));
  11. } else if (Randomizer2 == 2)
  12. Result = (x + Random (2, 4)) * (x / Random (2, 5));
  13. else
  14. Result = x * Random (2, 3);
  15.  
  16. SetResultValue (Result);
  17. }
  18.  
  19. script "FDDemonModeAltExpDamage" (void) {
  20. int Randomizer1 = Random (0, 256);
  21. int Randomizer2 = Random (1, 4);
  22. int Result = 0;
  23.  
  24. Result = (Randomizer1 / Randomizer2);
  25.  
  26. SetResultValue (Result);
  27. }
  28.  
  29. script "FDDemonModeAltExpRadius" (void) {
  30. int Randomizer1 = Random (0, 128);
  31. int Randomizer2 = Random (1, 4);
  32. int Result = 0;
  33.  
  34. Result = (Randomizer1 / Randomizer2);
  35.  
  36. SetResultValue (Result);
  37. }
  38.  
  39. int FDDemonModeAltExpRTMass [13] = {
  40. 100,
  41. 250,
  42. 580,
  43. 379,
  44. 158,
  45. 190,
  46. 129,
  47. 1598,
  48. 2000,
  49. 1299,
  50. 1598,
  51. 159,
  52. 1795
  53. };
  54.  
  55. int FDDemonModeAltExpRTForce [12] = {
  56. 25,
  57. 30,
  58. 45,
  59. 10,
  60. 100,
  61. 94,
  62. 38,
  63. 19,
  64. 67,
  65. 198,
  66. 279,
  67. 17
  68. };
  69.  
  70. script "FDDemonModeAltExpRT" (void) {
  71. // Mass randomizer
  72. int Randomizer1 = Random (0, 12);
  73. // Force randomizer
  74. int Randomizer2 = Random (0, 11);
  75. // Result
  76. int Result = 0;
  77.  
  78. // Result = Force * (2 * Mass)
  79. Result = FDDemonModeAltExpRTForce [Randomizer2] * (2 * FDDemonModeAltExpRTMass [Randomizer1]);
  80.  
  81. SetResultValue (Result);
  82. }
  83.  
  84. script "FDDemonModeAltExpFlagRandomizer" (void) {
  85. int Result = 0;
  86.  
  87. if (GetCVar ("FD_IDontBelieveInGod"))
  88. Result = 0;
  89. else
  90. Result = Random (0, 1);
  91.  
  92. SetResultValue (Result);
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement